Disable NAT

From WiDirect
Jump to: navigation, search

If you want to provide routable IP space to your Mobile Nodes, you can disable NAT on your WiDirect. In order to do this, you must be familiar with a command line editor such as vi or emacs. In this example, we'll show the emacs commands.

If you are disabling NAT, you will need a routable subnet on intranet and extranet networks. You can still use private subnets such as 10.0.0.0/8, as long as it's routable beyond the WiDirect box. The WiDirect is just going to act as a firewall without NAT enabled.

SSH to the WiDirect and run the following command:

	sudo emacs /etc/sysconfig/iptables

Use the arrow keys to find this line:

-A POSTROUTING -o eth0 -j MASQUERADE

Comment out this line by adding a "#" in front of it. Save the file and exit the emacs editor.

After making those changes run these two commands for the changes to take effect:

	sudo /sbin/service iptables restart
	sudo /sbin/service awicp_client restart