puzon
1
Hello.
Im working on this scenario:
eth1 - public1
eth2 - public2
eth3 - local1
eth4 - local2
eth3 working on masquerade to eth1 and eth4 masquerade to eth2
but, when i want to connect from local1 to public2 addres - it doesnt work. How to build routing table to do that?
Thanks.
Keep your life simple - buy two routers.
And then connect them together on a different interface with static routes between the routers.
e.g.
R1:
ether1 = wan1
ether2 = lan1
ether3/ether4 = slaves to ether2 (simple LAN switch)
ether5 = to-R2 (e.g. 192.168.255.1/24)
IP route lan2 gateway=192.168.255.2
firewall filter = allow ether2 → ether5
nat = only masquerade out-interface=ether1 (don’t specify IP addresses, just interfaces)
R2: same, except use different IP range on ether2.
iqt
3
You need policy routing. Something like
/ip route rule add interface=eth3 routing-mark=local1
/ip route gateway=eth1 routing-mark=local1
However, it is just implemented for IPv4.
puzon
4
Thanks guys. I will keep my life simpler 