Routing outgoing trafic
-
Configuration
WAN address W1=1.2.3.3
WAN virtual address VIRT=1.2.3.100.
DMZ IPGateway=5.6.7.1
DMZ network = 5.6.7.0/24
DMZ host = 5.6.7.100
all incoming traffic to W1 is forwarded to DMZ hostHow to route all outgoing traffic from DMZ host, which is in DMZ through VIRT instead of W1?
-
I think, you're talking about Network Address Translation (NAT) here, not routing.
That can be done in Firewall > NAT > Outbound
If you haven't ever touched this, it's working in the automatic mode. So activate the hybrid mode and save that.
Then add a new rule:
interface: WAN
protocol: any
source: 5.6.7.100/32
destination: any
tranlation: VIRT(1.2.3.100) -
Thank you, @viragomann
It works.