Flush conntrack state table using the netfilter netlink library.
It is possible To flush the whole table using the standard conntrack tools. This tool allows for exclusion of some ports from the flush. Just give the port numbers to exclude as argument.
The following libs from the netfilter netlink library:
- libnfnetlink
- libnetfilter_conntrack
- libmnl
Flush the whole state table except SSH, HTTP and HTTPS connections.
conntrack-flush 22 80 443
GPLv2 since it links against the netfilter netlink library which is licensed according to GPLv2.