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

    [SOLVED] Have remote access to my VLAN Network - OpenVPN

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 2 Posters 1.4k 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.
    • J
      jutje
      last edited by

      Hello there,

      I have OpenVPN config so i can access my Home Network remotely.
      But now i have a issue i can only access the devices that are in LAN Network but not those in my VLAN Network.
      What do i have to do to get this working?

      I also made a rule for this, but nothing.

      Some help plz.
      Thnx
      ![OpenVPN Config.png](/public/imported_attachments/1/OpenVPN Config.png)
      ![OpenVPN Config.png_thumb](/public/imported_attachments/1/OpenVPN Config.png_thumb)
      ![LAN Rules.png](/public/imported_attachments/1/LAN Rules.png)
      ![LAN Rules.png_thumb](/public/imported_attachments/1/LAN Rules.png_thumb)

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

        well your only handing out the /24 network.. If you have more networks, ie your vlans then you need to hand those to your vpn as local networks so that it will route the traffic to get to those networks down the tunnel.  Or you would need to fall all client traffic through the tunnel.  So just add your vlan networks to your local ipv4 networks.. Then your client will get that routed down the vpn.

        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.8, 24.11

        1 Reply Last reply Reply Quote 0
        • J
          jutje
          last edited by

          Well I didn't know you can put more than one network there.
          Thnx for your help ;)

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

            Its right there on on the box note ;)

            IPv4 networks that will be accessible from the remote endpoint. Expressed as a comma-separated list of one or more CIDR ranges. This may be left blank if not adding a route to the local network through this tunnel on the remote machine. This is generally set to the LAN network.

            Other way to do it would be a simple summary route for your networks.. For example 192.168.0/22 would route say the 4 /24 networks 192.168.0/24, 192.168.1/24 192.168.2/24 and 192.168.3/24  All comes down to what vlans and how many you have.. I wouldn't suggest routing say 192.168/16 because that might limit you clients access to other networks where they are at.  But if your clients are not using the network space your using on your network sure you could route the whole rfc1918 block that your using.

            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.8, 24.11

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