Hi all.
I have been working with my TP-LINK TL-WR841N and OpenWrt Attitude Adjustment 12.09.
My ultimate goal is to have a children save enviroment on my home network (Porn filtered)
I have an opendns account with the corresponding filters on, then I set up the DNS on LUCI, and added this on Network->Firewall->Custom Rules, to prevent bypassing my dns setup:
iptables -t nat -I PREROUTING -s 192.168.1.0/24 -p udp --dport 53 -j DNAT --to 192.168.1.1
iptables -t nat -I PREROUTING -s 192.168.1.0/24 -p tcp --dport 53 -j DNAT --to 192.168.1.1
I also followed this threath (page2) to block adds:
https://forum.openwrt.org/viewtopic.php?id=35023
Everything was perfect, until I begun searching for Bitorrent Blocking and read about VPNs, and how can "anyone bypass all the router firewall config" (This statement may be wrong, but thats the way I got it). So I took my iPad added a free VPN app, and ... yep, it bypassed all my beautiful setup. I could access porn sites, the adds were everywhere again and so on.
So I started searching about VPNs and found the ports they usually work. I added this rules on LUCI to Network->Firewall->Custom Rules:
iptables -t nat -I PREROUTING -p tcp --dport 1723 -j DROP
iptables -t nat -I PREROUTING -p tcp --dport 47 -j DROP
iptables -t nat -I PREROUTING -p udp --dport 500 -j DROP
iptables -t nat -I PREROUTING -p udp --dport 4500 -j DROP
iptables -t nat -I PREROUTING -p udp --dport 50 -j DROP
iptables -t nat -I PREROUTING -p udp --dport 51 -j DROP
iptables -t nat -I PREROUTING -p udp --dport 1701 -j DROP
But it didn't work at all. I played with this setup a little and use various convinations with REJECT as well, but no good.
I also search throw several websites, but haven't find a conclusive answer. So here I am asking for help:
How can I block/prevent VPNs on my network?
Blocking, Rejecting or even allow them but giving 0 Kb/s bandwith would be the point.
Thanks in advance.