Mon Sep 04, 2023 4:13 pm
Hi,
I don't know if my NAS configuration bellow can help you or not, because me too, I've same issue with my PPPoE accounting, VALUE OF Upload/Download accounted in RADIUS exceed the packet send.
1/ Configuration on mikrotik PPPoE server + Radius server:
[admin@pppoe-server] > export
# aug/18/2023 10:36:15 by RouterOS 6.49
# software id = MBRE-5SPN
#
# model = CCR1016-12S-1S+
# serial number = D5470DC823FC
/interface vlan
add interface=sfp2 name=vlan50 vlan-id=50
/interface list
add name=WAN
add name=LAN
/ip pool
add name=pool1 ranges=10.20.30.2-10.20.30.5
/ppp profile
set *0 local-address=10.20.30.1
/tool user-manager profile
add name=Silver-1M name-for-users=user1 override-shared-users=off owner=admin price=0 starts-at=logon validity=0s
/tool user-manager profile limitation
add address-list="" download-limit=0B group-name="" ip-pool=pool1 ip-pool6="" name=1M owner=admin rate-limit-min-rx=1024B rate-limit-min-tx=1024B rate-limit-rx=\
2097152B rate-limit-tx=2097152B transfer-limit=0B upload-limit=0B uptime-limit=0s
add address-list="" download-limit=0B group-name="" ip-pool=pool1 ip-pool6="" name=limit1 owner=admin rate-limit-min-rx=1024B rate-limit-min-tx=1024B rate-limit-rx=\
1024B rate-limit-tx=1024B transfer-limit=0B upload-limit=0B uptime-limit=0s
add address-list="" download-limit=0B group-name="" ip-pool=pool1 ip-pool6="" name="Full access" owner=admin transfer-limit=0B upload-limit=0B uptime-limit=0s
add address-list="" download-limit=0B group-name=Gp-silver ip-pool=pool1 ip-pool6="" name=Burst-test owner=admin rate-limit-min-rx=131072B rate-limit-min-tx=524288B \
rate-limit-priority=1 rate-limit-rx=131072B rate-limit-tx=524288B transfer-limit=0B upload-limit=0B uptime-limit=0s
/ip neighbor discovery-settings
set discover-interface-list=none
/interface list member
add interface=sfpplus1 list=WAN
add list=LAN
/interface pppoe-server server
add disabled=no interface=vlan50
/ip address
add address=192.168.1.184/24 interface=sfp1 network=192.168.1.0
add address=10.10.10.2/30 interface=sfp3 network=10.10.10.0
/ip route
add distance=1 dst-address=80.80.80.0/24 gateway=10.20.30.5
/ppp aaa
set use-radius=yes
/radius
add address=40.40.40.2 secret=radius23 service=ppp
/radius incoming
set accept=yes
/system identity
set name=pppoe-server
/tool user-manager database
set db-path=user-manager
/tool user-manager profile profile-limitation
add from-time=0s limitation=Burst-test profile=Silver-1M till-time=23h59m59s weekdays=sunday,monday,tuesday,wednesday,thursday,friday,saturday
/tool user-manager router
add coa-port=3799 customer=admin disabled=no ip-address=40.40.40.2 log=auth-fail name=Router-1 shared-secret=radius23 use-coa=yes
/tool user-manager user
add customer=admin disabled=no ipv6-dns=:: password=user1 shared-users=1 username=user1 wireless-enc-algo=none wireless-enc-key="" wireless-psk=""
/user aaa
set use-radius=yes
2/ Configuration for mikrotik PPPoE client:
[admin@MikroTik] > export
# aug/09/2023 12:51:25 by RouterOS 7.8
# software id = QTC7-NYSP
#
# model = CRS310-1G-5S-4S+
# serial number = HCQ0833MBR5
/interface ethernet
set [ find default-name=sfp2 ] mtu=1580
/interface vlan
add interface=sfp2 mtu=1580 name=vlan50 vlan-id=50
/interface pppoe-client
add add-default-route=yes interface=vlan50 name=pppoe-out1 user=user1
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool2 ranges=80.80.80.2-80.80.80.254
/ip dhcp-server
add address-pool=dhcp_pool2 interface=sfp3 lease-time=30s name=dhcp2
/ip address
add address=80.80.80.1/24 interface=sfp3 network=80.80.80.0
add address=192.168.1.185/24 interface=sfp5 network=192.168.1.0
/ip dhcp-server network
add address=80.80.80.0/32 dns-server=0.0.0.0 gateway=80.80.80.1 netmask=24
add address=80.80.80.0/24 gateway=80.80.80.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface=sfp3
/ppp aaa
set accounting=no
/radius
add address=40.40.40.2 service=ppp
Best regards,