How do I set up a static route without a local gateway?
-
Hi,
I
ve done the following on a Linux server (let
s say at address 66.66.66.66), and would like to replicate the equivalent function on a pfSense router :
ip route add 192.168.1.0/24 via 55.55.55.55 (<–- pfSense router)This allows me to ping 192.168.1.x addresses even if I am completely outside this LAN. (firewall rules being properly configured)
I want to do the same for PCs behind a second pfSense router, in effect linking 192.168.2.x and 192.168.1.x as if they were connected locally). How do I setup this route on that other pfSense machine?
I can't create a new gateway (55.55.55.55) that isn't on the same subnet as that other pfSense machine.
-
That's not a valid network topology. Some OSes don't care and will ARP anything you want them to, FreeBSD won't (without some trickery that's best avoided). Static routes have to point to a local gateway.
-
Too bad, thanks a lot for this clear answer.