Linux Netfilter discussions
 help / color / mirror / Atom feed
* IPSET issue ???
@ 2005-03-30  0:10 Jorge Agrelo
  2005-03-30  7:57 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 4+ messages in thread
From: Jorge Agrelo @ 2005-03-30  0:10 UTC (permalink / raw)
  To: netfilter

Hi friends

I want to block the offensive network list supplied by dshield
(http://feeds.dshield.org/block.txt) using IPSET match, anybody tell me if the 
following stuff is correct.  

ipset -N bogons-nets nethash
ipset -A bogons-nets 81.208.28.0/24
ipset -A bogons-nets 141.50.163.0/24 ..........
iptables -N blocklist
iptables -A bogons-nets -m set --set bogons-nets scr,dst -j drop
iptables -A INPUT -i ! lo -m state ! --state ESTABLISHED -j blocklist
iptables -A FORWARD -m state ! --state ESTABLISHED -j blocklist
iptables -A OUTPUT -o ! lo -m state ! --state ESTABLISHED -j blocklist

I want to block the source and destination traffic from/to this networks, I'm not sure 
regarding how to use the tokens src and dst and the set type (nethash) in IPSET???

Thanks in advanced

**********************************
CTO: Eng. Jorge Agrelo O.
WEb: www.novadevices.com
E-Mail: jagrelo@novadevices.com
Phone: (593-2) 225-7711 ext. 105
Av. Brasil N44-12 y Condor, Quito-Ecuador
**********************************

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

end of thread, other threads:[~2005-03-31 11:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-30  0:10 IPSET issue ??? Jorge Agrelo
2005-03-30  7:57 ` Jozsef Kadlecsik
2005-03-30 22:09   ` Jorge Agrelo
2005-03-31 11:15     ` Jozsef Kadlecsik

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