I have a strange problem:
I have two internet connection A and B
if I use A as default connection and use B with routing-mark as second connection, everything is ok. but if I exchange them, the B connection is default, the A connection doesn’t work. from A connection just can PING it’s router’s IP not outside, I am not sure is MT or our ISP’s problem, anybody met this situation before?
So I tried to exchange routing-mark’s condition use sign !, but failed too…
[admin@MikroTik] > ip add print
Flags: X - disabled, I - invalid, D - dynamic
ADDRESS NETWORK BROADCAST INTERFACE
0 ;;; added by setup
172.16.0.4/16 172.16.0.0 172.16.255.255 lan
1 211.148.111.25/28 211.148.111.16 211.148.111.31 wan
2 211.148.111.21/28 211.148.111.16 211.148.111.31 wan
3 219.110.115.41/24 219.110.115.0 219.110.115.255 adsl
[admin@MikroTik] > ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=srcnat action=masquerade
1 chain=dstnat dst-address=211.148.111.21 protocol=tcp dst-port=25
action=dst-nat to-addresses=172.16.0.80 to-ports=25
2 chain=dstnat dst-address=211.148.111.25 protocol=tcp dst-port=110
action=dst-nat to-addresses=172.16.0.80 to-ports=110
[admin@MikroTik] > ip firewall mangle print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=forward protocol=tcp tcp-flags=syn action=change-mss new-mss=1440
1 chain=prerouting protocol=tcp dst-port=!25 action=mark-routing
new-routing-mark=25 passthrough=yes
2 chain=prerouting protocol=tcp dst-port=!110 action=mark-routing
new-routing-mark=25 passthrough=yes
[admin@MikroTik] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
DST-ADDRESS PREFSRC G GATEWAY DISTANCE INTERFACE
0 ADC 172.16.0.0/16 172.16.0.4 lan
1 ADC 211.148.111.16/28 211.148.111.25 wan
2 ADC 219.110.115.0/24 219.110.115.41 adsl
3 A S 0.0.0.0/0 r 211.148.111.17 wan
4 A S 0.0.0.0/0 r 219.110.115.1 adsl