Linux Netfilter discussions
 help / color / mirror / Atom feed
* [ANNOUNCE] ipset 6.7 released
@ 2011-05-31 20:11 Jozsef Kadlecsik
  2011-05-31 20:13 ` Jozsef Kadlecsik
  2011-05-31 21:42 ` Eric Dumazet
  0 siblings, 2 replies; 6+ messages in thread
From: Jozsef Kadlecsik @ 2011-05-31 20:11 UTC (permalink / raw)
  To: netfilter, netfilter-devel

Hi,

Besides a few bugfixes, ipset 6.7 comes with a new set type called 
hash:net,iface. The new type makes possible to store network address and 
interface name pairs in a set. That way egress and ingress filtering is 
possible with ipset, in just a few rules. Just an example:

# Define the set for all your networks and fill it out
ipset create nets hash:net
ipset add nets 10.0.0.0/8
ipset add nets 192.168.0.0/16
...
# Define the set with the allowed network, interface pairs
ipset create ifaces hash:net,iface
ipset add ifaces 10.0.0.0/24,eth0
ipset add ifaces 10.2.0.0/16,eth1
...
# Create a chain to handle your networks
iptables -N nets
iptables -A nets -m set --match-set ifaces src,src -j ACCEPT
iptables -A nets -j log-and-drop-spoofed-packets
# Egress and ingress filtering
iptables -t raw -A PREROUTING -m set --match-set nets src -j ifaces
iptables -t raw -A PREROUTING -i external-iface0 -j ACCEPT
iptables -t raw -A PREROUTING -i external-iface1 -j ACCEPT
...
iptables -t raw -j log-and-drop-spoofed-packets
# That's all :-)

Kernel part changes:
 - Whitespace and coding fixes, detected by checkpatch.pl
 - hash:net,iface type introduced
 - Use the stored first cidr value instead of '1'
 - Fix return code for destroy when sets are in use
 - Add xt_action_param to the variant level kadt functions, ipset API 
   change
 - Drop supporting kernel versions below 2.6.35

Userspace changes:
 - Whitespace and coding fixes, detected by checkpatch.pl
 - hash:net,iface type introduced
 - hash:* tests may seem to fail due to the too wide grep pattern, fix 
   them
 - Remove iptree tests and compatibility element parsing
 - hash:net test may seem to fail due to the too wide grep pattern, fix it
 - Fix long time uncovered bug at adding string attributes to the netlink
   messages
 - Fix warnings reported by valgrind
 - Remove supporting set types iptree and iptreemap

You can download the source code of ipset from:
        http://ipset.netfilter.org
        ftp://ftp.netfilter.org/pub/ipset/
        git://git.netfilter.org/ipset.git

Best regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlec@mail.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary

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

end of thread, other threads:[~2011-06-01  7:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31 20:11 [ANNOUNCE] ipset 6.7 released Jozsef Kadlecsik
2011-05-31 20:13 ` Jozsef Kadlecsik
2011-05-31 21:42 ` Eric Dumazet
2011-05-31 21:46   ` Mr Dash Four
2011-05-31 21:48     ` Jan Engelhardt
2011-06-01  7:34       ` Jozsef Kadlecsik

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