Flush conntrack when apply route rules

parent 511c17c6
...@@ -34,4 +34,9 @@ if [ x"$table" != "no" ] ; then ...@@ -34,4 +34,9 @@ if [ x"$table" != "no" ] ; then
fi fi
fi fi
conntrack -D --src=$1
conntrack -D --dst=$1
exit 0 exit 0
...@@ -6,4 +6,8 @@ for table in nordvpn.it nordvpn.us rain; do ...@@ -6,4 +6,8 @@ for table in nordvpn.it nordvpn.us rain; do
done done
ipset del tor_ip $1 > /dev/null 2>&1 || true ipset del tor_ip $1 > /dev/null 2>&1 || true
ipset del block_ip $1 > /dev/null 2>&1 || true ipset del block_ip $1 > /dev/null 2>&1 || true
conntrack -D --src=$1
conntrack -D --dst=$1
exit 0 exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment