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

    OpenVPN Server and Client - secure config ?

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 3 Posters 751 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.
    • K Offline
      Koent
      last edited by

      Hello,

      I am embarrassed for my question but I really tried to figure it out by myself and couldn't. I've watched to pfSense Hangout on OpenVPN, read the manual, the Wiki and tried to find the question on the forum but it is still not clear.

      Config :

      • clientvpn to NordVPN : default LAN rule is redirected to VPN-gateway : this works.
      • OpenVPN server : defined on the WAN-gateway, clients can connect to the LAN and access info : this works.

      Question :
      It seems the rule named 'OpenVPN VPNserver Wizard' (see attachment) allows all traffic originating from NordVPN into the LAN. This is not exactly what I want. :)
      1. Am I right please ?
      2. If so, what is the best way to solve this please ?

      The goal is :

      1. to have LAN-access for clients connecting to the OpenVPN-server running on the WAN IP-address
      2. to have Internet-access for clients connecting to the OpenVPN-server through the NordVPN-gateway
      3. to have all traffic originating on the LAN go via the NordVPN-gateway
      4. to block all incoming traffic on the NordVPN - clients

      Any help would be greatly appreciated.  Thanks !

      1 Reply Last reply Reply Quote 0
      • S Offline
        Stephen175
        last edited by

        Same problem. Anyone ?

        1 Reply Last reply Reply Quote 0
        • DerelictD Offline
          Derelict LAYER 8 Netgate
          last edited by

          Delete the rule. In fact have no rules on the OpenVPN tab at all.

          Assign interfaces to both OpenVPNs.

          Put the rules for incoming connections on each VPN client/server on the appropriate assigned interface tabs.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • K Offline
            Koent
            last edited by

            Didn’t know that was possible. It makes it a lot easier to manage.
            Are there some drawbacks to this approach ?

            1 Reply Last reply Reply Quote 0
            • DerelictD Offline
              Derelict LAYER 8 Netgate
              last edited by

              You have to make sure the rules are properly-configured on both but not really.

              When you have one OpenVPN that is essentially a WAN and one that is private you really have no choice but to separate the rules.

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

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