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

    Add lot of IP

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 6 Posters 2.0k 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.
    • F
      fr0x
      last edited by

      Hi all :)

      I need to add ~500 Virtual IP WAN.
      Do you have a solution for add all IP in one shot ?

      Thanks  ;D

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        I have never tried something like this but….
        I would try manually editing the config.xml file and then restoring the modified file.
        You could perhaps use a spreadsheet to generate the required VIP sections with sequential numbers.  :-\

        Steve

        1 Reply Last reply Reply Quote 0
        • E
          extide
          last edited by

          @stephenw10:

          I have never tried something like this but….
          I would try manually editing the config.xml file and then restoring the modified file.
          You could perhaps use a spreadsheet to generate the required VIP sections with sequential numbers.  :-\

          Steve

          I have used this method to manually add several DHCP reservations and port forwards and firewall rules, so it is possible. It is best to do so before any packages are installed on the system.

          1 Reply Last reply Reply Quote 0
          • M
            matguy
            last edited by

            @stephenw10:

            I have never tried something like this but….
            I would try manually editing the config.xml file and then restoring the modified file.
            You could perhaps use a spreadsheet to generate the required VIP sections with sequential numbers.  :-\

            Steve

            I also did similar (though in m0n0wall) to add a whole bunch of Captive Portal "users" with sequential weekly expiration dates.  In Excel, the "Concatenate" function is your friend.

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              I phrased that badly. I meant I have never tried an edit of that scope.
              Manually editing and restoring the config file is a useful technique.

              Steve

              1 Reply Last reply Reply Quote 0
              • GruensFroeschliG
                GruensFroeschli
                last edited by

                I guess you script something with the pfSense php shell.

                http://doc.pfsense.org/index.php/Using_the_PHP_pfSense_Shell

                We do what we must, because we can.

                Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                1 Reply Last reply Reply Quote 0
                • F
                  fr0x
                  last edited by

                  Thanks all :)

                  I will check your methods !  ;D

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    If you have that many proxy ARP VIPs, just define them as a "subnet" and proxy arp will make that many of them in a chunk.

                    If they are CARP, you couldn't have that many anyhow (vhid limit of 255), if they are IP alias or a combination of CARP+IP Alias it may work but I'd epxect some sluggishness from having that many IPs bound at once if your hardware is slower.

                    If they are "Other" type VIPs, then you might consider upgrading to 2.1 where the subnet trick works for Other type VIPs like it does for proxy arp.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

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