Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Adding VIF's through command line or file

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 3 Posters 1.4k 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
      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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
            Privacy Policy · Cookie Policy