OpenVPN Routing Only Port 22
-
HI,
I have configured OpenVPN Sever on pfSense 2.2.5 and using OpenVPN Client Tunnelblick. Everything work fine.
OpenVPN connection sole purpose is to SSH so we can connect to servers on AWS, OpenVPN Server IP/Gateway only White listed on AWS.
What I am trying to do is when connected remotely using OpenVPN client, I want all my normal internet go thru my WAN and anything on port 22 (SSH) automatically route thru my OpenVPN connection.
If I send all traffic thought OpenVPN on client everything works fine.
My employee are using OS X & Windows box's to connect to OpenVPN Server.
At this point - I am a bit lost as to what else needs to be configured in order for this to work.
I don't mind using a different approach or OpenVPN client. Any guidance would be greatly appreciated.
-
That would be entirely up to your client. OpenVPN itself only routes by IP address or subnet. There is no concept of routing by port at the IP level. I don't think any clients support doing what you propose currently, however.
If it was a site-to-site firewall and there was a pfSense firewall in front, then you could do some work to policy route port 22 into an OpenVPN connection, but that is a bit different situation.