newbie question (LOG problem)
Massimo Alonzo
mr.linux@flashnet.it
Fri, 25 Jan 2002 13:04:19 +0100 (CET)
On Fri, 25 Jan 2002, Sascha Andres wrote:
> it's a kernel log facility. you may look at /etc/syslog.conf
> (it resides there on my suse box) to look where those
> messages are stored. for me it's /var/log/messages.
>
> ciao sascha
It's the same for me but I found no log ....
This is my script, remember that it's only an attempt ..... :-)
(I need to filter only packets from the Internet)
According to you is there something wrong?
#!/bin/bash
if [ "$1" = "start" ]
then
echo "Starting firewall ......"
iptables -P INPUT DROP
iptables -A INPUT -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED, RELATED -j ACCEPT
iptables -A INPUT -j LOG --log-prefix 'bad input:'
elif [ "$1" = "stop" ]
then
echo "Stopping firewall ....."
iptables -F INPUT
iptables -P INPUT ACCEPT
fi
Thanks
Massimo