The server contains two network inferfaces (wan, lan)
   internet adsl1\
                  >--switch->ext_if FreeBSD int_if -> lan
   internet adsl2/

The network interface ext_if has an ip address adsl1 and adsl2 as
Defeault routing is set at adsl1_gw address.

I'd like to use route-to rule in order to redirect traffic from one ip
address on lan network  ( to adsl2.
Here are the rules:

nat on $ext_if from to any -> $adsl1
nat on $ext_if from to any -> $adsl2

pass in  log quick on $int_if route-to ($ext_if $adsl2_gw2) proto tcp
from to any keep state

The rules above worked fine when adsl2 was connected to ext1_if.

Is such thing possible using an alias on one NIC?

I'd appreciate some help.

Reply via email to