Using Separate Public IP Addresses as Source for Traffic leaving PFSense depending on Vlan that Traffic is originated on
-
I have 2 Static Public IP Addresses with the same Public IP address Gateway in the same subnet.
I assigned one of these Public Static IP Addresses to my WAN Interface.
All of my traffic that leaves my PfSense uses this Public Static IP address as the source for connecting to the internet.
How can I use my second Public Static IP Address to be the source Public IP Address for traffic originating from only one of my VLANS?
Thanx
-
You need:
- to add this second IP as IP Alias (Firewall/Virtual IPs)
- to add Outbound NAT rule for this VLAN ("for traffic originating from only one of my VLANS") like
Source: this VLAN net
Destination: Any
Translation Address: this Virtual IP
https://www.netgate.com/docs/pfsense/book/nat/outbound-nat.html?highlight=outbound%20nat