All of lore.kernel.org
 help / color / mirror / Atom feed
* correct net fitler rule
@ 2009-10-28  4:00 Ralph Blach
  2009-10-28 10:45 ` Mart Frauenlob
  0 siblings, 1 reply; 6+ messages in thread
From: Ralph Blach @ 2009-10-28  4:00 UTC (permalink / raw)
  To: netfilter

I want to log all drop packets but just pass some packets

I wrote these rules.
'
Will these test of rules allow all packets on the input of wlan allow 
packets with source address in the 10.0.0.0/255.255.255.0
and drop/log the selected networks>

Thanks
Chip

/sbin/iptables -F
/sbin/iptables -N LOGDROP
/sbin/iptables -A LOGDROP    -i wlan0  -j LOG --log-level 7
/sbin/iptables -A LOGDROP -j DROP
/sbin/iptables -A INPUT  -i wlan -s     10.0.0.0/255.255.255.0 -j 
RETURN  #return
/sbin/iptables -A INPUT  -i wlan -s      24.25.5.148 -j RETURN  
/sbin/iptables -A INPUT  -i wlan -s      24.25.5.147 -j RETURN  
/sbin/iptables -A INPUT -i wlan0 -s    58.102.198.29/255.255.255.0 -j 
LOGDROP  # log and drop


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

end of thread, other threads:[~2009-10-31 23:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28  4:00 correct net fitler rule Ralph Blach
2009-10-28 10:45 ` Mart Frauenlob
2009-10-28 12:49   ` Ralph Blach
2009-10-28 12:53     ` Richard Horton
2009-10-31 19:37       ` Ralph Blach
2009-10-31 23:44         ` Richard Horton

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.