Routing traffic through an specific IP address (virtual IP alias)
-
Hey guys,
I've got a few IP addresses allocated as virtual IP addresses on pfSense and I would like to have a few internal IP addresses outbound traffic to go through specific IP addresses. Is possible to route all traffic based on a rule to go out through an specific address?
Thanks!
-
Yes.
You configure this under Firewall–>NAT-->Outbound
Enable manual rule generation.
Default rules will be added which NAT from your LAN to your WAN.
Now create new rules according to your needs.
What you probably want is to create an additional rule at the top with as source your internal IP(s) and as NAT address your VIPs. -
Yes.
You configure this Firewall–>NAT-->Outbound
Enable manual rule generation.
Default rules will be added which NAT from your LAN to your WAN.
Now create new rules according to your needs.
What you probably want is to create an additional rule at the top with as source your internal IP(s) and as NAT address your VIPs.I've created one on top of all others
source has network 192.168.111.167/32
source port blankdestination type any
destination port blanktranslation is using the virtual IP I want, static port unticked.
Still doesn't work, traffic is not being routed through this IP address :/
any other suggestion please? Thanks!
-
Have you moved your rule top of the list?
Outbound nat is like normal rules top to down order. -
Can you show a screenshot of your new AoN ruleset?