Dileep M. Kumar wrote:

/sbin/iptables -t nat -A POSTROUTING -s 192.168.1.1 -j MASQUERADE

In this case, can any remote machine access the machine (192.168.1.1).

You would use PREROUTING. For example -

/sbin/iptables -t nat -A PREROUTING -p tcp --dport 21 -j DNAT --to 192.168.1.1:21

Here port 21 can be accessed by any remote machine.


Hope this helps,

Saurabh.



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to