every thing looks working good BUT
i CANT log in to router via second line
let say i have configuration like this
wan1 (default gateway) 192.168.10.10
wan2 (http pop3 etc) 192.168.20.10
lan1 10.0.0.10
when I connect to router via wan1 .. it’s OK
but when I try to connect via wan2 packets which inintiate connection doesnt leave router the same interface from which they came. another words. router routes respons for my request from wan2 via default gateway (wan1) not via wan2 … and that’s why I can log in via wan2 connection
Mark the connection, then mark the packets, then mark routing. Then, in your routing table, reproduce what you need for WAN2 (include connected routes as well) Add a route rule also (some versions need this, some don’t):
/ ip route rule
add routing-mark=out-pip action=lookup table=out-pip
comment=“” disabled=no