This page is part of the LIFE project.
IP Network Address Translation on the NAS
As the PPP tunnel assigns private class A addresses to the user machine and the NAS, the private addresses must be translated to public addresses in order for the user machine to be able to communicate with nodes on the ITS network. This is achieved by adding IPNAT functionality to the NAS. Help on configuring IPNAT was obtained from http://www.viperstrike.com/~lopaka/sysadmin/ipnat-info/ and http://www.neon1.net/misc/firewall.html.
The first step in adding ipnat to the NAS is to add the following lines into its "/etc/rc.conf" file then rebooting the machine. If these attributes are already set, make sure they are enabled.
The "/etc/ipnat.rules" file is used to specify the private to public (and vice versa) IP address translation. The following lines in the ipnat.rules file translates the private class A IP addresses assigned to the PPP tunnel to the fxp0 interface public IP address.
map fxp0 10.0.4.0/24 -> 220.127.116.11/32 portmap tcp/udp auto #automatic port range used to identify a specific user machine
map fxp0 10.0.4.0/24 -> 18.104.22.168/32
To begin IPNAT accoding to the rules specified enter the following on the NAS command line:
ipnat -C -f /etc/ipnat.rules
Last Updated: Thursday 19-Feb-2004 12:01:36 AEDT URL: Maintained by: Ana Pavlicic firstname.lastname@example.org Authorised by: Grenville Armitage email@example.com