I'm trying to setup a parental control on a PC running Slackware64 14.2. I've followed the Alien's wiki
article but it doesn't seem to work properly: Internet becomes practically unusable. It's not dansguardian faults, the error I get from the web browser when I type, for example, www.linuxquestion.org is:
The connection to the server was reset while the page was loading.
-The site could be temporarily unavailable or too busy. Try again in a few moments.
-If you are unable to load any pages, check your computer's network connection.
-If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the web.
I can access the website typing: https://www.linuxquestions.org.
If the site was filtered by dansguardian I would get a different screen, according to the template selected.
Stopping rc.firewall the web surfing is ok but, of course, without control.
So I suppose the problem is related to the iptables rules:
Code:
PRIVUSERS="root"
start() {
/usr/sbin/iptables -A OUTPUT -t nat -p tcp --dport 3128 -m owner --uid-owner nobody -j ACCEPT
/usr/sbin/iptables -A OUTPUT -t nat -p tcp --dport 80 -m owner --uid-owner nobody -j ACCEPT
/usr/sbin/iptables -A OUTPUT -t nat -p tcp --dport 80 -m owner --uid-owner clamav -j ACCEPT
for user in $PRIVUSERS; do
/usr/sbin/iptables -A OUTPUT -t nat -p tcp --dport 80 -m owner --uid-owner $user -j ACCEPT
done
/usr/sbin/iptables -A OUTPUT -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080
/usr/sbin/iptables -A OUTPUT -t nat -p tcp --dport 3128 -j REDIRECT --to-ports 8080
}
I'm not able to troubleshot this. Any hints in diagnosing are appreciated.
Thanks