r/openstack • u/BattleHardened • Jul 05 '24
Way of using Floating IPs? pfSense with OpenStack
Hi! New to OpenStack. using kolla-ansible multihost. I want to be able to assign IPs from a WAN block (say 200.0.0.0/24) to OpenStack External IPs requested by users on the internal network with OpenStack.
I think what I need to do is set up virtual IPs on pfsense for that subnet, then 1:1 each VIP to a FIP?
I have 256 IPs, do I have to assign each one singularly in pfsense VIPs? (like 200.0.0.2/32, .3/32, ... ) , and then again in a 1:1 NAT, or is there a better way to set this up than what I'm thinking?
4
Upvotes
5
u/dasbierclaw Jul 06 '24
If 200.0.0.0/24 is the 'external provider network' subnet, then you will likely want to configure a vlan interface off the pfsense with 200.0.0.1/24 as the IP, configure the network/subnet within neutron using the same provider:segmentation_id and subnet-range, and let OpenStack manage the /24 as a floating ip pool for virtual routers attached to that external provider network and some tenant network(s). The external provider network will need to be created with --external=true to work as described. You won't need any sort of 1:1 nat except in weird or more complicated circumstances.
2
u/nvez Jul 06 '24
Why don’t you plug the pfSense VM directly to the physical network?