NAT on two interfaces

vikashb at mweb.co.za vikashb at mweb.co.za
Wed May 21 21:21:31 PDT 2003


Greetings,

I currently have a server that with two NICS (fxp0 and xl0) performs NAT 
(using ipfw and natd) between two subnets as follows:
The NATD interface is fxp0

redirect_address 10.10.10.11 0.0.0.0
on fxp0
this setup works fine but I need to add NAT onto xl0 interface
the requirement is as sunch:

any address from the fxp0 subnet (172.16.1.0/24) is allowed to connect
to fxp0 ipaddress (172.16.1.1) which will do a redirect to 10.10.131.57

this will work if i allow can route 172.16.1.0/24 to 10.10.131.57
However i can not route this subnet since its used on the backbone routers.

My question is can i set up nat (or ipnat) to do nating on two interfaces
in the following manner and how :

172.16.1.1/24 connects to 172.16.1.1 which should get redirected to 
10.10.131.57 and have a source address of 10.10.10.6

please advise,


Vikash


---------------------------------------------
This message was sent using M-Web Airmail - JUST LIKE THAT
M-Web: S.A.'s most trusted and reliable Internet Service Provider.
http://airmail.mweb.co.za/




More information about the freebsd-questions mailing list