Freakydot contains tutorials, free download, tips, tricks and everything you wanted to know from Information Technology. All operating system like as Windows XP, Windows 2000, Windows Vista and linux distro like as RedHat, Debian, Slackware, Mikrotik etc would an objects of contents. In the future, I may include some of the other technology like VoIP for Next Generation Network (NGN).  Many of the contains in freakydot was copy from another site which we didn’t mention. So please forgive us .... We just want to educate people with Information Technology.

Related Articles

Support us in making a small donation:


Freaky Feeds
Freakydot Feed
Postrouting and IP Masquerading PDF
User Rating: / 0
PoorBest 
Tuesday, 16 June 2009 04:51

Accepting forwarded packets via the firewall's internal IP device allows LAN nodes to communicate with each other; however they still cannot communicate externally to the Internet.

To allow LAN nodes with private IP addresses to communicate with external public networks, configure the firewall for IP masquerading, which masks requests from LAN nodes with the IP address of the firewall's external device (in this case, eth0):

[root@myServer ~ ] # iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

This rule uses the NAT packet matching table (-t nat) and specifies the built-in POSTROUTING chain for NAT (-A POSTROUTING) on the firewall's external networking device (-o eth0).

POSTROUTING allows packets to be altered as they are leaving the firewall's external device.

The -j MASQUERADE target is specified to mask the private IP address of a node with the external IP address of the firewall/gateway.