All of lore.kernel.org
 help / color / mirror / Atom feed
* How to log redirected packets
@ 2004-09-08 22:42 Khoa Nguyen
  2004-09-09 12:04 ` Abdul-Wahid Paterson
  2004-09-09 16:41 ` Jose Maria Lopez
  0 siblings, 2 replies; 3+ messages in thread
From: Khoa Nguyen @ 2004-09-08 22:42 UTC (permalink / raw)
  To: netfilter

Hi,

I have the following in the nat table:

[root@jungle log]# iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 6 packets, 547 bytes)
 pkts bytes target     prot opt in     out     source
destination         
    2   120 REDIRECT   tcp  --  any    any     anywhere
anywhere           tcp dpt:http redir ports 8081 
    0     0 REDIRECT   tcp  --  any    any     anywhere
172.16.6.5         tcp dpt:rtsp redir ports 8081 
    0     0 REDIRECT   tcp  --  any    any     172.16.6.5
anywhere           tcp spt:rtsp redir ports 8081 
    0     0 REDIRECT   tcp  --  any    any     anywhere
172.16.6.6         tcp dpt:rtsp redir ports 8081 
    0     0 REDIRECT   tcp  --  any    any     172.16.6.6
anywhere           tcp spt:rtsp redir ports 8081 


Now I would like to log all redirected packets to a file. How do I do
that? I did try the following but it didn't work:

iptables -t nat -A PREROUTING -j LOG --log-level debug

It only logged message destined to its local interface.

Thanks,

Khoa Nguyen


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-09 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-08 22:42 How to log redirected packets Khoa Nguyen
2004-09-09 12:04 ` Abdul-Wahid Paterson
2004-09-09 16:41 ` Jose Maria Lopez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.