parental-control: flush hw_nat along with conntrack

(cherry picked from commit 602926b076)

Co-authored-by: Mohd Husaam Mehdi <husaam.mehdi@iopsys.eu>
This commit is contained in:
Vivek Dutta 2025-08-28 12:48:01 +05:30 committed by IOPSYS Dev
parent ac6c0c3e60
commit e1d1b37edf
No known key found for this signature in database

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