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

    Why can't I use a /8 ?

    Scheduled Pinned Locked Moved OpenVPN
    8 Posts 3 Posters 757 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.
    • I
      ipguy
      last edited by ipguy

      This post is deleted!
      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @ipguy
        last edited by

        @ipguy said in Why can't I use a /8 ?:

        Why not /8 ?

        A /8 would allow 16M addresses (and is an entire class A block back in the classfull address days). Do you have that many devices? Also, you won't be able to have 8000 devices on a /24. I suspect you need to understand a bit about network size and what you actually use the VPN for. For example, if you had 8000 devices, then the smallest network would have whatever power of two is sufficient to hold them all. For 8000, that would be 2^13 (8192) or a /19 subnet mask. What's on the remote end of the VPN? If only a single device, you could get by with a /31 (or /30 if running Windows).

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        I 1 Reply Last reply Reply Quote 0
        • I
          ipguy @JKnott
          last edited by ipguy

          This post is deleted!
          JKnottJ 2 Replies Last reply Reply Quote 0
          • JKnottJ
            JKnott @ipguy
            last edited by

            @ipguy

            A /28 has 14 usable addresses. Where do you get a /8 from? Perhaps you could provide a bit better info. It would take a million of those remote networks to require a /8. Do you have that many?

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
            UniFi AC-Lite access point

            I haven't lost my mind. It's around here...somewhere...

            I 1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott @ipguy
              last edited by

              @ipguy said in Why can't I use a /8 ?:

              Or am I wrong?

              I would say so. You have to provide enough info for us to understand what you're doing. Do you have multiple /28 networks you want to connect to with a VPN? If so, you want to create a VPN to each, with each VPN being a /31, since all it's doing is creating a connection or transit network between two sites.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              1 Reply Last reply Reply Quote 0
              • I
                ipguy @JKnott
                last edited by ipguy

                This post is deleted!
                JKnottJ johnpozJ 2 Replies Last reply Reply Quote 0
                • JKnottJ
                  JKnott @ipguy
                  last edited by

                  @ipguy said in Why can't I use a /8 ?:

                  the next remote network, 10.3.0.0/28
                  the next remote network, 10.4.0.0/28

                  Do you realize you're allowing 65536 addresses for each /28? Even if you did something link 10.0.3.0 /24, you could have 65536 of them in a /8. Since you have /28s, you could do something like:
                  10.0.0.0 /28
                  10.0.0.4 /28
                  10.0.0.8 /28
                  etc.

                  PfSense running on Qotom mini PC
                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                  UniFi AC-Lite access point

                  I haven't lost my mind. It's around here...somewhere...

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

                    @ipguy said in Why can't I use a /8 ?:

                    the next remote network, 10.3.0.0/28
                    the next remote network, 10.4.0.0/28

                    I am with @JKnott here - this doesn't make a lot of sense..

                    So you have a remote device.. And it has a /28 or even multiple /28s on the other end of it.. Ok what does that have to do with your tunnel network?

                    How many devices are going to connect to the openvpn server? 8000? So your tunnel network would only need to support 8000 IPs.. So a /19 would allow for 8190 address - so if using subnet vs net 30, each modem would only being getting 1 IP for the tunnel.. So 8190 modems. What networks are on the other end of the tunnel has nothing to do with the tunnel network.. The tunnel network allows for how many clients can connect to that server.. Using a /16 tunnel would allow for 65k devices to connect.. Even using net30 addressing you would still have way more than enough for 8000 connections.

                    Also with

                    the next remote network, 10.3.0.0/28
                    the next remote network, 10.4.0.0/28

                    Your wasting a lot of space between those networks as mentioned.. Your using a whole /16 just to assign a /28... Think we are missing some info here.

                    But you could route multiple network across your 1 IP used to connect for the tunnel..

                    I think a better understanding of what your doing or wanting to do exactly.. How are these modems connecting to you now?

                    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
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.