I have multiple public IP addresses on both inside and outside interfaces. On the inside interface I have several subnets. My goal is to have one public IP address per subnet. For example network 192.168.1.0/24 should NAT the following IP address X.X.X.X, however, network 192.168.2.0/24 should NAT out as Y.Y.Y.Y.
I have two versions of NAT rules currently, (/etc/pf.conf)
When I issue the following command:
I get the following output:
It seems that NAT is properly configured but I think I'm missing an important part in either /etc/pf.conf or /etc/rc.conf.
For some reason traffic is not passing and I'm having trouble figuring it out. Has anyone ever setup this type of configuration and got it working?
I have two versions of NAT rules currently, (/etc/pf.conf)
Code:
nat on $ext_if from $int_if:network:0 to any -> A.B.C.D
nat on $ext_if from 192.168.1.0/24 to any -> E.F.G.H
When I issue the following command:
# pfctl -sn
I get the following output:
Code:
nat on bge0 inet from 172.16.0.0/24 to any -> A.B.C.D
nat on bge0 inet from 192.168.1.0/24 to any -> E.F.G.H
It seems that NAT is properly configured but I think I'm missing an important part in either /etc/pf.conf or /etc/rc.conf.
For some reason traffic is not passing and I'm having trouble figuring it out. Has anyone ever setup this type of configuration and got it working?