Net Isolation Function seems to have no effect?

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page 1, 2  Next
Author Message
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Fri Oct 14, 2022 15:50    Post subject: Net Isolation Function seems to have no effect? Reply with quote
Hello!

I have several Archer C7/A7 running and all seem to have a similar behavior but let me first describe my setup:

wlan0 is my privat WiFi network
wlan0.1 (VAP) is my guest WiFi which is set to be unbridged and set the IP to 10.0.35.1/24 and Net Isolation was enabled.

I have created a bridge br30 and set also the IP to 10.0.35.1/24. --> Net Isolation also enabled!

Then I have assigned wlan0.1 to br30
then I have created a new DHCP Server and assigned br30 to this new dhcp.

clients on the guest VAP will get assigned to 10.0.35.x all good so far, BUT the Net Isolation function takes no real effect because all clients on the guest VAP are able to contact the router ip (10.0.10.1) and I suppose all other IPs in my privat subnet.

used firmware r50274 but i whitenessed the same behavior on earlier betas.

Anybody able to assist?
Thanks in advance!

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
Sponsor
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Fri Oct 14, 2022 16:08    Post subject: Reply with quote
Much newer firmware has proper Net Isolation.
_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Fri Oct 14, 2022 16:21    Post subject: Reply with quote
If you add a VAP to a bridge the VAP has to be left Bridged (as it is bridged to br30)

Net isolation works for me, so it should for you too Smile

(Unless you have setup your router as a WAP Wireless access point)

_________________
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
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Fri Oct 14, 2022 16:36    Post subject: Reply with quote
So I have to correct my self a little from my first post.

ONLY the Gateway IP on the private net is accessible (10.0.10.1) other access requestes to my other routers get blocked.


so I updated to r50500 (latest) and I am still able to access the gateways (10.0.10.1) WebUI....

is this intended??

Thanks!

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Fri Oct 14, 2022 19:19    Post subject: Reply with quote
My Bridge br1 (with VAP attached) is on 192.168.14.1/24

My main network is 192.168.13.1/24

When connected to my VAP (IP address 192.168.14.69)

I cannot reach 192.168.14.1 nor anything on 192.168.13.1/24

So I have full net isolation (build 50505, on Linksys EA6900).

I have to switch back not my main network to see iptables:
Quote:
root@EA6900:~# iptables -vnL INPUT
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
965 145K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
1 367 ACCEPT udp -- vlan2 * 0.0.0.0/0 0.0.0.0/0 udp spt:67 dpt:68
0 0 ACCEPT tcp -- vlan2 * 0.0.0.0/0 192.168.13.1 tcp dpt:80
0 0 ACCEPT tcp -- vlan2 * 0.0.0.0/0 192.168.13.1 tcp dpt:22
0 0 ACCEPT tcp -- vlan2 * 0.0.0.0/0 192.168.13.1 tcp dpt:23
0 0 DROP icmp -- vlan2 * 0.0.0.0/0 0.0.0.0/0
37 1184 DROP 2 -- vlan2 * 0.0.0.0/0 0.0.0.0/0
6 392 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0 state NEW
180 42431 ACCEPT all -- br0 * 0.0.0.0/0 0.0.0.0/0 state NEW
1 330 ACCEPT udp -- br1 * 0.0.0.0/0 0.0.0.0/0 udp dpt:67
286 20147 ACCEPT udp -- br1 * 0.0.0.0/0 0.0.0.0/0 udp dpt:53
0 0 ACCEPT tcp -- br1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53
313 109K DROP all -- br1 * 0.0.0.0/0 0.0.0.0/0 state NEW
0 0 ACCEPT all -- br1 * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- br0 * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- br1 * 0.0.0.0/0 0.0.0.0/0
320 94709 DROP all -- * * 0.0.0.0/0 0.0.0.0/0


Everything from br1 is isolated

So not sure how you have setup or what is wrong in your settings

_________________
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
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Fri Oct 14, 2022 19:29    Post subject: Reply with quote
ok this was a hard to find low hanging fruit.

It's a setting in the in the WiFi Basic Settings...



with disabled WebUI access a 401 Bad Request message appears

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Fri Oct 14, 2022 19:37    Post subject: Reply with quote
IF this is the VAP you have made a mistake in setting up.

The VAP must be left bridged as it is bridged to br30 in your case.

