/interface pppoe-client
add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2 comment="" \
dial-on-demand=no disabled=no interface=ether3 max-mru=1480 \
max-mtu=1480 mrru=disabled name=pppoe-out2 password=1234 profile=default \
service-name="" use-peer-dns=yes user=sysnet1@isp
/interface ethernet
set 0 name=Local
set 1 name=WAN1
/ip address
add address=192.168.22.2/24 interface=WAN1
add address=192.168.2.1/24 interface=Local
/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=103.28.3.187,8.8.8.8
/ip firewall mangle
add chain=prerouting in-interface=Local connection-state=new nth=2,1 action=mark-connection new-connection-mark=conn1 passthrough=yes comment="" disabled=no
add chain=prerouting in-interface=Local connection-mark=conn1 action=mark-routing new-routing-mark=conn1 passthrough=no comment="" disabled=no
add chain=prerouting in-interface=Local connection-state=new nth=2,2 action=mark-connection new-connection-mark=conn2 passthrough=yes comment="" disabled=no
add chain=prerouting in-interface=Local connection-mark=conn2 action=mark-routing new-routing-mark=conn2 passthrough=no comment="" disabled=no
/ip firewall nat
add chain=srcnat connection-mark=conn1 action=masquerade out-interface=WAN1 comment="" disabled=no
add chain=srcnat connection-mark=conn2 action=masquerade out-interface=pppoe-out2 comment="" disabled=no
/ip route
add dst-address=0.0.0.0/0 gateway=192.168.22.1 scope=255 target-scope=10 routing-mark=conn1 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=pppoe-out2 scope=255 target-scope=10 routing-mark=conn2 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.22.1 comment="" disabled=no
add dst-address=0.0.0.0/0 gateway=pppoe-out2 comment="" disabled=no
EmoticonEmoticon