NAT from a virtual interface to a physical

From: fabio (fabio@crearium.com)
Date: Fri Dec 09 2005 - 02:07:53 EST


Anyone if it is possible to configure NAT over a physical interface and
a alias, like this:

-bash-3.00$ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
        inet 127.0.0.1 netmask ff000000
eri0: flags=1104843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,ROUTER,IPv4> mtu
1500 index 2
        inet 1.2.3.4 netmask ffffff00 broadcast 65.182.22.255
eri0:1: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu
1500 index 2
        inet 192.168.0.12 netmask ffffff00 broadcast 192.168.0.255

Assuming 1.2.3.4 the public IP, can I set up ipfilter to route all
request from 192.168.0.1 to 1.2.3.4 doing NAT ?

How is this possible ?

The reason is that I only have one Ethernet connection,

thanks.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:37:36 EDT