[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where to install the firewall scripts



> /etc/network/if-pre-up.d/iptables
Oops, that second script is supposed to be

/etc/network/if-post-down.d/iptables
             ^^^^^^^^^^^^^^
> #!/bin/sh
> 
> if [ `uname -r | cut -b -3` != "2.4" ]; then
> #   echo "Not a 2.4 kernel.  Exiting iptables firewall script.";
>    exit 0;
> fi
> 
> # This deletes existing tables
> iptables -F
> iptables -X

-- 
http://www.torrin.net



Reply to: