Firewall questions I promised you.

Nigel Wade nmw at ion.le.ac.uk
Tue Jun 1 09:38:21 UTC 2004


Bruce McDonald wrote:
> Hello all,
> 
> I have written my firewall rules using the examples in Linux Firewall Second
> Edition by Robert Zeigler.  Now, when I run the script I get a couple of
> errors.
> 
> One is:
> Bad argument `22'
> Try `iptables -h' or 'iptables --help' for more information.
> 
> This shows up after lines like:
> if [ "$CONNECTION_TRACKING" = "1" ]; then
>     iptables -A local-tcp-client-request -p tcp \
>              -d $SSH_CLIENT --dport 22 \
>              --syn -m state --state NEW \
>              -j ACCEPT
> fi
> 

This iptables command works here, provided SSH_CLIENT is set correctly. What 
is your setting for SSH_CLIENT?

-- 
Nigel Wade, System Administrator, Space Plasma Physics Group,
             University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw at ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555





More information about the Redhat-install-list mailing list