Outbound NAT
-
I have 3 IP addresses assigned via DHCP to my pfSense box. In order to use them, I must have 3 ports and the ISP assigns via DHCP an address to each of the 3 ports.
I have defined them like this:
WAN
DMZ1
DMZ2By default, all traffic goes out the WAN port.
How do I get traffic from a specific machine (192.168.200.5) to go out DMZ1?
In the past, I have used outbound NAT and selecting the IP address I want traffic to go out. However, that seems to only work if I have multiple IP addresses bound to a single interface.
I have looked at Static Routes and Policy Routing but nothing seems to click.
What is the correct way to route the traffic of a specific machine?
-
Well your outbound nat if set to automatic should auto do natting for your 3 different wans.
You could pick which one is use for what via policy routing.
https://docs.netgate.com/pfsense/en/latest/multiwan/policy-route.html