Routing one subnet through OpenVPN tunnel
-
I've been at this for some time now and I don't know what I'm missing here... this is a seemingly VERY simple task, driving me a bit crazy, hoping someone can please just tell me what I'm missing to help me address.
Using latest pfsense, I have created an OpenVPN tunnel that is up and running correctly. I would like to assign ONE subnet to use this tunnel at all times for Internet. The rest of my subnets are to use the existing gateway/Internet for their Internet access like normal. Simple right?
I have already created an outbound NAT rule for the specific subnet to use the tunnel and disabled the standard outbound rules to use the default gateway.
That being said, as soon as the OpenVPN tunnel is up, all internet on all nets dies and the one that I want to send out the tunnel goes out as intended. If I check either of the boxes in the OpenVPN config for "Don't pull routes" or "Don't add/remove routes" then the inverse happens... Everything else works, but not the net that needs to be routed through the tunnel for Internet.
Again, I'm sure this is very simple but I've followed countless setup guides I have found online and they all talk about routing ALL of your traffic through the OpenVPN tunnel, not just a specific subnet.
I'm sure this is beyond easy but it's driving me nuts and I just must be missing something.
Here's an example of a setup doc I have used... they are all basically the same but they don't take into account multiple subnets, they just all are talking about re-routing all traffic accordingly. That's fine and all as it's easy enough to just adapt the same method to just the net you want but that's where I am stuck. It's like all or nothing. Either ALL of the traffic goes out of the tunnel or nothing does.
I appreciate any help I can get here, thank you.
-
JimP /Netgate did a nice guide on this topic: https://m.youtube.com/watch?v=lp3mtR4j3Lw
-Rico
-
Thank you very much, will check this out here in a few. Thanks for the help!