How do I set up a static route without a local gateway?

  • Hi,

    Ive done the following on a Linux server (lets say at address, and would like to replicate the equivalent function on a pfSense router :
    ip route add  via (<–- 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 ( 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.

Log in to reply