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

Help with Virtual IP and OpenVPN?

Scheduled Pinned Locked Moved HA/CARP/VIPs
4 Posts 2 Posters 1.8k 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.
  • A
    adx442
    last edited by May 10, 2016, 2:39 PM

    I've been tossing this around in my head for a little while, but I'm unsure what to do.

    I have a /28 at the office that is used for a mail server, a secure file transfer appliance, a web server, etc.  I'd like to add a dedicated Virtual IP for OpenVPN connections that use port 443 (we already have a separate OpenVPN instance on the main IP address).  This VPN would be for our road warriors in order to get around outbound port blocking we've seen at hotels/airports/open WiFi portals.

    Normally, I add an IP Alias type VirtualIP, 1:1 NAT it to a server, and add whatever WAN Rules I need, and I'm done.  Since this OpenVPN server will be running on pfSense itself, I don't think I want to 1:1 NAT the router.  :)

    What is the best and cleanest way to go about this?

    1 Reply Last reply Reply Quote 0
    • N
      n3by
      last edited by May 10, 2016, 3:41 PM

      I suggest to use Localhost as interface for VPN server because this way you can assign access from NAT/port forward to any interface and port you want ( including Virtual IPs ).
      This way you can use multiple external ports that will go to the same server so you can also filter IP access if needed.

      1 Reply Last reply Reply Quote 0
      • A
        adx442
        last edited by May 11, 2016, 1:32 PM

        @n3by:

        I suggest to use Localhost as interface for VPN server because this way you can assign access from NAT/port forward to any interface and port you want ( including Virtual IPs ).
        This way you can use multiple external ports that will go to the same server so you can also filter IP access if needed.

        443 is already taken for forwarding on localhost, and I can't relocate that service (it's deployed in the wild to too many people to easily change).  That's why I need to do this with a VirtualIP.

        1 Reply Last reply Reply Quote 0
        • N
          n3by
          last edited by May 11, 2016, 3:03 PM

          And because you are using VPN server on 127.0.0.1 / any listening port you want ( TCP ) it is no problem to come on wan on 443 TCP ( on any Virtual IP ) and forward to 127.0.0.1 / listening port. ( set on NAT )

          This how I configured my server and depend of country/users IP I also come on other ports (443, 4343, 43434… ) that are forwarded to the same server on 127.0.0.1/43434 TCP

          1 Reply Last reply Reply Quote 0
          4 out of 4
          • First post
            4/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received