From: "David F. Strauch" Subject: Bad argument `53' Date: Wed, 9 Oct 2002 21:17:23 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <002a01c27003$2c9d14e0$0201a8c0@com> Reply-To: "David F. Strauch" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0027_01C26FD9.42B2DDC0" Return-path: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. ------=_NextPart_000_0027_01C26FD9.42B2DDC0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hello Everyone By reading New Riders =93Linux Firewalls=94 by Robert L. Ziegler I=92m = just starting to study iptables. I have a stand-alone firewall offline = and off the local network running RHL 7.3 with Kernel 2.4.18-3 and = iptables 1.2.5. =20 I=92ve just started writing the script to allow DNS Loopkups as a client = with the following: =20 if [ "$CONNECTION_TRACKING" =3D "1" ]; then iptables -A OUTPUT -o $INTERNET -p udp \ -s $IPADDR --sport $UNPRIVPORTS \ -d $NAMESERVER --dport 53 \ -m state --state NEW -j ACCEPT fi =20 iptables -A OUTPUT -o $INTERNET -p udp \ -s $IPADDR --sport $UNPRIVPORTS \ -d $NAMESERVER --dport 53 -j ACCEPT =20 iptables -A INPUT -i $INTERNET -p udp \ -s $NAMESERVER --sport 53 \ -d $IPADDR --dport $UNPRIVPORTS -j ACCEPT =20 When I execute the script with sh /etc/rc.d/rc.firewalls I receive Bad = argument `53' for every instance of either --dport 53 or --sport 53. = I=92ve also tried --destination-port and --source-port with out any = success. =20 Can anyone shed some light on my problem? Dave ------=_NextPart_000_0027_01C26FD9.42B2DDC0 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hello=20 Everyone

 

By=20 reading New Riders =93Linux Firewalls=94 by Robert L. Ziegler I=92m just = starting to=20 study iptables.  I have a=20 stand-alone firewall offline and off the local network running RHL 7.3 = with=20 Kernel 2.4.18-3 and iptables 1.2.5.

 

I=92ve just=20 started writing the script to allow DNS Loopkups as a client with the=20 following:

 

if [=20 "$CONNECTION_TRACKING" =3D "1" ]; then

    iptables -A OUTPUT = -o=20 $INTERNET -p udp \

           &n= bsp;=20 -s $IPADDR --sport $UNPRIVPORTS \

           &n= bsp;=20 -d $NAMESERVER --dport 53 \

           &n= bsp;=20 -m state --state NEW -j ACCEPT

fi

 

iptables -A=20 OUTPUT -o $INTERNET -p udp \

        =20 -s $IPADDR --sport $UNPRIVPORTS \

        =20 -d $NAMESERVER --dport 53 -j ACCEPT

 

iptables -A=20 INPUT  -i $INTERNET -p udp = \

        =20 -s $NAMESERVER --sport 53 \

        =20 -d $IPADDR --dport $UNPRIVPORTS -j = ACCEPT

 

When I=20 execute the script with sh /etc/rc.d/rc.firewalls I receive Bad argument = `53'=20 for every instance of either =20 --dport 53 or --sport 53.  = I=92ve also tried --destination-port and --source-port with out = any=20 success.

 

Can anyone shed some light on my = problem?
 
Dave
------=_NextPart_000_0027_01C26FD9.42B2DDC0--