Here's the output from /ip address
Code: Select all
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 ;;; default configuration
192.168.4.1/24 192.168.4.0 ether2-lan
1 D xxxxxxxxx xxxxxxxxx pppoe-isp1
2 D xxxxxxxxx xxxxxxxxx ether8-isp2-gateway
Then, I've set up my mangle rules lise so
Code: Select all
0 chain=prerouting action=accept dst-address=xxxxxxxxxx in-interface=ether2-lan
1 chain=prerouting action=accept dst-address=xxxxxxxxxx in-interface=ether2-lan
2 chain=prerouting action=mark-connection new-connection-mark=ISP1_conn passthrough=yes in-interface=pppoe-ISP11 connection-mark=no-mark
3 chain=prerouting action=mark-connection new-connection-mark=ISP2_conn passthrough=yes in-interface=ether8-ISP2-gateway connection-mark=no-mark
4 chain=prerouting action=mark-connection new-connection-mark=ISP1_conn passthrough=yes dst-address-type=!local in-interface=ether2-lan connection-mark=no-mark per-connection-classifier=both-addresses:2/0
5 chain=prerouting action=mark-connection new-connection-mark=ISP2_conn passthrough=yes dst-address-type=!local in-interface=ether2-lan connection-mark=no-mark per-connection-classifier=both-addresses:2/1
6 chain=prerouting action=mark-routing new-routing-mark=to_ISP1 passthrough=yes in-interface=ether2-lan connection-mark=ISP1_conn
7 chain=prerouting action=mark-routing new-routing-mark=to_ISP2 passthrough=yes in-interface=ether2-lan connection-mark=ISP2_conn
8 chain=output action=mark-routing new-routing-mark=to_ISP1 passthrough=yes connection-mark=ISP1_conn
9 chain=output action=mark-routing new-routing-mark=to_ISP2 passthrough=yes connection-mark=ISP2_conn
Finally, here's my /ip route
Code: Select all
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 pppoe-isp1 1
1 S 0.0.0.0/0 ether8-isp2-g... 1
2 ADS 0.0.0.0/0 172.16.11.12 1
3 S 0.0.0.0/0 pppoe-isp1 1
4 S 0.0.0.0/0 ether8-isp2-g... 1
5 ADC 172.16.11.12/32 109.154.93.215 pppoe-isp1 0
6 ADC 192.168.4.0/24 192.168.4.1 bridge-local 0