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

    OpenVPN on Multiple Ports

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 3 Posters 19.6k 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.
    • W
      Wasca
      last edited by

      Hi All

      I would like to have 2 instances of OpenVPN running. one to listen on the standar port of 1194 and another on Port 80.

      I know what your saying…Why Port 80, that's for Web?

      Well the reason is that I sometimes have road warriors that stay in Hotel rooms with very strict access to the internet and Port 80 is the most likely port to be open.

      So can I have an instance of OpenVPN running on port 80 listening on the WAN IP interface address? (I currently use https 443 for the PFSense web gui access)

      Now if this is not possible, can I assign a sub-interface IP from the same /29 network my WAN IP is on, onto the WAN Interface and listen on that IP instead.

      So if My WAN IP is 203.82.XXX.AAA/29, and the sub-interface IP is 203.82.XXX.BBB, could I have OpenVPN listening on 203.82.XXX.BBB Port 80?

      Thanks

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        That should work.
        Just create a second OpenVPN server.
        I'm running my OpenVPN server on 443 (webgui on 444) to get through the proxy in my university.

        The OpenVPN server per default binds to all IP's it can bind to.
        So make sure you use CARP-type VIP's for you second interface.
        You could also specify in the custom options to which interface the openVPN server should bind to.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • W
          Wasca
          last edited by

          OK, so I need to create a CARP VIP using 203.82.XXX.BBB

          Then I can create the second instance of OpenVPN listening on port 80 at this address?

          1 Reply Last reply Reply Quote 0
          • A
            AtomicPlayboy
            last edited by

            While I can't speak specifically to running multiple instances of OpenVPN, as someone who runs sshd on 80, 443, and 5190 (AIM; Continental Airlines used to allow 5190 through to any address, not just AOL), I can suggest that you want to move the management interface to another port and run an OpenVPN listener there - places that are big on the walled garden often have cacheing proxies in the middle for http (https is impractical to proxy, so it is more likely to go straight through).

            -rob

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