November 22, 2024, 01:24:31 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: problem with iptables to block port  (Read 5449 times)

Offline jawed

  • Linux Noob !
  • *
  • Posts: 7
problem with iptables to block port
« 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.

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
problem with iptables to block port
« Reply #1 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!