I have a network like in the drawing. The main router is a Mikrotik at work connected to my old ISP1 with an privat IP address. From there I have a connection to several places including my home with a Mikrotik. Recently I got a new ISP2 at my home. I configured everything so, that only my home is using ISP2, the rest uses ISP1, but I have the possibilty to connect to every device from my home, and with my home router from work. Used to do that static routing table. Every forwarding from outside trough the router at work is working perfect, until it's the network before my home router.
The problem is, when I wanna use my ISP1 IP address to connect from outside with my home router, with f.e. winbox. When I send a packet for WOL, it's getting trough and wakes up a computer. I'm aware that the problem is, that the incoming connection is going to my home router, but the router sends it back to the wrong gate.
I tried something like this, but its not working.
192.168.1.65 is my gate for eth3 at home.
Code: Select all
/ip firewall mangle add action=mark-connection chain=prerouting connection-state=new dst-port=8728 in-interface=ether3 new-connection-mark=\ API_c passthrough=yes protocol=tcp add action=mark-routing chain=prerouting connection-mark=API_c new-routing-mark=API_r passthrough=yes /ip route add distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.65 routing-mark=API_r
Can you please help me with that?