OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: pjosephs on September 22, 2016, 04:35:00 pm

Title: NAT VLANs out to different external IP addresses
Post by: pjosephs on September 22, 2016, 04:35:00 pm
Hi guys,

I'm new to OPNsense and so far I've been really impressed. But I'm stuck on trying to get something working.

I have a /30 from my ISP and I have multiple Private LANs. I want each Private LAN to use its own public IP (for outbound NAT)

I'm trying to do much the same thing as outline in this post listed for Cisco ASA's
https://supportforums.cisco.com/discussion/12389431/cisco-asa-nat-vlans-out-different-external-ip-addresses

Within each private LAN I want to configure Port Forwarding so port 25 will go to one host and port 80 will go to another host.

I have tested and configured virtual IPs and changed some configuration on outbound NAT but all Private LANs seem to use the last public IP I assigned to one.

Any help will be appreciated.

To discuss my setup in more detail I have a VMware host with OPNsense running as a guest. I then have 3 VM's in each VLAN - in this case VLAN 10, 20 and 30. The OPNsense VM has an an interface into each network.

I have DHCP configured to give out 192.168.<VLAN>.x on the appropriate interfaces. DHCP is successfully given out to the VM's. The only way I can get the VM's to get Internet access is if its using the public IP assigned to the WAN or all networks are using the last virtual IP assigned to the WAN.

Thanks for you help. If you require any additional information please let me know.

Paul