Then Net isolation is set on br30.

_________________
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
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Fri Oct 14, 2022 19:50    Post subject: Reply with quote
major fail on my side Crying or Very sad

I always thought unbridging is necessary for just unbridging br0.
but then.... where is unbridging necessary?




Thanks for the enlightenment, will try it out!

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Fri Oct 14, 2022 20:59    Post subject: Reply with quote
So I bridge wlan0.1 again

bridging table displays
br30 wlan0.1

Net Isolation disabled --> network access to all clients on the gateway subnet
Net Isolation enabled --> network access to Gateway still possible, can be turned off by the above mentioned WiFi setting

Is this intended that the router IP is still accessible from another bridge?

Thanks
Tom

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Sat Oct 15, 2022 6:16    Post subject: Reply with quote
No the router is not accessible from a proper setup isolated bridge.

Attached my notes how I do it and when I follow my setup the router is not accessible if Net isolation is enabled, at least on the routers I have.

You probably should start over.

It is easy to see the isolation in action with:
iptables -vnL INPUT

You should see the DROP rule in action

Note:
1. You need a recent build.
2. The router must be in normal gateway mode with its WAN enabled.
3. You have rebooted the router after setting up (normally if you took your time setting up this is not necessary)

_________________
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
tomron
DD-WRT User


Joined: 10 Sep 2020
Posts: 68

PostPosted: Sun Oct 16, 2022 17:16    Post subject: Reply with quote
Hello egc

thanks for sharing your document.

this is the result of the command " iptables -vnL INPUT"

Code:
Chain INPUT (policy ACCEPT 256 packets, 33111 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 DROP       tcp  --  vlan2  *       0.0.0.0/0            0.0.0.0/0            tcp dpt:8080
    0     0 DROP       tcp  --  vlan2  *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80
    0     0 DROP       tcp  --  vlan2  *       0.0.0.0/0            0.0.0.0/0            tcp dpt:443
    0     0 DROP       tcp  --  vlan2  *       0.0.0.0/0            0.0.0.0/0            tcp dpt:69
    0     0 DROP       tcp  --  vlan2  *       0.0.0.0/0            0.0.0.0/0            tcp dpt:23

_________________
VLANs, Wireguard Site to Site, OpenVPN Client, WDS
TP-Link Archer C7 V4, V5
TP-Link Archer A7 V5
TP-Link WR1043 V4
Unifi UAP-AC-M
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Sun Oct 16, 2022 19:09    Post subject: Reply with quote
Compare it with my router.

It looks like there is something wrong with you router.

You are missing a lot of rules.

Are you sure this is a normal gateway router with wan enabled and firewall enabled?

Otherwise consider resetting to defaults and start fresh do not restore from a backup.

_________________
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
DWCruiser
DD-WRT User


Joined: 15 Aug 2016
Posts: 223
Location: Melbourne, Australia

PostPosted: Sun Oct 16, 2022 23:27    Post subject: Reply with quote
Further to what is recommended by egc, i'd like to add the following.

My understanding of DDWRT is that Net Isolation means the nominated vAP is isolated from private VLAN. However, your vAP is placed on a bridge, it (i.e. br30) 'takes over' the controls of the vAP.

And if bridge br30 does not specifically block traffic from other bridges, a host on vAP can reach the router's web UI, despite the host's home vAP settings.

In firewall:

iptables -I FORWARD -i br30 -o br+ -m state --state NEW -j REJECT

The above firewall would block traffic from/to br30 to other bridges. Except the Internet.

_________________
Life is a journey; travel alone makes it less enjoyable and lonely.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Sun Oct 16, 2022 23:43    Post subject: Reply with quote
@DWCruiser, a bridge also has a net isolation setting which should isolate that bridge from br0.

So no need to do that manually Smile

_________________
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
DWCruiser
DD-WRT User


Joined: 15 Aug 2016
Posts: 223
Location: Melbourne, Australia

PostPosted: Sun Oct 16, 2022 23:51    Post subject: Reply with quote
egc wrote:
@DWCruiser, a bridge also has a net isolation setting which should isolate that bridge from br0.

So no need to do that manually Smile


Yeah. You're right. I forgot about that on the bridge settings. Thanks.

_________________
Life is a journey; travel alone makes it less enjoyable and lonely.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum