You are not logged in.

#1 2018-02-07 09:58:22

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 505

Bash script to delete conntrack entries for subnets

As you may know conntrack does not support removing entries by subnet.
conntrack v1.4.0 (conntrack-tools): Invalid IP address `xx.1xx.32.0/22'
I need a script made in bash that can remove entire subnets from conntrack.
NOTE : I cannot rely on python/perl etc, nor I can install sipcalc or other IP calculation tools on the box.
Does anyone have or can make something like that?

Offline

Board footer

Powered by FluxBB