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

    [SOLVED] Connecting from OpenVPN server subnet to VLAN’s

    OpenVPN
    2
    5
    666
    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.
    • wgstarksW
      wgstarks
      last edited by wgstarks

      When I connect to my home network via OpenVPN server I can connect to the primary LAN network (10.0.1.0/24) but not to any of the VLAN’s (10.0.30.0/24 for example). OpenVPN uses 10.0.20.0/24.

      There aren’t any block rules on the firewall to prevent access so I’m guessing there must be something that needs to be configured in OpenVPN??? Could use some help with this.

      Box: SG-4200

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @wgstarks
        last edited by

        @wgstarks did you add all your vlans to your local networks? Are you routing all traffic through the vpn?

        You either need to route all traffic through the vpn, or you need to tell the vpn client which networks are accessed via the vpn.

        vpn.jpg

        You also need to make sure that your hosts on these vlans if running firewall allow for your tunnel network to talk to it.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        wgstarksW 2 Replies Last reply Reply Quote 1
        • wgstarksW
          wgstarks @johnpoz
          last edited by

          @johnpoz said in Connecting from OpenVPN server subnet to VLAN’s:

          You either need to route all traffic through the vpn, or you need to tell the vpn client which networks are accessed via the vpn.

          That got it. I knew there had to be something to configure which networks were accessible, just didn’t really know what I was looking for. Thanks for the screenshot.

          Box: SG-4200

          1 Reply Last reply Reply Quote 0
          • wgstarksW
            wgstarks @johnpoz
            last edited by wgstarks

            @johnpoz
            Can I use an alias in place of the list of networks?

            Box: SG-4200

            wgstarksW 1 Reply Last reply Reply Quote 0
            • wgstarksW
              wgstarks @wgstarks
              last edited by

              @wgstarks said in [SOLVED] Connecting from OpenVPN server subnet to VLAN’s:

              @johnpoz
              Can I use an alias in place of the list of networks?

              Nevermind. I see it in the fine print.

              Box: SG-4200

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