Just navigate the WAN1 ????? Help

Please check in my configuration PCC, only sailed for a while WAN

/ ip address
add address=10.1.1.1/24 network=10.1.1.0 broadcast=10.1.1.255 interface=pppoeserver
add address=190.186.56.170/29 network=190.186.56.168 broadcast=190.186.56.175 interface=wan1
add address=192.168.1.5/24 network=192.168.1.0 broadcast=192.168.1.255 interface=wan2

/ ip firewall mangle
add chain=input in-interface=wan1 action=mark-connection new-connection-mark=wan1_conn
add chain=input in-interface=wan2 action=mark-connection new-connection-mark=wan2_conn
add chain=output connection-mark=wan1_conn action=mark-routing new-routing-mark=to_wan1
add chain=output connection-mark=wan2_conn action=mark-routing new-routing-mark=to_wan2
add chain=prerouting dst-address=190.186.56.168/29 action=accept in-interface=pppoeserver
add chain=prerouting dst-address=192.168.1.0/24 action=accept in-interface=pppoeserver
add chain=prerouting dst-address-type=!local in-interface=pppoeserver per-connection-classifier=both-addresses:3/0
action=mark-connection new-connection-mark=wan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=pppoeserver per-connection-classifier=both-addresses:3/1
action=mark-connection new-connection-mark=wan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=pppoeserver per-connection-classifier=both-addresses:3/2
action=mark-connection new-connection-mark=wan2_conn passthrough=yes
add chain=prerouting connection-mark=cotas1_conn in-interface=pppoeserver action=mark-routing new-routing-mark=to_wan1
add chain=prerouting connection-mark=cotas2_conn in-interface=pppoeserver action=mark-routing new-routing-mark=to_wan2

/ ip route
add dst-address=0.0.0.0/0 gateway=190.186.56.169 routing-mark=to_wan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_wan2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=190.186.56.169 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=2 check-gateway=ping

/ ip firewall nat
add chain=srcnat out-interface=wan1 action=masquerade
add chain=srcnat out-interface=wan2 action=masquerade

Check my routes

DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 190.186.56.169 1
1 A S 0.0.0.0/0 192.168.1.1 1
2 A S 0.0.0.0/0 190.186.56.169 1
3 S 0.0.0.0/0 192.168.1.1 2
4 ADC 10.1.1.0/24 10.1.1.1 pppoeserver 0
5 ADC 190.186.56.168/29 190.186.56.170 wan1 0
6 ADC 192.168.1.0/24 192.168.1.5 wan2 0


help please

Gerrynet

Your routing mark rules are wrong. They are using are waiting for a connection mark that your PCC rules don’t mark for. Because of that your routing mark rules will never fire, and it will use the main routing table to send traffic out of.

thanks … could you please make the rules that I’m wrong … Please

Gerrynet

add chain=prerouting dst-address-type=!local in-interface=pppoeserver per-connection-classifier=both-addresses:3/0 action=mark-connection new-connection-mark=wan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=pppoeserver per-connection-classifier=both-addresses:3/1 action=mark-connection new-connection-mark=wan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=pppoeserver per-connection-classifier=both-addresses:3/2 action=mark-connection new-connection-mark=wan2_conn passthrough=yes
add chain=prerouting connection-mark=cotas1_conn in-interface=pppoeserver action=mark-routing new-routing-mark=to_wan1
add chain=prerouting connection-mark=cotas2_conn in-interface=pppoeserver action=mark-routing new-routing-mark=to_wan2