All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jorge Agrelo" <jagrelo@novadevices.com>
To: netfilter@lists.netfilter.org
Subject: IPSET issue ???
Date: Tue, 29 Mar 2005 19:10:41 -0500	[thread overview]
Message-ID: <4249A831.26741.68F66E4C@localhost> (raw)

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
**********************************

             reply	other threads:[~2005-03-30  0:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-30  0:10 Jorge Agrelo [this message]
2005-03-30  7:57 ` IPSET issue ??? Jozsef Kadlecsik
2005-03-30 22:09   ` Jorge Agrelo
2005-03-31 11:15     ` Jozsef Kadlecsik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4249A831.26741.68F66E4C@localhost \
    --to=jagrelo@novadevices.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.