Posted: Sun Feb 24, 2019 19:40 Post subject: Allow subnet access to virtual AP wl0.1 but block internet?
Hello,
I am on Netgear R7000, using Firmware DD-WRT v3.0-r36070M kongac (05/31/18 )
I have created a virtual AP for the kids at home on wl0.1
At certain time of day, I want to remove the internet from any devices connected to this virtual AP.
At first I tought I could use "wl" to put the interface up or down but it didn't work.
I am now thinking about using a combinaison of cron/iptables to achieve this goal.
I don't know the first thing about iptables so I read on it and came up with 2 lines that, in my mind, would do the trick:
iptables -A INPUT -i wl0.2 -j DROP
iptables -A FORWARD -i wl0.2 -o vlan2 -j DROP
But I am still able to browse internet when connected to this vAP.
Any ideas what my iptables rules should be, or do you have any other suggestions to reach this goal?