Result
########PPPoE-CLIENTS##########/interface pppoe-clientadd ac-name="" add-default-route=yes allow=pap,chap default-route-distance=1 dial-on-demand=no \disabled=no interface=ether1 keepalive-timeout=60 max-mru=1480 max-mtu=1480 mrru=1600 name=\pppoe-out1 password=XXXX profile=default service-name="" use-peer-dns=yes user=\XXXXXXadd ac-name="" add-default-route=yes allow=pap,chap default-route-distance=1 dial-on-demand=no \disabled=no interface=ether2 keepalive-timeout=60 max-mru=1480 max-mtu=1480 mrru=1600 name=\pppoe-out2 password=XXXXXXXXXX profile=default service-name="" use-peer-dns=yes user=\XXXXXXXXX
########FIREWALL MANGLE########/ip firewall mangleadd chain=prerouting in-interface=pppoe-out1add chain=prerouting in-interface=pppoe-out2add action=mark-connection chain=prerouting dst-address-type=!local \new-connection-mark=wan1_conn per-connection-classifier=\both-addresses-and-ports:2/0add action=mark-connection chain=prerouting dst-address-type=!local \new-connection-mark=wan2_conn per-connection-classifier=\both-addresses-and-ports:2/1add action=mark-routing chain=prerouting connection-mark=wan1_conn \new-routing-mark=to_wan1add action=mark-routing chain=prerouting connection-mark=wan2_conn \new-routing-mark=to_wan2
########FIREWALL NAT#########/ip firewall natadd action=masquerade chain=srcnat out-interface=pppoe-out1add action=masquerade chain=srcnat out-interface=pppoe-out2
########IP ROUTE############/ip routeadd check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_wan1 scope=30 target-scope=10add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_wan2 scope=30 target-scope=10add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 scope=30 target-scope=10add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 scope=30 target-scope=10
0 comentários:
Postar um comentário