Ross ecrivait :
> #this rule has a syntax problem
> #Bad argument `1024:65535'
> #iptables -A OUTPUT -o $INTERNET -p tcp \
> # -s $IPADRR --sport $UNPRIVPORTS \
> # -d $NAMESERVER --dport 53 -j ACCEPT
The IPADRR doesn't exist (you mean IPADDR I guess) so -s is taking "--sport"
as argument un the UNPRIVPORTS come as an unknown option to iptables.
In general, always quote your variables using double-quote (")! It will give
you more correct error message since an unknown variable comes as an empty
one but this is replaced by the shell before using it to execute the command
so the command is not able to see the empty argument.
Regards, J.C.
--
Jean Christophe ANDRÃ <[EMAIL PROTECTED]> http://www.vn.refer.org/
Coordonnateur technique rÃgional (systÃmes et rÃseaux informatiques)
Agence universitaire de la Francophonie (AuF) / Bureau Asie-Pacifique (BAP)
Adresse postale : AUF, 21 LÃ ThÃnh TÃng, T.T. HoÃn Kiám, HÃ Nái,
Viát Nam
TÃl. : +84 4 9331108 Fax : +84 4 8247383 Mobile : +84 91 3248747
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]