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

    Where are VIP's defined? Not in rc.conf of course :)

    Scheduled Pinned Locked Moved General pfSense Questions
    7 Posts 4 Posters 949 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.
    • MrPeteM
      MrPete
      last edited by

      I need to remove the VIP's on one of my pfSense instances, and do so from the console (NOT the web GUI -- I can't get there until I remove the VIP's!)

      Obviously, pfSense does not use the rc system, so rc.conf won't work.

      Yet... this information is stored somewhere. Is it a secret?

      Pretty please, how do I remove a VIP from the shell?

      Thanks!
      Pete

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

        @mrpete vips would be stored in the xml. But you can remove any address on any interface with just ifconfig.

        Do a ifconfig and you will see the addresses on a interface, be it vip or not - and you can just remove the ones you don't want with ifconfig

        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

        MrPeteM 1 Reply Last reply Reply Quote 0
        • MrPeteM
          MrPete @johnpoz
          last edited by

          @johnpoz Thanks!

          So strange... searching for freebsd ifconfig man pages and examples, I didn't find any examples of this. However, the man page appears to show the way...

          ...yep! Simple:

          ifconfig inter.face ip.ad.d.r -alias
          

          So in my case,

          ifconfig vtnet1.71 192.168.1.1 -alias
          
          MrPeteM 1 Reply Last reply Reply Quote 0
          • MrPeteM
            MrPete @MrPete
            last edited by

            @mrpete said :

            @johnpoz Thanks!

            So strange... searching for freebsd ifconfig man pages and examples, I didn't find any examples of this. However, the man page appears to show the way...

            ...yep! Simple:

            ifconfig inter.face ip.ad.d.r -alias
            
            So in my case,
            ifconfig vtnet1.71 192.168.1.1 -alias
            

            The interesting thing is: this does NOT remove the VIP definition. Just the current implementation in ifconfig.

            So, a warning to others: using ifconfig is a temporary workaround, such as in my situation where I had a bad CARP config, and thus could not plug both pfSense LAN ethernets in at the same time -- they both were wanting the VIP address.

            By removing the VIPs from the non-active pfSense, I could reattach, and reconfigure.

            S 1 Reply Last reply Reply Quote 0
            • S
              serbus @MrPete
              last edited by

              Hello!

              Maybe 12 from the console menu and :

              pfSsh.php playback disablecarp
              

              disablecarp / enablecarp

              These scripts disable and enable CARP high availability functions, and will deactivate CARP type Virtual IP addresses. This action does not persist across reboots.

              https://docs.netgate.com/pfsense/en/latest/config/console-menu.html#php-shell-pfsense-tools

              John

              Lex parsimoniae

              MrPeteM 1 Reply Last reply Reply Quote 0
              • MrPeteM
                MrPete @serbus
                last edited by

                @serbus said in Where are VIP's defined? Not in rc.conf of course :):

                pfSsh.php playback disablecarp

                Those tools look VERY helpful. Thanks!

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

                  Be aware that disabling CARP either there or in the GUI is also temporary. As soon as anything makes a change to the interface config section, or just reloads it, it will be re-enabled.

                  Steve

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