Hi To all, this is my network diagram (viewer discretion advised cause is extgremely ugly):
This a double Nated network, every dude from 192.168.2.0 - 5.0 is natted to 192.168.1.x as you can see.
Right now what I would like to do is create some mangle rules in the Core Router (192.168.1.1) to redirect certain IP´s to Gateway X.
Example, I have a host in the network 192.168.2.0/24 with IP Address 192.168.2.25/32, I would like this connection goes to 10.0.0.1 and others connections in the same subnet to 10.0.1.1.
As this is a Natted host, how can I recognize its packets in Core router?
Any comments or sugestions to the layote would be very appreciated.
As long as there is a router doing NAT between the core router and PC-s,
I don’t think there is any way for the core router to see the devices behind that second router.
You would need to use a switch in that case, or configure the routers in transparent bridge mode.
and on each secondary router
/ip route add gateway=192.168.1.1
I strongly suggest you to read some “TCP/IP bible (basics)” book i know it is usually 700+ pages, but if you are going to earn money by doing networking - you need every page of it