Allow subnet access to virtual AP wl0.1 but block internet?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
mariobiron
DD-WRT Novice


Joined: 19 Feb 2019
Posts: 10

PostPosted: Sun Feb 24, 2019 19:40    Post subject: Allow subnet access to virtual AP wl0.1 but block internet? Reply with quote
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?

Thank you
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12887
Location: Netherlands

PostPosted: Sun Feb 24, 2019 21:13    Post subject: Reply with quote
Use -I instead of -A
Use wl0.1 instead of wl0.2

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
mariobiron
DD-WRT Novice


Joined: 19 Feb 2019
Posts: 10

PostPosted: Sun Feb 24, 2019 23:28    Post subject: Reply with quote
Hello!

My mistake on wl0.2 vs wl0.1; type the wrong number in my question but I did enter 0.1 on the router command line.

I just tried using "-I" instead of "-A", still can access the internet using a device that is logged to that virtual AP.

Any other idea?

Thanks
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12887
Location: Netherlands

PostPosted: Mon Feb 25, 2019 11:58    Post subject: Reply with quote
Did you unbridge the wl0.1?
If it is bridged it will not work.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
mariobiron
DD-WRT Novice


Joined: 19 Feb 2019
Posts: 10

PostPosted: Mon Feb 25, 2019 14:53    Post subject: Reply with quote
Hello,
but won't unbriding wl0.1 prevent this segment from accessing other computer and resources in the local network?
Thanks
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12887
Location: Netherlands

PostPosted: Mon Feb 25, 2019 15:01    Post subject: Reply with quote
No not unless you enable net isolation.
But you can only use ip address, there is no discovery between subnets

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum