Dear all,
I have 6 WAN Load balancing. And pppoe server for my users,
My PCC load balancing is not working fine. Sometimes it works well and sometimes it gets worse. the user faces very slow internet
I have attached my ROS configuration.
/interface bridge
add admin-mac=B8:69:F4:AE:BC:FD auto-mac=no comment=asad61 name=Bridge_WAN-1
add admin-mac=14:46:58:BC:18:1E auto-mac=no comment=mubasharahmad01 name=
Bridge_WAN-2
add admin-mac=50:D4:F7:ED:0A:8E auto-mac=no comment=mubasharahmad02 name=
Bridge_WAN-3
add admin-mac=E8:A6:60:B7:61:8F auto-mac=no comment=m-rizwan name=
Bridge_WAN-4
add admin-mac=D8:0D:17:04:47:D9 auto-mac=no comment=m-rizwan2p name=
Bridge_WAN-5
add admin-mac=C4:AD:34:D3:AD:72 auto-mac=no comment=kamran7100 disabled=yes
name=Bridge_WAN-6
add name=Bridge_ether2 priority=0x7000
/interface ethernet
set [ find default-name=ether2 ] name=ether2_WAN
set [ find default-name=ether3 ] name=ether3_Loop
set [ find default-name=ether4 ] name=ether4_Loop
set [ find default-name=ether7 ] disabled=yes
set [ find default-name=ether8 ] name=“ether8_LAN PPPoE”
/interface wireguard
add comment=back-to-home-vpn listen-port=65535 mtu=1420 name=back-to-home-vpn
add listen-port=13231 mtu=1420 name=wireguard1
/interface vlan
add interface=ether3_Loop name=vlan501_ether3 vlan-id=501
add interface=ether4_Loop name=vlan501_ether4 vlan-id=501
add interface=ether3_Loop name=vlan502_ether3 vlan-id=502
add interface=ether4_Loop name=vlan502_ether4 vlan-id=502
add interface=ether3_Loop name=vlan503_ether3 vlan-id=503
add interface=ether4_Loop name=vlan503_ether4 vlan-id=503
add interface=ether3_Loop name=vlan504_ether3 vlan-id=504
add interface=ether4_Loop name=vlan504_ether4 vlan-id=504
add interface=ether3_Loop name=vlan505_ether3 vlan-id=505
add interface=ether4_Loop name=vlan505_ether4 vlan-id=505
add interface=ether3_Loop name=vlan506_ether3 vlan-id=506
add interface=ether4_Loop name=vlan506_ether4 vlan-id=506
/interface pppoe-client
add disabled=no interface=Bridge_WAN-1 name=1_WAN1 user=ABC1
add disabled=no interface=Bridge_WAN-2 name=2_WAN2 user=ABC2
add disabled=no interface=Bridge_WAN-3 name=3_WAN3 user=ABC3
add disabled=no interface=Bridge_WAN-4 name=4_WAN4 user=ABC4
add disabled=no interface=Bridge_WAN-5 name=5_WAN5 user=ABC5
/interface list
add include=none name=WAN-Interface
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=“PPPoE Pool” ranges=172.30.30.10-172.30.30.250
/ppp profile
add dns-server=8.8.8.8,1.1.1.1 local-address=172.30.30.1 name=“PPPoE Profile”
remote-address=“PPPoE Pool”
/routing table
add disabled=no fib name=to_wan1
add disabled=no fib name=to_wan2
add disabled=no fib name=to_wan3
add disabled=no fib name=to_wan4
add disabled=no fib name=to_wan5
/interface bridge port
add bridge=Bridge_ether2 interface=ether2_WAN
add bridge=Bridge_ether2 interface=vlan501_ether3
add bridge=Bridge_ether2 interface=vlan502_ether3
add bridge=Bridge_ether2 interface=vlan503_ether3
add bridge=Bridge_ether2 interface=vlan504_ether3
add bridge=Bridge_ether2 interface=vlan505_ether3
add bridge=Bridge_ether2 interface=vlan506_ether3
add bridge=Bridge_WAN-1 interface=vlan501_ether4
add bridge=Bridge_WAN-2 interface=vlan502_ether4
add bridge=Bridge_WAN-3 interface=vlan503_ether4
add bridge=Bridge_WAN-4 interface=vlan504_ether4
add bridge=Bridge_WAN-5 interface=vlan505_ether4
add bridge=Bridge_WAN-6 interface=vlan506_ether4
/ip neighbor discovery-settings
set discover-interface-list=!all
/ipv6 settings
set disable-ipv6=yes forward=no
/interface l2tp-server server
set one-session-per-host=yes use-ipsec=required
/interface list member
add interface=1_WAN1 list=WAN-Interface
add interface=2_WAN2 list=WAN-Interface
add interface=3_WAN3 list=WAN-Interface
add interface=4_WAN4 list=WAN-Interface
add interface=5_WAN5 list=WAN-Interface
/interface pppoe-server server
add authentication=pap default-profile=“PPPoE Profile” disabled=no interface=
“ether8_LAN PPPoE” max-mtu=1500 one-session-per-host=yes service-name=
service_one
/ip address
add address=192.168.220.1/29 comment=Wireguard interface=wireguard1 network=
192.168.220.0
/ip cloud
set back-to-home-vpn=enabled ddns-enabled=yes ddns-update-interval=1m
/ip dns
set allow-remote-requests=yes cache-size=10000KiB servers=8.8.8.8,1.1.1.1
/ip firewall filter
add action=accept chain=input comment=Wireguard dst-port=13231 protocol=udp
add action=accept chain=input comment=“Router Access Remotely” dst-port=
8295,8296 protocol=tcp
add action=drop chain=input comment=“Block Ping” in-interface-list=
WAN-Interface protocol=icmp
add action=drop chain=input comment=“Block Attack” dst-port=
25,53,87,512-515,543,544,7547,8080 protocol=tcp
add action=drop chain=input comment=“Block Attack” dst-port=
53,80,87,161,162,1900,4520-4524,8080 protocol=udp
add action=add-src-to-address-list address-list=“Port Scanners”
address-list-timeout=none-dynamic chain=input comment=
“Port Scanners to Address List " protocol=tcp psd=21,3s,3,1
add action=add-src-to-address-list address-list=“Port Scanners”
address-list-timeout=none-dynamic chain=input comment=
“TCP Flag-NMAP FIN Stealth scan” protocol=tcp tcp-flags=
fin,!syn,!rst,!psh,!ack,!urg
add action=add-src-to-address-list address-list=“Port Scanners”
address-list-timeout=none-dynamic chain=input comment=
“TCP Flag-FIN/SYN scan” protocol=tcp tcp-flags=fin,syn
add action=add-src-to-address-list address-list=“Port Scanners”
address-list-timeout=none-dynamic chain=input comment=
“TCP Flag-RST/SYN scan” protocol=tcp tcp-flags=syn,rst
add action=add-src-to-address-list address-list=“Port Scanners”
address-list-timeout=none-dynamic chain=input comment=
“TCP Flag-FIN/PSH/URG scan” protocol=tcp tcp-flags=
fin,psh,urg,!syn,!rst,!ack
add action=add-src-to-address-list address-list=“Port Scanners”
address-list-timeout=none-dynamic chain=input comment=
“TCP Flag-ALL/ALL scan” protocol=tcp tcp-flags=fin,syn,rst,psh,ack,urg
add action=add-src-to-address-list address-list=“Port Scanners”
address-list-timeout=none-dynamic chain=input comment=
“TCP Flag-NMAP NULL scan” protocol=tcp tcp-flags=
!fin,!syn,!rst,!psh,!ack,!urg
add action=drop chain=input comment=“Dropping Port Scanners”
src-address-list=“Port Scanners”
/ip firewall mangle
add action=mark-connection chain=input comment=“Old PCC” in-interface=1_WAN1
new-connection-mark=wan1_conn passthrough=yes
add action=mark-connection chain=input in-interface=2_WAN2
new-connection-mark=wan2_conn passthrough=yes
add action=mark-connection chain=input in-interface=3_WAN3
new-connection-mark=wan3_conn passthrough=yes
add action=mark-connection chain=input in-interface=4_WAN4
new-connection-mark=wan4_conn passthrough=yes
add action=mark-connection chain=input in-interface=5_WAN5
new-connection-mark=wan5_conn passthrough=yes
add action=mark-routing chain=output connection-mark=wan1_conn
new-routing-mark=to_wan1 passthrough=yes
add action=mark-routing chain=output connection-mark=wan2_conn
new-routing-mark=to_wan2 passthrough=yes
add action=mark-routing chain=output connection-mark=wan3_conn
new-routing-mark=to_wan3 passthrough=yes
add action=mark-routing chain=output connection-mark=wan4_conn
new-routing-mark=to_wan4 passthrough=yes
add action=mark-routing chain=output connection-mark=wan5_conn
new-routing-mark=to_wan5 passthrough=yes
add action=accept chain=prerouting in-interface=1_WAN1
add action=accept chain=prerouting in-interface=2_WAN2
add action=accept chain=prerouting in-interface=3_WAN3
add action=accept chain=prerouting in-interface=4_WAN4
add action=accept chain=prerouting in-interface=5_WAN5
add action=mark-connection chain=prerouting dst-address-type=!local
new-connection-mark=wan1_conn passthrough=yes per-connection-classifier=
src-address-and-port:5/0
add action=mark-connection chain=prerouting dst-address-type=!local
new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=
src-address-and-port:5/1
add action=mark-connection chain=prerouting dst-address-type=!local
new-connection-mark=wan3_conn passthrough=yes per-connection-classifier=
src-address-and-port:5/2
add action=mark-connection chain=prerouting dst-address-type=!local
new-connection-mark=wan4_conn passthrough=yes per-connection-classifier=
src-address-and-port:5/3
add action=mark-connection chain=prerouting dst-address-type=!local
new-connection-mark=wan5_conn passthrough=yes per-connection-classifier=
src-address-and-port:5/4
add action=mark-routing chain=prerouting connection-mark=wan1_conn
new-routing-mark=to_wan1 passthrough=no
add action=mark-routing chain=prerouting connection-mark=wan2_conn
new-routing-mark=to_wan2 passthrough=no
add action=mark-routing chain=prerouting connection-mark=wan3_conn
new-routing-mark=to_wan3 passthrough=no
add action=mark-routing chain=prerouting connection-mark=wan4_conn
new-routing-mark=to_wan4 passthrough=no
add action=mark-routing chain=prerouting connection-mark=wan5_conn
new-routing-mark=to_wan5 passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat comment=Wireguard src-address=
192.168.220.0/29
add action=masquerade chain=srcnat comment=PPPoE
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=1_WAN1 routing-table=to_wan1
suppress-hw-offload=no
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=2_WAN2
routing-table=to_wan2 scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=3_WAN3
routing-table=to_wan3 scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=4_WAN4
routing-table=to_wan4 scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=5_WAN5
routing-table=to_wan5 scope=30 suppress-hw-offload=no target-scope=10
add comment=Main disabled=no distance=1 dst-address=0.0.0.0/0 gateway=1_WAN1
pref-src=”" routing-table=main scope=30 suppress-hw-offload=no
target-scope=10
add disabled=no distance=2 dst-address=0.0.0.0/0 gateway=2_WAN2
routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=3 dst-address=0.0.0.0/0 gateway=3_WAN3
routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=4 dst-address=0.0.0.0/0 gateway=4_WAN4
routing-table=main scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=5 dst-address=0.0.0.0/0 gateway=5_WAN5
routing-table=main scope=30 suppress-hw-offload=no target-scope=10
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www port=8296
set ssh disabled=yes
set api disabled=yes
set winbox port=8295
set api-ssl disabled=yes
/system clock
set time-zone-name=Asia/Karachi
/system identity
set name=“RoshanNet PPPoE Server”
/system note
set show-at-login=no
/tool bandwidth-server
set enabled=no
/tool romon
set enabled=yes
