From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Default policy Date: Sat, 21 Dec 2002 18:46:49 +0530 Sender: netfilter-admin@lists.netfilter.org Message-ID: <001501c2a8f3$40be2e40$1a01a8c0@vishal> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0012_01C2A921.521F8ED0" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: iptables This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C2A921.521F8ED0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, Following is the policy that my firewall generation script gives, but my = system hangs when i execute this, I am using ssh to execute this script. = I am opening all other required ports. When I comment the last two lines = my script works fine. ******Script******* #Set default policies to DROP=20 $IPTABLES -F INPUT=20 $IPTABLES -F OUTPUT=20 $IPTABLES -F FORWARD=20 $IPTABLES -P INPUT DROP $IPTABLES -P OUTPUT DROP=20 $IPTABLES -P FORWARD DROP # Rejecting all Packets #$IPTABLES -A INPUT -s 0/0 -d 0/0 -p udp -j DROP #$IPTABLES -A INPUT -s 0/0 -d 0/0 -p tcp -j DROP Can anyone help me. thanks in advance. Regards, ------=_NextPart_000_0012_01C2A921.521F8ED0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi All,
 
Following is the policy that my = firewall generation=20 script gives, but my system hangs when i execute this, I am using ssh to = execute=20 this script. I am opening all other required ports. When I comment the = last two=20 lines my script works fine.
 
******Script*******
 
#Set default policies to DROP =

$IPTABLES -F INPUT
$IPTABLES -F = OUTPUT=20
$IPTABLES -F FORWARD
$IPTABLES -P INPUT DROP
$IPTABLES -P = OUTPUT DROP=20
$IPTABLES -P FORWARD DROP
 
# Rejecting all Packets
 
#$IPTABLES -A INPUT -s 0/0 -d 0/0 -p = udp -j=20 DROP
#$IPTABLES -A INPUT -s 0/0 -d 0/0 -p tcp -j DROP
 
Can anyone help me.
 
thanks in advance.
 
Regards,
 
------=_NextPart_000_0012_01C2A921.521F8ED0--