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@xxxxxxxxxxxxxxxxx, kadlec@xxxxxxxxxxxx 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 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html