Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => General Networking Support in Linux => Topic started by: jawed on July 19, 2004, 11:07:35 AM

Title: problem with iptables to block port
Post by: jawed on July 19, 2004, 11:07:35 AM
Can any body tell me abt iptables, that when I pass the iptables parameters in terminal like,

iptables -A INPUT -p tcp -s 192.168.0.7 --dport 80 -j REJECT
=   = =               ==  =      =       =             =     -j DROP

192.168.0.7 is an internal ip that is pass from eth1, So from this IP all trafic will be block even browsing and I open the port to http

http_port 3128

actually i want to block the messenger's yahoo/msn.
Title: problem with iptables to block port
Post by: Ricky on July 20, 2004, 05:32:00 AM
Ya.. port 80 will block all traffic.. instead find out messenger's port .. i think 5050 etc..  so block only that port..

Also.. I am lil busy so I was unable to give detailed answer abt ur last query for blocking same using squid!!

I will look into that soon!