Linux Netfilter discussions
 help / color / mirror / Atom feed
* Redhat Linux 8.0 IPtables help
       [not found]     ` <200306041635.19489.rfunk@funknet.net>
@ 2003-06-05 19:32       ` Sundaram Ramasamy
  2003-06-06  4:40         ` Dharmendra.T
  0 siblings, 1 reply; 3+ messages in thread
From: Sundaram Ramasamy @ 2003-06-05 19:32 UTC (permalink / raw)
  To: netfilter

Hi,



I have Linux machine with single Network interface. I want to block all the
tcp,udp and icmp port's other then 22,23,24 and 80.



Can you verify the following script?





IPTABLES=/sbin/iptables



$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP
$IPTABLES -P FORWARD DROP

$IPTABLES -A INPUT -p tcp -m multiport --destination-port 22,23,24,80 -j
ACCEPT



$IPTABLES -A INPUT -p udp -m multiport --destination-port 22,23,24,80 -j
ACCEPT





What port should I block for icmp protocol?



-SR




^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Redhat Linux 8.0 IPtables help
@ 2003-06-05 22:20 George Vieira
  0 siblings, 0 replies; 3+ messages in thread
From: George Vieira @ 2003-06-05 22:20 UTC (permalink / raw)
  To: Sundaram Ramasamy, netfilter

"What port should I block for icmp protocol?"
Errrr??... your blocking them already??? Or did you mean, which icmp should you ACCEPT?

-------------------------
$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP
$IPTABLES -P FORWARD DROP
-------------------------

BTW, why are you allowing UDP 22,23,80??? It's not used for ssh,telnet and http and whatever 24 is.. (can't be bothered). he he ;P

Thanks,
____________________________________________
George Vieira
Systems Manager
georgev@citadelcomputer.com.au

Citadel Computer Systems Pty Ltd
http://www.citadelcomputer.com.au

-----Original Message-----
From: Sundaram Ramasamy [mailto:sun@percipia.com]
Sent: Friday, June 06, 2003 5:33 AM
To: netfilter@lists.netfilter.org
Subject: Redhat Linux 8.0 IPtables help


Hi,



I have Linux machine with single Network interface. I want to block all the
tcp,udp and icmp port's other then 22,23,24 and 80.



Can you verify the following script?

IPTABLES=/sbin/iptables

$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP
$IPTABLES -P FORWARD DROP

$IPTABLES -A INPUT -p tcp -m multiport --destination-port 22,23,24,80 -j
ACCEPT



$IPTABLES -A INPUT -p udp -m multiport --destination-port 22,23,24,80 -j
ACCEPT





What port should I block for icmp protocol?



-SR





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Redhat Linux 8.0 IPtables help
  2003-06-05 19:32       ` Redhat Linux 8.0 IPtables help Sundaram Ramasamy
@ 2003-06-06  4:40         ` Dharmendra.T
  0 siblings, 0 replies; 3+ messages in thread
From: Dharmendra.T @ 2003-06-06  4:40 UTC (permalink / raw)
  To: Sundaram Ramasamy; +Cc: netfilter

[-- Attachment #1: Type: text/plain, Size: 1260 bytes --]

On Fri, 2003-06-06 at 01:02, Sundaram Ramasamy wrote:

    Hi,
    
    
    
    I have Linux machine with single Network interface. I want to block all the
    tcp,udp and icmp port's other then 22,23,24 and 80.
    
    
    
    Can you verify the following script?
    
    
    
    
    
    IPTABLES=/sbin/iptables
    
    
    
    $IPTABLES -P INPUT DROP
    $IPTABLES -P OUTPUT DROP
    $IPTABLES -P FORWARD DROP
    
    $IPTABLES -A INPUT -p tcp -m multiport --destination-port 22,23,24,80 -j
    ACCEPT
    
    
    
    $IPTABLES -A INPUT -p udp -m multiport --destination-port 22,23,24,80 -j
    ACCEPT
    
    
    
    
    
    What port should I block for icmp protocol?
    
    
    
    -SR
    
    	You have to add the following rules to enable the communication.
    

$IPTABLES -A OUTPUT -p tcp -m multiport --source-port 22,23,24,80 -j
ACCEPT
$IPTABLES -A OUTPUT -p udp -m multiport --source-port 22,23,24,80 -j
ACCEPT


-- 
Regards
Dharmendra.T


This message is intended for the addressee only. It may contain
privileged or Confidential information. If you have received this
message in error,please notify the sender and destroy the message
immediately.Unauthorised use or reproduction of this message is strictly
prohibited.

[-- Attachment #2: Type: text/html, Size: 4053 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-06-06  4:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20030602160653.GB14609@eris>
     [not found] ` <20030602165342.GC14917@harp.incogen.com>
     [not found]   ` <20030602171755.GA6298@hactar.local.funknet.net>
     [not found]     ` <200306041635.19489.rfunk@funknet.net>
2003-06-05 19:32       ` Redhat Linux 8.0 IPtables help Sundaram Ramasamy
2003-06-06  4:40         ` Dharmendra.T
2003-06-05 22:20 George Vieira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox