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

    Open vpn is not the default gateway

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 2 Posters 1.2k 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.
    • P
      pachiko
      last edited by

      Hi,
      We want to configure pfsense as openvpn server,
      The pfsense (openvpn) server is in lan ( 192.168.1.x), an connected to internet through the gateway 192.168.1.1

      Can this possible with a simple Port Forwarding , so, clients connected t will be redirected to vpn by this rules?

      Thank you

      1 Reply Last reply Reply Quote 0
      • V
        viragomann
        last edited by

        Hi,

        yes, it also works with port forwarding to the OpenVPN server.

        1 Reply Last reply Reply Quote 0
        • P
          pachiko
          last edited by

          Can you tell me the solution please?

          1 Reply Last reply Reply Quote 0
          • V
            viragomann
            last edited by

            That's not a big deal.

            Your OpenVPN server must have a static IP on the interface it listens for connections. This can be also the LAN interface. Use the wizard for configuring the server.
            On the router you have to forward the port you use for VPN to this IP. By default  that is 1194 UDP.

            The incoming VPN connections are terminated by the server and natted to its LAN address. It's no matter if the VPN connection comes in at the same interface.

            1 Reply Last reply Reply Quote 0
            • P
              pachiko
              last edited by

              Can you pleas explain with more details,

              Shouled the openvpn server in lan have 2 nic?

              1 Reply Last reply Reply Quote 0
              • V
                viragomann
                last edited by

                As said, the interface for incoming VPN connections can also be the LAN interface. So no further interface is necessary for your goal, just one.

                For openvpn server set up, the wizard will guide you through and there are also some tutorials in this forum and in the pfSense docs:
                https://doc.pfsense.org/index.php/OpenVPN_Remote_Access_Server

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