Hi,

I have a branch office Firewall that also acts as a smtp relay for the internal network, the system has 3 Internet connections:

1 - DHCP   (default gateway)
2 - Fixed IP ($embratel_if)
3 - Fixed IP
4 - LAN

The default gateway is the DHCP interface. I can route LAN traffic to any of the Internet Links as desired, that is ok. My problem happens when I try to route the smtp traffic from the Firewall itself trough other interface than the default gateway.

I've configured the following rules:
---------------
nat on $embratel_if proto tcp to port smtp -> ($embratel_if)
...
...
pass out on $ext_if route-to ($embratel_if $embratel_gw) proto tcp to port smtp
---------------

The route-to rule routes the packets as expected, but the outgoing packets doesn't have the source IP changed. It goes out by the right interface but with the wrong ip address (the IP of the default gateway).

How can I get this setup working?

Thanks in advance,
Fabio Almeida

Reply via email to