newbie question (LOG problem)
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?
if [ "$1" = "start" ]
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" ]
echo "Stopping firewall ....."
iptables -F INPUT
iptables -P INPUT ACCEPT