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

    Unusual OpenVPN Behavior

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 638 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
      wmw509
      last edited by

      Hey all,

      I am getting some unexpected behavior when connecting to a few VPNs I have created in my home network. I have several VLANs configured for a few different things on my network, and have made several VPNs to access each individual VLAN. I do not want to have one VPN that can access all networks.

      After following the documentation and setting up the VPNs I tested each of them. When connecting via the command line using the openvpn command, everything works as expected. I can connect to the VPN, but only access the network listed as local network in that VPN server. When I connect via the default network connections app in Ubuntu's GUI I can access ALL of my VLANs. Even the ones that the "route" command does not show.

      How can I make these VPNs only give access to the VLANs I intended to? Thanks in advance for any help!

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

        @wmw509
        Presumably the Ubuntu GUI routes all upstream traffic to the OpenVPN server. It's on the client to do this.

        So remember, pushing routes are not a proper way to limit access to your networks. You have to configure proper firewall rules to allow only the desired access.

        W 1 Reply Last reply Reply Quote 0
        • W
          wmw509 @viragomann
          last edited by

          @viragomann
          Understood, thank you for the response. Do you have a link to documentation or a good guide on doing this?

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

            @wmw509
            I'm talking about simple firewall rules. That's part of the basic setup of pfSense.

            Start here: Rule Methodology

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