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

    IPv4 Tunnel Networks - Multiple /24 vs Single /16

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 216 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.
    • M
      McMurphy
      last edited by

      I have an OVPN server that I wish to allow access a number of local networks:

      • 10.27.0.0/24
      • 10.27.10.0/24
      • 10.27.20.0/24
      • 10.27.30.0/24
      • 10.27.40.0/24
      • 10.27.50.0/24
      • 10.27.60.0/24
      • 10.27.70.0/24
      • 10.27.80.0/24
      • 10.27.90.0/24

      This list of networks may grow over time.

      Instead of listing these /24 networks individually and having to edit it every time a new network is added can I simply list the IPv4 Tunnel Network as 10.27.0.0/16?

      https://www.calculator.net/ip-subnet-calculator.html?cclass=a&csubnet=16&cip=10.27.0.0&ctype=ipv4&x=Calculate

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

        @McMurphy
        Yes, for sure you can state a larger subnet, which includes all needed.

        However, to avoid conflicts, especially if you connect other locations via VPN to your network, either for user access or site to site, I'd set the network only as large as necessary and range the subnets closer.

        You have currently 10 used /24, while there are 81 x /24 in the gaps in between.
        You could use 10.27.0.0/20 which gives you 16 x /24 subnets for instance.

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