Thank You,
Now I tried the following thing, but the problem is still the same
I updated the kernel and everything with YOU!
#!/bin/sh
#
# A simple firewall initialization script
#
WHITELIST=/usr/local/etc/whitelist.txt
BLACKLIST=/usr/local/etc/blacklist.txt
ALLOWED="22 25 80 443"
#
# Drop all existing filter rules
#
iptables -F
iptables -X
iptables -Z
iptables -N filter
#
# First, run through $WHITELIST, accepting all traffic from the hosts and
networks
# contained therein.
#
for x in `grep -v ^# $WHITELIST | awk '{print $1}'`; do
echo "Permitting $x..."
iptables -A INPUT -t filter -s $x -j ACCEPT
done
#
# Now run through $BLACKLIST, dropping all traffic from the hosts and
networks
# contained therein.
#
for x in `grep -v ^# $BLACKLIST | awk '{print $1}'`; do
echo "Blocking $x..."
iptables -A INPUT -t filter -s $x -j DROP
done
#
# Next, the permitted ports: What will we accept from hosts not appearing
# on the blacklist?
#
for port in $ALLOWED; do
echo "Accepting port $port..."
iptables -A INPUT -t filter -p tcp --dport $port -j ACCEPT
done
#
# Finally, unless it's mentioned above, and it's an inbound startup request,
# just drop it.
#
iptables -A INPUT -t filter -p tcp --syn -j DROP
"Amir Malik" <(E-Mail Removed)> schrieb im Newsbeitrag
news:c59h62$2p6djm$(E-Mail Removed)...
> Bernd Roth wrote:
>
> > I wrote the following Iptables script,
> > but I always get the error message "Blocking Starting"
> > Bad Argument filter
>
> You haven't created the chain "filter". Create it after flushing the
> firewall:
> iptables -N filter
>
> > The message suddenly appeared, however in the beginning everything was
ok
> > for a 2 or 3 months!
>
> Maybe you upgraded an iptables kernel module?
>
> > # Drop all existing filter rules
> > iptables -F
>
> In addition to flusing the rules, you might want to delete the
> user-defined chains and zero the packet counters:
> iptables -X
> iptables -Z
>
> You can find a lot more hints at http://www.netfilter.org/documentation/
>
> --
> Amir Malik
> http://www.unoc.net/a/ | $email =~ s/SPAMBLOCK/a/;
> 4296 EE70 8F7C 1D1A D3C9 D885 95A9 6F83 73E7 589E