Talk About Network

Google





Software > Linux Debian Maint Firewall > Can't get iptab...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 12 Topic 1558 of 1645
Post > Topic >>

Can't get iptables LOG

by "Laurent Raufaste" <analogue@[EMAIL PROTECTED] > Feb 22, 2008 at 12:00 PM

Hi,

I'm trying to get iptables to LOG on a xen virtual machine, but for
some reason I can't get iptables to log.

Here's what I'm doing:

in /etc/syslog.conf I have:
*.* /var/log/iptables.log

I restarted syslog:
# /etc/init.d/sysklogd restart
Restarting system log daemon: syslogd.

Now I setup the LOG rule:
iptables -F
iptables -X
iptables -v -A INPUT -j LOG
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT

I can't make it simplier I think.

I check if the rules are ok:
# iptables -nvL
Chain INPUT (policy ACCEPT 630 packets, 46742 bytes)
 pkts bytes target     prot opt in     out     source
destination
   99  7092 LOG        0    --  *      *       0.0.0.0/0
0.0.0.0/0           LOG flags 0 level 4

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source
destination

Chain OUTPUT (policy ACCEPT 436 packets, 65874 bytes)
 pkts bytes target     prot opt in     out     source
destination

I see that some packets are logged in, but I can't see anything in
/var/log/iptables.log, or any other log file =(

See:
cat /var/log/iptables:
Feb 22 11:51:09 jfg-pgslave2 syslogd 1.4.1#18: restart.

Nothing more, even by generating some traffic.
I don't see why it does not work (it works on other boxes) and I don't
see how I can look deeper in order to debug this behavior =(
I'm using a debian etch.

Thanks for the help !

-- 
Laurent Raufaste
<http://www.glop.org/>


-- 
To UNSUBSCRIBE, email to debian-firewall-REQUEST@[EMAIL PROTECTED]
 a subject of "unsubscribe". Trouble? Contact
listmaster@[EMAIL PROTECTED]

 




 12 Posts in Topic:
Can't get iptables LOG
"Laurent Raufaste&qu  2008-02-22 12:00:21 
Re: Can't get iptables LOG
Paolo <oopla@[EMAIL PR  2008-02-22 13:40:08 
Re: Can't get iptables LOG
"Laurent Raufaste&qu  2008-02-22 14:40:12 
Re: Can't get iptables LOG
bartjan@[EMAIL PROTECTED]  2008-02-22 14:00:25 
Re: Can't get iptables LOG
"Laurent Raufaste&qu  2008-02-22 14:40:11 
Re: Can't get iptables LOG
"Laurent Raufaste&qu  2008-02-22 15:00:20 
Re: Can't get iptables LOG
hhding <hhding.gnu@[EM  2008-02-23 01:50:13 
Re: Can't get iptables LOG
Mark Chong <mchong@[EM  2008-04-10 04:00:13 
Re: Can't get iptables LOG
Gian Piero Carrubba <g  2008-04-10 08:00:09 
Re: Can't get iptables LOG
Mark Chong <mchong@[EM  2008-04-10 08:20:08 
Re: Can't get iptables LOG
Gian Piero Carrubba <g  2008-04-11 08:10:10 
Re: Can't get iptables LOG
Paolo <oopla@[EMAIL PR  2008-04-11 09:40:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 10:15:18 PST 2009.