I want to log my iptables rules to a seperate file.
In a iptables manual I found the following
Quote:
In other words, setting kern.=info /var/log/iptables in your syslog.conf file and then letting all your LOG messages in iptables use log level info, would make all messages appear in the /var/log/iptables file.
|
After doing this, I created the following rule:
iptables -I FORWARD -p TCP -d any/0 --dport 80 -j LOG --log-level info --log-prefix "TEST "
Now all my traffic going to websites should be logged in /var/log/iptables, but there is no such file!
Even restarting the network or creating the file by hand didn't solve my problem.
Anyone?