DHCP issues on guest wifi

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Fri Jan 30, 2015 1:18    Post subject: DHCP issues on guest wifi Reply with quote
I have setup a guest ssid along side my trusted side ssid. I use IP tables to control access to the internal resources from the guest ssid, everything works fine besides the ip addressing from the dhcp. Clients on the guest ssid sometimes will obtain an address then lose it sometime later, some other clients will connect but won't obtain an address at all. How can i fix this?

Here is the iptables

#Enable NAT on the WAN port
iptables -t nat -I POSTROUTING -o `get_wanface` -j MASQUERADE

#Allow br1vap to access DHCP on the router
iptables -I INPUT -i br1 -p udp --dport 67 -j ACCEPT

#Allow br1vap to access DNS on the router
iptables -I INPUT -i br1 -p udp --dport 53 -j ACCEPT
iptables -I INPUT -i br1 -p tcp --dport 53 -j ACCEPT

#Block br1vap from accessing internal stuff
iptables -I FORWARD -i br1 -d 192.168.2.0/24 -j DROP
iptables -I FORWARD -i br1 -d 192.168.4.0/24 -j DROP
iptables -I FORWARD -i br1 -d 192.168.10.0/24 -j DROP
iptables -I FORWARD -i br1 -o br0 -m state --state NEW -j DROP



Here is what i have for dhcp settings for the guest ssid:

interface=wl0.1
dhcp-option=wl0.1,3,192.16.11.1
dhcp-range=wl0.1,192.16.11.50,192.16.11.100,255.255.255.0,1h
dhcp-option=6,8.8.8.8,4.4.4.4
Sponsor
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Fri Jan 30, 2015 2:00    Post subject: Reply with quote
The br1 is the bridge for the guest network WL.01 and i have WL0 and WL1 which are internal ssid's. Are you saying that the firewall rules should be based on the WL.01 instead?
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Fri Jan 30, 2015 13:48    Post subject: Reply with quote
The WL0 is the 2.4GHZ Radio, WL1 is the 5GHZ Radio and the WL0.1 is the virtual interface (guest ssid)

If i recall correctly i used this site http://www.wi-fiplanet.com/tutorials/article.php/10724_3714521_2 to aid me in creating this guest ssid. All other instructions i believe said to do what you are suggesting and that didn't work for me. The way it is now worked but it seems intermittent
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Sat Jan 31, 2015 2:39    Post subject: Reply with quote
I switched over to the bridge for the dns masq

interface=br1
dhcp-option=br1,3,192.16.11.1
dhcp-range=br1,192.16.11.50,192.16.11.100,255.255.255.0,1h
dhcp-option=br1,6,8.8.8.8,4.4.4.4

I tested one client machine and so it seems to connect right up. I'll let it stay connected for a while in order to see what happens. I used a few different sites to come up with the configuration i have, all the elements work minus the DHCP in a regular basis but given the changes above that may resolve it all.
TCkDfz
DD-WRT Novice


Joined: 23 Aug 2014
Posts: 37

PostPosted: Sat Jan 31, 2015 20:06    Post subject: Reply with quote
I just use the gui settings to enable that behavior.

Checkout this page and the links on it to see if they will work for you: http://www.dd-wrt.com/wiki/index.php/Guest_Network

_________________
ASUS RT-AC68U using build v3.0-r28000M kongac (10/24/15).

LATEST BrainSlayer FIRMWARE --> https://www.dd-wrt.com/site/support/other-downloads?path=betas%2F2016%2F
LATEST Kong FIRMWARE --> http://desipro.de/ddwrt/K3-AC-Arm/
Don't perform the 30/30/30 reset! If the "mtd-erase -d nvram" command doesn't work try "nvram erase."
INSTALL INSTRUCTIONS: http://miketabor.com/installing-dd-wrt-asus-rt-ac66u-router/
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Tue Feb 03, 2015 13:29    Post subject: Reply with quote
After making the following adjustment and giving it sometime i still have the same issue with the DHCP.



Boost4age wrote:
I switched over to the bridge for the dns masq

interface=br1
dhcp-option=br1,3,192.16.11.1
dhcp-range=br1,192.16.11.50,192.16.11.100,255.255.255.0,1h
dhcp-option=br1,6,8.8.8.8,4.4.4.4

I tested one client machine and so it seems to connect right up. I'll let it stay connected for a while in order to see what happens. I used a few different sites to come up with the configuration i have, all the elements work minus the DHCP in a regular basis but given the changes above that may resolve it all.
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Wed Feb 04, 2015 3:12    Post subject: Reply with quote
If the lease expires then the client can connect anymore. When i run a ipconfig on the client i see a autonet address 169.x.x.x. Most times if you look at the SSID list on the client it says limited access.

This occurs for all clients that connect to the guest SSID only, all other SSID's work fine.
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Wed Feb 04, 2015 4:11    Post subject: Reply with quote
I managed to get a client on that guest SSID i saw that it had the correct IP for the guest subnet. The internet worked fine so i did a ipconfig/release on it then i did a ipconfig/flushdns and lastly ipconfig/renew

After i did the renew the client can't won't get an ip anymore so i think the issue is with the DHCP
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Wed Feb 04, 2015 4:36    Post subject: Reply with quote
In most cases i have seen it will say connected to the guest SSID but if i do a ipconfig then i will see an autonet address so to me that seems like a DHCP issue
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Sun Feb 08, 2015 5:35    Post subject: Reply with quote
When it fails and i disconnect from the AP it will not reconnect or get a lease.
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Mon Feb 09, 2015 13:04    Post subject: Reply with quote
If the AP is restarted then clients that could not connect before can connect to the guest ssid
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Tue Feb 10, 2015 12:55    Post subject: Reply with quote
What do you think?
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Fri Feb 13, 2015 12:51    Post subject: Reply with quote
Can anyone help? Confused
madjokeer
DD-WRT Novice


Joined: 09 Oct 2007
Posts: 11

PostPosted: Tue Feb 17, 2015 5:03    Post subject: Reply with quote
same issues with Feb 16, 2015 build 26285M build on AC68. i tried all possible additional options + iptables nothing can get the guest wifi to connect. if i setup everything on a vlan and use one of the ports on the router it works without any issues. only Wifi vlan does not work. Had to revert to a previous build r25527 for it to work.
Boost4age
DD-WRT Novice


Joined: 19 Oct 2014
Posts: 23

PostPosted: Sun Feb 22, 2015 0:06    Post subject: Reply with quote
I have the ac68u and i only have one build available to my model according to the router database http://www.dd-wrt.com/site/support/router-database so i guess i'm screwed on the this guest wi-fi issue?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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