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

    OpenVPN will work when Local network set to /24, but breaks when setting to /22 or multiple entries

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 138 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.
    • T
      TheWhiteWing01
      last edited by

      Hello-

      I have a Netgate 4100 firewall that was deployed to replace a 2100. The 4100 was setup from scratch to avoid importing a faulty config option from the 2100, but both firewalls had this issue. Essentially, our LAN network is a 192.168.X.X/22 network. This is working fine for all servers and local devices. OpenVPN is setup and configured; firewall rules on OVPN tab are set any/any/any. However, if I set the VPN server to allow access to Local Network: 192.168.1.0/22 users are able to connect, but they are unable to connect to any devices (ie, shared drives, RDP to desktops, etc). If I set it to 192.168.1.0/24, the connections work, but obviously they can't reach their PC if it's on the 192.168.2.X or 192.168.3.X networks. I've tried adding multiple entries to the local networks as I've done at other sites, but this also does not seem to resolve the issue.

      VPN currently set to /24 to allow users to work.

      LAN: 192.168.1.0/22
      Tunnel Network: 192.168.6.0/24

      Any pointers would be appreciated.

      8cf96e3b-c265-4a3b-af9a-9b72b1439f38-image.png
      30427209-997e-4714-bf01-5ef56d8d6c19-image.png

      Thank you

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

        @TheWhiteWing01 said in OpenVPN will work when Local network set to /24, but breaks when setting to /22 or multiple entries:

        However, if I set the VPN server to allow access to Local Network: 192.168.1.0/22 users are able to connect

        Use real network addresses here. 192.168.1.0/22 isn't.
        192.168.0.0/22 would be the network address for your subnet.

        T 1 Reply Last reply Reply Quote 1
        • T
          TheWhiteWing01 @viragomann
          last edited by

          @viragomann
          Man, you ever look at something so long you miss the obvious? Thanks for pointing it out, I hate when I overlook something so simple!

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