How do I set up a static route without a local gateway?
-
Hi,
I
ve done the following on a Linux server (lets 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy