Two Netgear R7000 how to setup Guest WiFi on 2nd

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3  Next
Author Message
Tectonic Plates
DD-WRT User


Joined: 02 Oct 2012
Posts: 65
Location: Canada

PostPosted: Sun Dec 25, 2022 17:21    Post subject: Reply with quote
ho1Aetoo wrote:
1. Disable "net isolation" it does not work.
2. it's not necessary to set additional dnsmasq option, the dhcp server can be fully configured in the "networking" tab.
3. the DHCP server in the tab "basic setup" should be disabled because it is provided by your main router.
4. it is recommended to enable "DHCP authoritative" (it will be used for the VAPs).

5. enable SSID broadcasting (disabling the SSID does not help at all from the security point of view, because your clients will broadcast the SSID, the client will ask loud and clear if the SSID "xyz" is somewhere, otherwise it would not be able to connect to the router)


Merry xMas to you all guys. Thanks a lot for taking the troubles to help me out. Thanks for the background explanation about disabling the SSID. Even though this has no effects on security. I still prefer my neighbors not knowing about my SSID.

Done all the above (+reboot the WAP) except:

In the latest firmware I used. There is no "DHCP authoritative". Only DHCP Forwarder. Which I configure the IP address to the main router. Below screenshot show firmware version (top right) and the Setup/Basic setup.

Result: The phone seems to connect to the Guest network, but no Internet. Then Android switches to the home WiFi which connects OK to Internet.



I have tried to SSH into the WAP, hoping to check connectivity with the DHCP version. Not sure if it's correct. But if you need me to run some cmd line toi gather diagnostic info, please let me know

Code:
nc 192.168.1.250 67
nc: can't connect to remote host (192.168.1.250): Connection refused
Sponsor
Tectonic Plates
DD-WRT User


Joined: 02 Oct 2012
Posts: 65
Location: Canada

PostPosted: Sun Dec 25, 2022 17:36    Post subject: Reply with quote
Not sure if this helps, but here are some networking configs I got by SSH into the WAP:

Code:

ip -oneline address && ip route

1: lo    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo\       valid_lft forever preferred_lft forever
9: br0    inet 192.168.1.251/24 brd 192.168.1.255 scope global br0\       valid_lft forever preferred_lft forever
10: wl0.1    inet 192.168.22.1/24 brd 192.168.22.255 scope global wl0.1\       valid_lft forever preferred_lft forever

default via 192.168.1.250 dev br0
127.0.0.0/8 dev lo scope link
192.168.1.0/24 dev br0 scope link  src 192.168.1.251
192.168.22.0/24 dev wl0.1 scope link  src 192.168.22.1



Code:

iptables -L

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere             udp dpt:dns
ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootpc
ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootps
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:dns
REJECT     all  --  anywhere             anywhere             state NEW reject-with icmp-port-unreachable

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
REJECT     all  --  anywhere             192.168.0.0/16       state NEW reject-with icmp-port-unreachable

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain advgrp_1 (0 references)
target     prot opt source               destination

Chain advgrp_10 (0 references)
target     prot opt source               destination

Chain advgrp_11 (0 references)
target     prot opt source               destination

Chain advgrp_12 (0 references)
target     prot opt source               destination

Chain advgrp_13 (0 references)
target     prot opt source               destination

Chain advgrp_14 (0 references)
target     prot opt source               destination

Chain advgrp_15 (0 references)
target     prot opt source               destination

Chain advgrp_16 (0 references)
target     prot opt source               destination

Chain advgrp_17 (0 references)
target     prot opt source               destination

Chain advgrp_18 (0 references)
target     prot opt source               destination

Chain advgrp_19 (0 references)
target     prot opt source               destination

Chain advgrp_2 (0 references)
target     prot opt source               destination

Chain advgrp_20 (0 references)
target     prot opt source               destination

Chain advgrp_3 (0 references)
target     prot opt source               destination

Chain advgrp_4 (0 references)
target     prot opt source               destination

Chain advgrp_5 (0 references)
target     prot opt source               destination
                                                                                                                                   [86/3545]
Chain advgrp_6 (0 references)
target     prot opt source               destination

Chain advgrp_7 (0 references)
target     prot opt source               destination

Chain advgrp_8 (0 references)
target     prot opt source               destination

Chain advgrp_9 (0 references)
target     prot opt source               destination

Chain grp_1 (0 references)
target     prot opt source               destination

Chain grp_10 (0 references)
target     prot opt source               destination

Chain grp_11 (0 references)
target     prot opt source               destination

Chain grp_12 (0 references)
target     prot opt source               destination

Chain grp_13 (0 references)
target     prot opt source               destination

Chain grp_14 (0 references)
target     prot opt source               destination

Chain grp_15 (0 references)
target     prot opt source               destination

Chain grp_16 (0 references)
target     prot opt source               destination

