Guest Network Setup
Posted: Tue Feb 05, 2013 12:47 pm
My goal was to create an open guest network that was at maximum 1% of my bandwidth when fully utilized. I tried following the instructions on this site and OpenWRT. I ended up trying to create a new guest SSID on it's own network with it's own DHCP network so that QoS was easier to configure by matching on IP address ranges. Now, it seems that my wired connections are using my guest IP ranges... and thus using my guest QoS. What am I doing wrong?
Here are my additions:
/etc/wireless.je
/etc/config/network
/etc/config/dhcp
/etc/config/firewall
And, finally in Gargoyle's QoS, I created a new Service Class called guest and then added rule to the top of the list that matched "Source: 10.0.0.0/8." for upload and "Destination: 10.0.0.0/8" for downloads.
Am I doing this right? Is there a better way? Why is my wired connections getting my 10.0.0 DHCP addresses?
Here are my additions:
/etc/wireless.je
Code: Select all
config wifi-iface 'ap_g2'
option device 'radio0'
option mode 'ap'
option network 'guest'
option ssid 'beer24-guest'
option isolate '1'
option encryption 'none'
Code: Select all
# guest network
config interface 'guest'
option ifname 'eth0.1'
option type 'bridge'
option proto 'static'
option ipaddr '10.0.0.1'
option netmask '255.0.0.0'
option dns '8.8.8.8 8.8.4.4'
Code: Select all
config dhcp 'guest'
option interface 'guest'
option start '100'
option limit '150'
option leasetime '12h'
Code: Select all
config zone
option name 'guest'
option network 'guest'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
config 'forwarding'
option 'src' 'guest'
option 'dest' 'wan'
# Allow DNS Guest -> Router
# Client DNS queries ordinate from dynamic UDP ports (>1023)
config 'rule'
option 'src' 'guest'
option 'dest_port' '53'
option 'proto' 'tcpudp'
option 'target' 'ACCEPT'
# Allow DHCP Guest -> Router
# DHCP communication uses UDP ports 67-68
config 'rule'
option 'src' 'guest'
option 'src_port' '67-68'
option 'dest_port' '67-68'
option 'proto' 'udp'
option 'target' 'ACCEPT'
# Another explicit deny at the end.
config 'rule'
option 'src' 'guest'
option 'dest' 'lan'
option 'proto' 'all'
option 'target' 'REJECT'
Am I doing this right? Is there a better way? Why is my wired connections getting my 10.0.0 DHCP addresses?