parental-control: flush hw_nat along with conntrack

This commit is contained in:
Mohd Husaam Mehdi 2025-08-27 21:24:38 +05:30
parent 74cfe57095
commit 602926b076

View file

@ -44,8 +44,10 @@ configure_fw_rules() {
else
# Now flush the existing connections, otherwise,
# URL filtering cannot be performed on already open sites.
if [ -n "$(which conntrack)" ]; then
sleep 5
if which hw_nat > /dev/null 2>&1; then
hw_nat -! > /dev/null 2>&1
fi
if which conntrack > /dev/null 2>&1; then
conntrack -F > /dev/null 2>&1
fi