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

Adding IPs to WAN connection

HA/CARP/VIPs
6
12
6.4k
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.
  • G
    GruensFroeschli
    last edited by Jun 4, 2008, 12:38 PM

    http://forum.pfsense.org/index.php?action=search
    Keyword: "VIP"

    In short:
    1: Add VIP's
    2: create NAT forwardings
    3: create Firewall rules if not autocreated

    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
    • P
      PinoVero
      last edited by Jun 5, 2008, 9:58 AM

      this solution is not working for me… or at least not complete

      i've "solved" adding manually my ips via shell:

      ifconfig rl1 inet alias xx.xx.xx.3 netmask 255.255.255.0
      ifconfig rl1 inet alias xx.xx.xx.4 netmask 255.255.255.0
      ifconfig rl1 inet alias xx.xx.xx.5 netmask 255.255.255.0

      etc... to make it fully works correctly

      1 Reply Last reply Reply Quote 0
      • G
        GruensFroeschli
        last edited by Jun 5, 2008, 11:40 AM

        This works, is unsupported, and wont survive a reboot, or a rebuild of the config files.

        What exactly do you mean "it does not work for you" ?

        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
        • D
          dotdash
          last edited by Jun 5, 2008, 3:49 PM

          Guessing, but his issue could be that you can't add CARP IPs from a secondary subnet. I have a rambling post about the same issue. My solution was to use 'other' VIPs.

          1 Reply Last reply Reply Quote 0
          • N
            nian
            last edited by Jun 6, 2008, 12:53 AM

            I'm having much the same issue …

            1. Created VIPs as "Other"
            2. Created NAT Port Forward on external address to point to my server's internal address
            3. Failure!

            ... as an alternative test, I did this:
            1. Created VIPs as "Other"
            2. Created NAT Port Forward on external address to point to pfSense internal IP
            3. Success!

            Which leads me to believe there is an issue with NAT Port Forward ... it should be able to get to my server's internal IP address! I can ping the server internal IP address regularly from my pfSense box. Is there something I need to configure in NAT?

            1 Reply Last reply Reply Quote 0
            • G
              GruensFroeschli
              last edited by Jun 6, 2008, 1:03 AM

              Can you show screenshots of your first attempt?

              Are you sure you didnt mix the NAT rules and the firewall rules up?

              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
              • C
                cybrsrfr
                last edited by Jun 6, 2008, 3:28 AM

                Pino Vero: If you take the commands you are using, save a backup xml file and download it. Edit the file with your commands adding the following into the <system>tag. Restore the new updated backup configuration. Then your commands will remain after reboot.

                <shellcmd>ifconfig rl1 inet alias xx.xx.xx.3 netmask 255.255.255.0</shellcmd>
                <shellcmd>ifconfig rl1 inet alias xx.xx.xx.4 netmask 255.255.255.0</shellcmd>
                <shellcmd>ifconfig rl1 inet alias xx.xx.xx.5 netmask 255.255.255.0</shellcmd></system>

                1 Reply Last reply Reply Quote 0
                • D
                  dotdash
                  last edited by Jun 6, 2008, 1:21 PM

                  @nian:

                  I'm having much the same issue …

                  1. Created VIPs as "Other"
                  2. Created NAT Port Forward on external address to point to my server's internal address
                  3. Failure!

                  ... as an alternative test, I did this:
                  1. Created VIPs as "Other"
                  2. Created NAT Port Forward on external address to point to pfSense internal IP
                  3. Success!

                  Which leads me to believe there is an issue with NAT Port Forward ... it should be able to get to my server's internal IP address! I can ping the server internal IP address regularly from my pfSense box. Is there something I need to configure in NAT?

                  Try adding a static route to the subnet the other VIPs are on pointing to your WAN CARP VIP. Dig up my old post for the details of my setup- I was able to get the VIPs to work on either the primary or secondary node. This may depend on how your provider is routing the block to you.

                  1 Reply Last reply Reply Quote 0
                  • N
                    nian
                    last edited by Jun 6, 2008, 6:03 PM Jun 6, 2008, 5:52 PM

                    Ah, what sucks is, my LAN already has a static route: 10.0.0.0/8 10.x.x.x

                    I'm hosted at Softlayer, if that helps. They gave me a set of portable IPs (/27) where the first is the network address, the second is the gateway address, and the last is the broadcast address. Everything else in-between is usable.

                    I added a static route from my portable IPs (subnet /27) as follows: 10.y.y.0/27 10.y.y.y.1
                    I also tried the public route of my portable IPs (subnet /27) as follows: z.z.z.0/27 WAN_IP

                    …. where .0 is the correct network address to use with the subnet, and .1 is the correct gateway to use. But I think 10/8 catches it all, and it doesn't route properly.

                    Could this be the issue? I tried add an alias to an IP address from the portable IP block -- no joy.

                    1 Reply Last reply Reply Quote 0
                    • D
                      dotdash
                      last edited by Jun 6, 2008, 6:08 PM

                      Here is the other thread: http://forum.pfsense.org/index.php/topic,7039.0.html
                      My static route was-  WAN (secondary subnet/mask) gateway (the WAN CARP address)

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