Help with Multi-WAN, additional routed IP Block
-
Hey guys,
I've been beating my head against this for a while today, and I just can't seem to get it to work the way I expect.Basics:
Running pfsense 2.0.1
I have a multi-WAN setup.ย All of that works fine.
Some of the WAN links are actually subnets, and I can create VIPs and NAT on those additional IPs appropriately.One of the WAN links is new, and is only a /30 (for routing purposes only).ย The IP is 38.104.aaa.bbb
I have been assigned a block of IP addresses (38.110.xxx.yyy/28) that is routed to me through the above wan link.I want to be able to create VIPs in this new block, and NAT them accordingly to use various services through the public IPs.ย However, my attempts to do so have failed.
What is the appropriate method to do this?
-
Using 'other' type VIPs for this should work fine, or even proxy ARP, or IP alias would work.
As they are routed to you, they'll hit the router no matter which type you choose.
So what didn't work when you tried?
-
Using 'other' type VIPs for this should work fine, or even proxy ARP, or IP alias would work.
As they are routed to you, they'll hit the router no matter which type you choose.
So what didn't work when you tried?
Well, that worked fine.
I was trying to use CARP VIPs, which require to match an interface subnet, so i was trying to create a new interface containing the subnet and route it through the new WAN connection.
All in all, making it vastly more complicated.However, what if I do need CARP?ย What can I do then?
-
Add one IP Alias VIP to get a foothold in the new subnet (for each CARP node), then you can add the rest as CARP VIPs.
That gets you the required address inside the subnet that CARP wants.
-
Add one IP Alias VIP to get a foothold in the new subnet (for each CARP node), then you can add the rest as CARP VIPs.
That gets you the required address inside the subnet that CARP wants.
Ok, thanks!
And much simpler than the craptastic way I was trying to do this.
-
For routed subnets, you do not want VIPs (other than type Other), just have them routed to a CARP IP on your main IP block.
-
Unless you want to bind services to them with something like relayd, but otherwise yeah, Other on its own is best if they're just for NAT.
-
@cmb:
For routed subnets, you do not want VIPs (other than type Other), just have them routed to a CARP IP on your main IP block.
Ok, great.