Linux Netfilter discussions
 help / color / mirror / Atom feed
* propper logging and dropping
@ 2009-10-16  3:28 Ralph Blach
  2009-10-16  7:33 ` Mart Frauenlob
  0 siblings, 1 reply; 4+ messages in thread
From: Ralph Blach @ 2009-10-16  3:28 UTC (permalink / raw)
  To: netfilter

Good evening,

I currently have the following macro.

/sbin/iptables -N LOGDROP
/sbin/iptables -A LOGDROP    -i wlan0 ! -s 10.0.0.2 -j LOG --log-level info
/sbin/iptables -A LOGDROP -j DROP
/sbin/iptables -A INPUT -i wlan0 -s    58.102.198.29/255.255.255.0 -j 
LOGDROP

What I really wan to do is log address and excluding certain subnets, 
and address, but drop others on offending networks.
So I want to log addresses to wlan0 whose source address is not 
10.0.0.2, but drop subnets which I exclude.

What is the best way to do this

  Thanks

Chip

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

end of thread, other threads:[~2009-10-16 16:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-16  3:28 propper logging and dropping Ralph Blach
2009-10-16  7:33 ` Mart Frauenlob
2009-10-16 14:36   ` Ralph Blach
2009-10-16 16:18   ` Ralph Blach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox