Date: Fri, 23 May 2003 08:29:47 GMT From: vikashb@mweb.co.za To: freebsd-questions@freebsd.org Subject: NAT on two interfaces (SOLVED) Message-ID: <E19J7mR-0001iG-00@supermail.mweb.co.za>
next in thread | raw e-mail | index | archive | help
My orignal question was : ==>Can i set up nat (or ipnat) to do nating on two interfaces ==>in the following manner and how : ==> ==>172.16.1.0/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 I was able to solve this problem using ipnat and ipfilter. config as follows: =========== /etc/ipnat.rules =========== map xl0 10.10.0.0/16 -> 172.16.1.1/32 portmap tcp/udp auto map xl0 10.10.0.0/16 -> 172.16.1.1/32 map fxp0 from 172.16.1.0/24 to 10.10.131.57 port = 22 -> 10.10.10.6/32 rdr xl0 0.0.0.0/0 port 22 -> 198.54.253.209 port 22 ============ END ================ 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19J7mR-0001iG-00>