NAT on two interfaces (SOLVED)
vikashb at mweb.co.za
vikashb at mweb.co.za
Fri May 23 01:29:52 PDT 2003
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/
More information about the freebsd-questions
mailing list