Adding IPs to WAN connection
-
Wow, I'm glad I'm not the only one that is baffled by this :)
-
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 -
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.0etc... to make it fully works correctly
-
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" ?
-
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.
-
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?
-
Can you show screenshots of your first attempt?
Are you sure you didnt mix the NAT rules and the firewall rules up?
-
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> -
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.
-
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.
-
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)