SLAN : it;s my lan - ip address : 192.168.1.2/24
SWAN : 1st internet line : 1.1.1.1
SABWAN : 2nd internet line : 2.2.2.2
i have 2 internet lines
i want to all to have internet on 1st line - this works fine
but this one not working - only 1 IP address will take the 2nd internet line with srt and dst for certian public ip address
i made the mangle on this ip address : 192.168.1.1
and i make in ip route
dst- address=0.0.0.0 gateway=1.1.1.1 routing_mark=LINE1
dst- address=0.0.0.0 gateway=2.2.2.2 routing_mark=LINE2
First, if you want use routing-mark you need to create IP Firewal mangle action mark-connection to mark the connection that yo want to use one or another wan link.
i did that and it’s working
now the problem i cannot access this ip from outside
i put src-nat and dst-nat
and it’s not working
when i stop the ip route for this ip address i can access the server from outside
what can i do?