Chain grp_17 (0 references)
target     prot opt source               destination

Chain grp_18 (0 references)
target     prot opt source               destination

Chain grp_19 (0 references)
target     prot opt source               destination

Chain grp_2 (0 references)
target     prot opt source               destination

Chain grp_20 (0 references)
target     prot opt source               destination

Chain grp_3 (0 references)
target     prot opt source               destination

Chain grp_4 (0 references)
target     prot opt source               destination

Chain grp_5 (0 references)
target     prot opt source               destination

Chain grp_6 (0 references)
target     prot opt source               destination

Chain grp_7 (0 references)
target     prot opt source               destination

Chain grp_8 (0 references)
target     prot opt source               destination

Chain grp_9 (0 references)
target     prot opt source               destination

Chain lan2wan (0 references)
target     prot opt source               destination

Chain logaccept (0 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere

Chain logdrop (0 references)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere

Chain logreject (0 references)
target     prot opt source               destination
REJECT     tcp  --  anywhere             anywhere             reject-with tcp-reset

Chain trigger_out (0 references)
target     prot opt source               destination

Chain upnp (0 references)
target     prot opt source               destination
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2977
Location: Germany

PostPosted: Sun Dec 25, 2022 17:37    Post subject: Reply with quote
"DHCP Type" should not be set to "forwarder" but to "DHCP Server" and below that to "disable".

Then below the line "use dnsmasq for dns" the line "DHCP-Authoritative" appears.

It also says in the guide that DHCP should be switched off and not set to forwarder.

Edit: I also have no idea why you have STP enabled in the basic setup tab - it's not a default setting either and it's not mentioned anywhere.



IxSZlVJ.png
 Description:
 Filesize:  110.2 KB
 Viewed:  895 Time(s)

IxSZlVJ.png


Tectonic Plates
DD-WRT User


Joined: 02 Oct 2012
Posts: 65
Location: Canada

PostPosted: Sun Dec 25, 2022 20:00    Post subject: Reply with quote
I have changed the DHCP settings to match what you advised. Also emptied all the Additional options in DNSMasq service. Still not working. EXCEPT if I go to DDWRT WebUI, Setup, Basic Setup, and click "Apply Settings" WITHOUT changing anything.

So it looks like clicking "Apply Settings" started something which could not start properly when the WAP device finished its reboot. I have attempted to add various startup commands. Which amount to "sleep 10; startservice wlconf; startservice dnsmasq". Even SSH into the WAP after reboot to run various service restarts. None of this work. But as soon as I click that "Apply Settings" button described above, Guest network works OK.

Not sure what is going on, maybe a bug in the firmware?

Regarding the STP option. It was enabled Spanning Tree Protocol when I was doing experiment with mesh WiFi network.

This STP setting has no impact on the Guest Network. Enabled or Disabled gives same test results (with and without reboot of the WAP device)
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2977
Location: Germany

PostPosted: Sun Dec 25, 2022 20:05    Post subject: Reply with quote
Well, activate the SSID broadcasting for a test.
Maybe there is a bug.

I don't have a Broadcom router myself but as far as I have read there were some VAP problems in the past that made a workaround necessary.

These are as far as I know but all fixed.
egc has broadcom router and he does not need a workaround.
Tectonic Plates
DD-WRT User


Joined: 02 Oct 2012
Posts: 65
Location: Canada

PostPosted: Sun Dec 25, 2022 20:45    Post subject: Reply with quote
ho1Aetoo wrote:
Well, activate the SSID broadcasting for a test.
Maybe there is a bug.


Just tested. SSID Broadcast enable or disabled changed nothing. After rebooting the WAP device, I must use DDWRT WebUI to click on the "Apply Settings" somewhere, without doing any change.

This time, I click "Apply Settings" in the Menu "Wireless/Basic Settings" (instead of Setup/Basic Setup). Then a few seconds later, the phone could connect in the Guest network.

Indeed I read about the DDWRT Wiki, Guest network / No VAP at boot (Broadcom). I had adapted the instructions of that guide to my device. Also tried starting various service like wlconf or dnsmasq. NONE of that worked.

Fortunately I rarely reboot the WAP device so I can live with that manual workaround for now.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12887
Location: Netherlands

PostPosted: Mon Dec 26, 2022 10:33    Post subject: Reply with quote
A lot of the things you read and are referencing are outdated.

Recent builds do not need any workaround and are just working.

Using and mixing instructions from different sources often does not lead to the desired result.

My advice reset to defaults and only use my instructions Smile

But it is a free world so do as you please

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


Joined: 02 Oct 2012
Posts: 65
Location: Canada

PostPosted: Tue Dec 27, 2022 16:00    Post subject: Reply with quote
egc wrote:
A lot of the things you read and are referencing are outdated.

Recent builds do not need any workaround and are just working.
Using and mixing instructions from different sources often does not lead to the desired result.
My advice reset to defaults and only use my instructions Smile
But it is a free world so do as you please


I actually only wanted to use only your guide. Exactly to avoid reading too many different guides. One thing I didn't attempt was to reconfigure from scratch after a reset. Will do that later and keep you posted.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12887
Location: Netherlands

PostPosted: Tue Dec 27, 2022 16:27    Post subject: Reply with quote
I have polished my notes a bit so try with the latest version 5, which can be downloaded earlier in this thread 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
Tectonic Plates
DD-WRT User


Joined: 02 Oct 2012
Posts: 65
Location: Canada

PostPosted: Mon Jan 16, 2023 7:30    Post subject: Reply with quote
egc wrote:
I have polished my notes a bit so try with the latest version 5, which can be downloaded earlier in this thread Smile


Would like to let you know that the guide v5, works impeccable, right at the first try! This time I flash latest DDWRT + factory reset. Then apply all the config from your guide.

Indeed you were right. There was some crappy config in my Wifi AP which I restored over an over each time I upgrade DDWRT. But at one point some inconsistencies happened in the config. Actually to the point of bricking my Netgear R7000, for which I had to spend almost a day to unbrick. Discussed in bricked Netgear R7000 after update to 2023-01-15
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12887
Location: Netherlands

PostPosted: Mon Jan 16, 2023 8:13    Post subject: Reply with quote
Thanks for reporting back 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
Tectonic Plates
DD-WRT User


Joined: 02 Oct 2012
Posts: 65
Location: Canada

PostPosted: Mon Jan 16, 2023 15:44    Post subject: Reply with quote
egc wrote:
Thanks for reporting back Smile


Can you please give your opinion on this scenario, not covered by your guide. The idea is to enable both 2.4GHz and 5GHz in the Guest WiFi.

Create TWO unbridged Virtual Access Point, on a WAP (Wireless Access Point, no router function). Each VAP has different IP address, different subnet than home network.
- wl0.1 (2.4 GHz) - 192.168.22.1
- wl1.1 (5 GHz) - 192.168.22.2

- Both VAP have the same SSID
- Wireless Security: same config for both VAPs: WPA2-PSK, CCMP-128 (AES), same password
- new DHCP server, bound to wl0.1

Firewall rules modified to accommodate both VAPs

Code:

# Allow Internet access to clients attached to the Virtual AccessPoint
iptables -t nat -I POSTROUTING -o br0 -j SNAT --to $(nvram get lan_ipaddr)

for GUEST_IF in "wl0.1" "wl1.1"
do
  # Block the Virtual AccessPoint from accessing known subnets:
  iptables -I FORWARD -i $GUEST_IF -d 192.168.0.0/16 -m state --state NEW -j REJECT

  # isolate the WAP itself from the guest network
  iptables -I INPUT -i $GUEST_IF -m state --state NEW -j REJECT
 
  # Allow request of type DNS (port 53), DHCP (port 67)
  iptables -I INPUT -i $GUEST_IF -p udp --dport 67 -j ACCEPT
  iptables -I INPUT -i $GUEST_IF -p udp --dport 53 -j ACCEPT
  iptables -I INPUT -i $GUEST_IF -p tcp --dport 53 -j ACCEPT
done


Trying the above, I have noticed the Guest WiFi is unreliable, and mostly non-functional

- Can only connect ONE client. The 2nd client can connect to Guest network, have proper IP address but cannot access internet

- 1st client although could connect to Internet, took about 30 seconds. First it could obtain IP address. Then Android notifies "could not connect to Internet". Then shortly after, Android reports "Connected"

QUESTION: is it because of incorrect firewall rule? Because your guide seems to indicate that multiple VAPs is possible.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2977
Location: Germany

PostPosted: Mon Jan 16, 2023 15:56    Post subject: Reply with quote
For unbridged VAPs, you need two different subnets and two different DHCP servers, not two different IP addresses.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12887
Location: Netherlands

PostPosted: Mon Jan 16, 2023 15:58    Post subject: Reply with quote
Multiple VAP's are certainly possible but not in the way you are doing it.

Either set each VAP on it's own subnet with its own DHCP server or use a bridge and assign both VAP's to the bridge.

Roaming in this case is a function of the client in reality it does not always work the way you want it Sad

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


Joined: 02 Oct 2012
Posts: 65
Location: Canada

PostPosted: Mon Jan 16, 2023 16:52    Post subject: Reply with quote
ho1Aetoo wrote:
For unbridged VAPs, you need two different subnets and two different DHCP servers, not two different IP addresses.


egc wrote:
Either set each VAP on it's own subnet with its own DHCP server or use a bridge and assign both VAP's to the bridge.


Oh it makes all sense now. Thanks very much. Is it OK to use the same WiFi config for these two independent unbridged VAPs? (same SSID, same password)
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
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