Hi friends, I am trying to setup masquerading using ipchains. I have put the rules as the following
ipchains -P forward ACCEPT ipchains -A forward -i eth0 -s 192.9.192.112 -d 0/0 -j MASQ ipchains -A forward -p tcp -i eth0 -s 192.9.192.112 -d 0/0 110 -j MASQ ipchains -A forward -p tcp -i eth0 -s 192.9.192.112 -d 0/0 25 -j MASQ ipchains -A forward -p tcp -i eth0 -s 192.9.192.112 -d 0/0 22 -j MASQ ipchains -A forward -p tcp -i eth0 -s 192.9.192.112 -d 0/0 23 -j MASQ ipchains -A input -s 128.121.116.112 -d 0/0 -j ACCEPT ipchains -A input -s 192.9.192.112 -d 0/0 -j ACCEPT echo 1 > /proc/sys/net/ipv4/ip_forward The output of ipchains -L is: Chain input (policy ACCEPT): target prot opt source destination ports ACCEPT all ------ transversalnetworks.com anywhere n/a ACCEPT all ------ 192.9.192.112 anywhere n/a Chain forward (policy ACCEPT): target prot opt source destination ports MASQ all ------ 192.9.192.112 anywhere n/a MASQ tcp ------ 192.9.192.112 anywhere any -> pop3 MASQ tcp ------ 192.9.192.112 anywhere any -> smtp MASQ tcp ------ 192.9.192.112 anywhere any -> ssh MASQ tcp ------ 192.9.192.112 anywhere any -> telnet Chain output (policy ACCEPT): I am not able to recv mails from any pop3 servers nor telnet pop3server 110 works. Can any body guide me where I have gone wrong. Regards -- MDK _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
