Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenVPN Routing Only Port 22

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 971 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dhindsa
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.