/interface pppoe-client
add ac-name="" add-default-route=no allow=pap,chap,mschap1,mschap2 dial-on-demand=no disabled=no interface=ether2 max-mru=1480 max-mtu=1480 mrru=disabled name=pppoe-out2 \
password=XXXXX profile=default service-name="" use-peer-dns=no user=XXXXXXXXXXXX@telkom.net
add ac-name="" add-default-route=yes allow=pap,chap,mschap1,mschap2 dial-on-demand=no disabled=no interface=ether1 max-mru=1480 max-mtu=1480 mrru=disabled name=pppoe-out1 \
password=XXXXXXXX profile=default service-name="" use-peer-dns=yes user=XXXXXXXXXX@telkom.net
/ip firewall mangle
add action=mark-connection chain=input comment="PCC + FailOver" connection-state=new disabled=no in-interface=pppoe-out1 new-connection-mark=ADSL-1 passthrough=yes
add action=mark-connection chain=input connection-state=new disabled=no in-interface=pppoe-out2 new-connection-mark=ADSL-2 passthrough=yes
add action=mark-routing chain=output connection-mark=ADSL-1 disabled=no new-routing-mark=jalur-1 passthrough=no
add action=mark-routing chain=output connection-mark=ADSL-2 disabled=no new-routing-mark=jalur-2 passthrough=no
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local in-interface=ether4 new-connection-mark=ADSL-1 passthrough=yes per-connection-classifier=\
both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local in-interface=ether4 new-connection-mark=ADSL-2 passthrough=yes per-connection-classifier=\
both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting connection-mark=ADSL-1 disabled=no in-interface=ether4 new-routing-mark=jalur-1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=ADSL-2 disabled=no in-interface=ether4 new-routing-mark=jalur-2 passthrough=yes
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=jalur-1 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=jalur-2 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 scope=30 target-scope=10
add disabled=no distance=2 dst-address=0.0.0.0/0 gateway=pppoe-out1 scope=30 target-scope=10
add action=dst-nat chain=dstnat comment=DNS disabled=no dst-port=53 protocol=\
tcp to-ports=53
add action=dst-nat chain=dstnat disabled=no dst-port=53 protocol=udp \
to-ports=53
add action=dst-nat chain=dstnat comment=https disabled=no dst-port=443 \
protocol=tcp to-ports=443
add action=dst-nat chain=dstnat disabled=no dst-port=443 protocol=udp \
to-addresses=0.0.0.0 to-ports=443