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

    VIPS == aliased IP?

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    8 Posts 4 Posters 5.1k 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.
    • D
      darrendavid
      last edited by

      hi all-

      just trying to straighten out my nomenclature here. I've got 3 static WAN IPs - I'd like to alias the remaining 2 to the WAN interface and use pf to redirect them to the appropriate internal servers. Is this something i can do in the web ui? I'm used to doing it in rc.conf/pf.

      thanks in advance,
      darren david

      1 Reply Last reply Reply Quote 0
      • B
        billm
        last edited by

        @darrendavid:

        hi all-

        just trying to straighten out my nomenclature here. I've got 3 static WAN IPs - I'd like to alias the remaining 2 to the WAN interface and use pf to redirect them to the appropriate internal servers. Is this something i can do in the web ui? I'm used to doing it in rc.conf/pf.

        thanks in advance,
        darren david

        Yes, use a proxy arp virtual address.  We don't at this time support interface aliases - that's coming (and works on code in HEAD), but won't make it for 1.0.

        –Bill

        pfSense core developer
        blog - http://www.ucsecurity.com/
        twitter - billmarquette

        1 Reply Last reply Reply Quote 0
        • D
          darrendavid
          last edited by

          so i tried the proxy ARP, but i got no love until i physically went in to the shell and aliased the IPs with ifconfig. Am I doing something wrong?

          My WAN is configured as 1.2.3.4

          My aliased IPS are 1.2.3.5 and 1.2.3.6

          In Firewall > Virtual IPs for each virtual IP I configured:

          type: Proxy ARP
          interface: WAN
          ip addresses: single address 1.2.3.5 (or 1.2.3.6)

          i went into NAT and set up some port forwarding rules on the virtual IPs. however, nothing worked until i set up the aliases manually using ifconfig.

          any thoughts?

          thanks,
          darren

          1 Reply Last reply Reply Quote 0
          • B
            billm
            last edited by

            None.  Don't reboot else you'll be setting all that up again by hand.

            –Bill

            pfSense core developer
            blog - http://www.ucsecurity.com/
            twitter - billmarquette

            1 Reply Last reply Reply Quote 0
            • H
              hoba
              last edited by

              You can try to set it up using CARP. However you will have some broadcasts that way from the CARP Interface but that shouldn't be a problem. CARP, like ProxyARP too, is another way to fake Layer2 Messages for your virtual IP.

              1 Reply Last reply Reply Quote 0
              • X
                xibalba
                last edited by

                I too also expierieced this same issues with the same resolution in 1.0-RC3. Is there a way to set aliases at boot time, maybe via /etc/rc.local (does this still work)? Or could we manually edit the config file somewhere. Thanks ahead.

                1 Reply Last reply Reply Quote 0
                • H
                  hoba
                  last edited by

                  http://faq.pfsense.com/index.php?action=artikel&cat=10&id=38&artlang=en&highlight=hidden is your friend for custom mods.

                  1 Reply Last reply Reply Quote 0
                  • X
                    xibalba
                    last edited by

                    i found that just adding a shell script call ifcfg.sh to /usr/local/etc/rc.d and setting chmod +x on it worked just fine to keep up the alias across reboots.
                    my script looked as such

                    #!/bin/sh
                    ifconfig vr0 alias 192.168.1.20 netmask 255.255.255.255
                    ifconfig vr0 alias 192.168.1.21 netmask 255.255.255.255

                    hope this helps you, it worked for me.

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