├── .gitignore ├── 3rdparty └── uthash │ ├── utarray.h │ ├── uthash.h │ └── utstring.h ├── CMakeLists.txt ├── LICENSE ├── README.md ├── cmake └── modules │ ├── FindCheck.cmake │ ├── FindJemalloc.cmake │ ├── FindLibbson.cmake │ ├── FindLibconfig.cmake │ ├── FindLibevent.cmake │ ├── FindLibfreeradius_client.cmake │ ├── FindLibpcre.cmake │ ├── FindPcap.cmake │ └── FindTcmalloc.cmake ├── cppcheck.sh ├── src ├── CMakeLists.txt ├── atomic.h ├── blacklist.c ├── blacklist.h ├── client.c ├── client.h ├── client_db.c ├── client_db.h ├── client_rules.c ├── client_rules.h ├── config.c ├── config.h ├── dhcp.c ├── dhcp.h ├── firewall.c ├── firewall.h ├── forwarder.c ├── forwarder.h ├── globals.h.in ├── log.c ├── log.h ├── main.c ├── master.c ├── monitor.c ├── monitor.h ├── nat.c ├── nat.h ├── netdef.h ├── netmap.c ├── netmap.h ├── netproto.c ├── netproto.h ├── overlord.c ├── packet.c ├── packet.h ├── packet_arp.c ├── packet_dhcp.c ├── packet_ipv4.c ├── radius.c ├── radius.h ├── remotectl.c ├── remotectl_bson.c ├── remotectl_bson.h ├── scope.c ├── scope.h ├── scope_rules.c ├── scope_rules.h ├── session.c ├── session.h ├── session_db.c ├── session_db.h ├── speed_meter.c ├── speed_meter.h ├── token_bucket.c ├── token_bucket.h ├── util.c ├── util.h ├── util_pcre.h ├── util_string.c ├── util_string.h ├── util_time.c ├── util_time.h ├── worker.c ├── worker.h ├── zero.c └── zero.h ├── tests ├── CMakeLists.txt ├── blacklist_test.c ├── client_rules_test.c ├── data │ └── blacklist1.txt ├── firewall_test.c ├── forwarder_test.c ├── nat_test.c ├── netproto_test.c ├── util_string_test.c └── util_test.c ├── zeroctl.py ├── zerod.blacklist.dist ├── zerod.conf.dist.in ├── zerod.py └── zerod.supp /.gitignore: -------------------------------------------------------------------------------- 1 | CMakeLists.txt.* 2 | /build/ 3 | /.idea/ 4 | -------------------------------------------------------------------------------- /3rdparty/uthash/utarray.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/3rdparty/uthash/utarray.h -------------------------------------------------------------------------------- /3rdparty/uthash/uthash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/3rdparty/uthash/uthash.h -------------------------------------------------------------------------------- /3rdparty/uthash/utstring.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/3rdparty/uthash/utstring.h -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/README.md -------------------------------------------------------------------------------- /cmake/modules/FindCheck.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/cmake/modules/FindCheck.cmake -------------------------------------------------------------------------------- /cmake/modules/FindJemalloc.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/cmake/modules/FindJemalloc.cmake -------------------------------------------------------------------------------- /cmake/modules/FindLibbson.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/cmake/modules/FindLibbson.cmake -------------------------------------------------------------------------------- /cmake/modules/FindLibconfig.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/cmake/modules/FindLibconfig.cmake -------------------------------------------------------------------------------- /cmake/modules/FindLibevent.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/cmake/modules/FindLibevent.cmake -------------------------------------------------------------------------------- /cmake/modules/FindLibfreeradius_client.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/cmake/modules/FindLibfreeradius_client.cmake -------------------------------------------------------------------------------- /cmake/modules/FindLibpcre.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/cmake/modules/FindLibpcre.cmake -------------------------------------------------------------------------------- /cmake/modules/FindPcap.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/cmake/modules/FindPcap.cmake -------------------------------------------------------------------------------- /cmake/modules/FindTcmalloc.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/cmake/modules/FindTcmalloc.cmake -------------------------------------------------------------------------------- /cppcheck.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/cppcheck.sh -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/CMakeLists.txt -------------------------------------------------------------------------------- /src/atomic.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/atomic.h -------------------------------------------------------------------------------- /src/blacklist.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/blacklist.c -------------------------------------------------------------------------------- /src/blacklist.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/blacklist.h -------------------------------------------------------------------------------- /src/client.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/client.c -------------------------------------------------------------------------------- /src/client.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/client.h -------------------------------------------------------------------------------- /src/client_db.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/client_db.c -------------------------------------------------------------------------------- /src/client_db.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/client_db.h -------------------------------------------------------------------------------- /src/client_rules.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/client_rules.c -------------------------------------------------------------------------------- /src/client_rules.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/client_rules.h -------------------------------------------------------------------------------- /src/config.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/config.c -------------------------------------------------------------------------------- /src/config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/config.h -------------------------------------------------------------------------------- /src/dhcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/dhcp.c -------------------------------------------------------------------------------- /src/dhcp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/dhcp.h -------------------------------------------------------------------------------- /src/firewall.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/firewall.c -------------------------------------------------------------------------------- /src/firewall.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/firewall.h -------------------------------------------------------------------------------- /src/forwarder.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/forwarder.c -------------------------------------------------------------------------------- /src/forwarder.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/forwarder.h -------------------------------------------------------------------------------- /src/globals.h.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/globals.h.in -------------------------------------------------------------------------------- /src/log.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/log.c -------------------------------------------------------------------------------- /src/log.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/log.h -------------------------------------------------------------------------------- /src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/main.c -------------------------------------------------------------------------------- /src/master.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/master.c -------------------------------------------------------------------------------- /src/monitor.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/monitor.c -------------------------------------------------------------------------------- /src/monitor.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/monitor.h -------------------------------------------------------------------------------- /src/nat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/nat.c -------------------------------------------------------------------------------- /src/nat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/nat.h -------------------------------------------------------------------------------- /src/netdef.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/netdef.h -------------------------------------------------------------------------------- /src/netmap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/netmap.c -------------------------------------------------------------------------------- /src/netmap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/netmap.h -------------------------------------------------------------------------------- /src/netproto.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/netproto.c -------------------------------------------------------------------------------- /src/netproto.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/netproto.h -------------------------------------------------------------------------------- /src/overlord.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/overlord.c -------------------------------------------------------------------------------- /src/packet.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/packet.c -------------------------------------------------------------------------------- /src/packet.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/packet.h -------------------------------------------------------------------------------- /src/packet_arp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/packet_arp.c -------------------------------------------------------------------------------- /src/packet_dhcp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/packet_dhcp.c -------------------------------------------------------------------------------- /src/packet_ipv4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/packet_ipv4.c -------------------------------------------------------------------------------- /src/radius.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/radius.c -------------------------------------------------------------------------------- /src/radius.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/radius.h -------------------------------------------------------------------------------- /src/remotectl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/remotectl.c -------------------------------------------------------------------------------- /src/remotectl_bson.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/remotectl_bson.c -------------------------------------------------------------------------------- /src/remotectl_bson.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/remotectl_bson.h -------------------------------------------------------------------------------- /src/scope.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/scope.c -------------------------------------------------------------------------------- /src/scope.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/scope.h -------------------------------------------------------------------------------- /src/scope_rules.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/scope_rules.c -------------------------------------------------------------------------------- /src/scope_rules.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/scope_rules.h -------------------------------------------------------------------------------- /src/session.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/session.c -------------------------------------------------------------------------------- /src/session.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/session.h -------------------------------------------------------------------------------- /src/session_db.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/session_db.c -------------------------------------------------------------------------------- /src/session_db.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/session_db.h -------------------------------------------------------------------------------- /src/speed_meter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/speed_meter.c -------------------------------------------------------------------------------- /src/speed_meter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/speed_meter.h -------------------------------------------------------------------------------- /src/token_bucket.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/token_bucket.c -------------------------------------------------------------------------------- /src/token_bucket.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/token_bucket.h -------------------------------------------------------------------------------- /src/util.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/util.c -------------------------------------------------------------------------------- /src/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/util.h -------------------------------------------------------------------------------- /src/util_pcre.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/util_pcre.h -------------------------------------------------------------------------------- /src/util_string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/util_string.c -------------------------------------------------------------------------------- /src/util_string.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/util_string.h -------------------------------------------------------------------------------- /src/util_time.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/util_time.c -------------------------------------------------------------------------------- /src/util_time.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/util_time.h -------------------------------------------------------------------------------- /src/worker.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/worker.c -------------------------------------------------------------------------------- /src/worker.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/worker.h -------------------------------------------------------------------------------- /src/zero.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/zero.c -------------------------------------------------------------------------------- /src/zero.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/src/zero.h -------------------------------------------------------------------------------- /tests/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/tests/CMakeLists.txt -------------------------------------------------------------------------------- /tests/blacklist_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/tests/blacklist_test.c -------------------------------------------------------------------------------- /tests/client_rules_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/tests/client_rules_test.c -------------------------------------------------------------------------------- /tests/data/blacklist1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/tests/data/blacklist1.txt -------------------------------------------------------------------------------- /tests/firewall_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/tests/firewall_test.c -------------------------------------------------------------------------------- /tests/forwarder_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/tests/forwarder_test.c -------------------------------------------------------------------------------- /tests/nat_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/tests/nat_test.c -------------------------------------------------------------------------------- /tests/netproto_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/tests/netproto_test.c -------------------------------------------------------------------------------- /tests/util_string_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/tests/util_string_test.c -------------------------------------------------------------------------------- /tests/util_test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/tests/util_test.c -------------------------------------------------------------------------------- /zeroctl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/zeroctl.py -------------------------------------------------------------------------------- /zerod.blacklist.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/zerod.blacklist.dist -------------------------------------------------------------------------------- /zerod.conf.dist.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/zerod.conf.dist.in -------------------------------------------------------------------------------- /zerod.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/zerod.py -------------------------------------------------------------------------------- /zerod.supp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/intersvyaz/zerod/HEAD/zerod.supp --------------------------------------------------------------------------------