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

    Adding VIF's through command line or file

    General pfSense Questions
    3
    4
    822
    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
      fusionp
      last edited by

      Hi all, I need to add a /24 subnet of IP's to my WAN, it's a bit tedious doing so one by one through the VIF GUI.

      I see that you can add a network range/subnet, but then Outbound NAT doesn't let you specify an individual address if need be.

      I found the command for BSD to add an alias address "ifconfig emo 8.7.6.4 netmask 255.255.255.0 alias" and even though it seems to accept the command it doesn't add the VIF.

      Can someone help me with what this command should be or which file I would have to edit in pfsense to make this easier?

      tx

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        @fusionp:

        which file I would have to edit in pfsense to make this easier?

        /cf/conf/config.xml

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

          Is there a specific reason you feel that you need to add 250+ IP alias VIPs on the firewall? What problem are you attempting to solve? Odds are there is a much easier way to accomplish the same goal.

          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
          • C
            cmb
            last edited by

            @jimp:

            Is there a specific reason you feel that you need to add 250+ IP alias VIPs on the firewall? What problem are you attempting to solve? Odds are there is a much easier way to accomplish the same goal.

            That's a good point as well. Many times if you're trying to do that, you're doing it wrong.

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