OpenWrt: Create and configure a new wireless controller

Create and configure a new wireless controller

After logging into the web-interface, manoeuvre to the Wifi page underNetwork. Click Add over the wireless controller (e.g., the 2.4GHz radio) you want to have your guest network on. A new interface will be added as shown here:


https://wiki.openwrt.org/_media/doc/recipes/createwireless.png?cache=

As you can see, our new wireless controller is created, and we named it guest. Next up is configuring it. Choose theEdit option for the controller. You will need to create a new network, as you can see we named our new network guest here:

editwirelessforguest.png

Also, make sure to set up wireless security if you want to protect the connection.

Configure the new interface

Now if you manoeuvre to the Interfaces page under Network, and you should see your new interface, looking similar to this:

guestinterfacecreated.png


You will need to configure you interface before it is useful. Choose Edit, pick the protocolStatic address, and fill out your chosen IPv4 address. We chose 192.168.3.1 here, but you may have different preferences. However, avoid using 192.168.1.1 or 10.0.0.1 as they may already be in use and prevent your guests from acquiring IP-addresses. Remember to set the netmask. You will also need to enable DHCP, we chose to go with the default options here except for the Leasetime wich is only one hour, suitable for environments where a large number of guests connect and leave through a day.

editinterfaceforguest.png


Notice that you have a Firewall Settings tab to the far right of theGeneral Setup tab. Make sure you visit this tab, and create a new zone for your guest, like we have done here:

createfirewallzoneforguest.png

Configure the firewall

Now you are just about done. That last thing we need to do, is to open up for traffic between you guest network and WAN in the firewall. Go to theFirewall page under Network, choose Edit for your guest zone. SetInput to REJECT and tick wan under Allow forward to destination zones. Correctly configured it should look like this:

guest-wlan-firewall-setup.png

Remember to click Save & Apply. The last thing we need to do is to give our guests access to the Internet.

Right now neither DNS nor DHCP traffic will be accepted. We need to create two rules, which we can do from theTraffic rules tab under the Firewall tab. Both rules can be put in underOpen ports on router:. We name the first one Guest DNS here (you can name it what you want), setting both TCP and UDP traffic and port 53:

guest-wlan-dns-setup.png


We need to configure the rule, so choose to edit it. Set Source zone toguest, and set Destination zone to Device (input) like shown here:

guest-wlan-dns-config.png

Similarly, create a new rule to allow DHCP for guests. We name this rule Guest DHCP, choose UDP as protocol, and set 67-68 for ports. Again edit the rule, settingSource zone to guest, and set Destination zone toDevice (input). When you are done it should look like this:

guest-wlan-firewall-config.png

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值