[Ilugc] Re: iptables config problem

  • From: tuxkumar@xxxxxxxxx (SaravanaKumar)
  • Date: Thu, 15 Apr 2004 11:36:15 +0530

vinoo wrote:

how can i shut port 80??
Try to make the default policy DROP and open only those ports u want ( 
22 in ur case).

iptables -P INPUT DROP
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eth0 -p udp --dport 22 -j ACCEPT

in machine eth0 is the internet and eth1 is the internal lan 
connecting another machine....

Make sure to open them for ur LAN too.


HTH
All the best,:-)

SK
-- 
--------------------------------------------------------------------------------
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.

                         --- Linus Torvalds
--------------------------------------------------------------------------------


Other related posts: