Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

zenedge/zentables-addons

Repository files navigation

Zenedge add-ons for netfilter/iptables

Zentables-addons is a set of extensions to netfilter/iptables developed by Zenedge and based on Xtables-addons.

Zenset

Zenset is a netfilter/iptables extension which provides support for matching Proxy Protocol source address using IP Set.

RESET

RESET is a netfilter/iptables extension which provides support to finalize an established TCP connection by emulating a TCP RST to both ends. This extension is based on ipt_REJECT.

Usage

For example, for blocking the source address 10.10.10.10 sent through Proxy Protocol using TCP RST and a IP set, we can use:

# ipset create blacklist hash:ip
# ipset add blacklist 10.10.10.10
# iptables -I INPUT -p tcp -m zenset --proxy-protocol --match-set blacklist src -j RESET

Installation

Dependencies

# apt-get install libmnl-dev libltdl7-dev iptables-dev libxtables10 libipset-dev ipset

Building

$ ./autogen.sh
$ ./configure
$ make
# make install

Running

# depmode -a
# modprobe xt_zenset
# modprobe xt_RESET