TheUntouchable
Regular Contributor
No reason it won't work! Either not tested, or it has been and I neglected to update the list
Hehe, I will try it hopefully this afternoon and give you a short feedback
No reason it won't work! Either not tested, or it has been and I neglected to update the list
To update:
- Implement DNS Filter for guest networks
- Config file moved to /jffs/configs/YazFi/YazFi.config
- New settings added, preparation for upcoming LAN access
/jffs/scripts/YazFi update
/jffs/scripts/YazFi install
cp /jffs/configs/YazFi.config /jffs/configs/YazFi.config.prev
That actually happened to me recently, I didn't have YazFi configured at the time (had recently moved from 87U to 86U). Which router and f/w?Not sure if this is related to latest Merlin's FW or YazFi update (performed both within a short period) but the list of rules for routing via VPN was empty except the guest network subnet, I had to manually set all the IP's again.
You can runSorry, just got what you meant by /24. The first 3 Octets of the subnet have to match the base router IP subnet for the Asus GUI to show the clients
/jffs/scripts/YazFi status
Not with how YazFi works currently. The guest interfaces are technically still part of the default bridge, but effectively firewalled off. This was to save messing with new bridges and updating EAPD etc. for wireless authentication.Sorry, I forgot to ask can I join a wired port (say port 4) to one of the wireless subnets. In tomato, I could create multiple bridges, vlans and associate virtual wireless interfaces and wired ports to specific subnets
@carloskar and @orion44 is this solution still working for you? If so, I've had a go at implementing it in the testing branch of YazFi - let me know if you'd like to try itI have managed to get it to work correctly, my solution below.
The only problem I can see is that at startup because the wifi is activated but not the DHCP then devices can connect but will not be assigned an IP, and some devices might use a fallback IP configuration or disable autoconnect for that wifi network.
Delay DHCP Startup
Whe the router starts the DHCP is, if enabled, running on the br0 interface and if a device connects to a guest network before the YazFi script has finished it will be assigned a IP configuration for the main network.
The solution for this problem is to enable DHCP for all interfaces first after the YazFi script has finished.
- Disable DHCP for all interfaces by adding no-dhcp-interface for br0 and all the guest networks to dnsmasq.conf.add, for example:
Code:no-dhcp-interface=br0 no-dhcp-interface=wl0.1 no-dhcp-interface=wl0.2
- Modify dnsmasq.postconf so that it deletes the no-dhcp-interface lines added by dnsmasq.conf.add above if the YazFi script has finished:
Code:#!/bin/sh CONFIG=$1 source /usr/sbin/helper.sh FILE=/tmp/0-enable-dhcp if [ -f "$FILE" ]; then logger -t "$(basename $0)[$$]:" "enabling dhcp" pc_delete "no-dhcp-interface=br0" $CONFIG pc_delete "no-dhcp-interface=wl0.1" $CONFIG pc_delete "no-dhcp-interface=wl0.2" $CONFIG fi
- Modify the YazFi script to signal dnsmasq.postconf to enable DHCP and then restart dnsmasq after all networks have been configured:
Code:if [ -z "$1" ]; then Check_Lock Print_Output "true" "YazFi $YAZFI_VERSION starting up" Config_Networks touch /tmp/0-enable-dhcp service restart_dnsmasq exit 0 fi
Unfortunately YazFi won't help here - the guests are given subnets using DHCP, which won't be running in AP mode. Your best bet is to buy APs with proper VLAN support. It likely can be achieved with robocfg (non-HND) but the port configuration varies from model to modelI have read through most of this thread but I may have missed it...
Let me tell you what I want to do and let me know if there's any way to do it (my searching says it isn't possible, but I wanted to ask the gurus around here):
I want to use my three ASUS routers (2x RT-AC87U and RT-AC86U) in access point mode as (you guessed it) access points. They will be connected to my new Ubiquiti Edgerouter 12 and in the future (proper L3 capable switch) Edgeswitches. The goal is to separate and isolate trusted private, guest and IoT traffic. From what I've read, the 87U routers do support VLANs to some degree using roboconfig but the 86U router doesn't. I assume this is a limitation of the Broadcom and/or firmware setups. I want to figure out a way around this. Ultimately, I will end up with a L3 switch (EdgeSwitch 16 or 24?) between my access points (ASUS routers in AP mode) and my new router, an Edgerouter 12 from Ubiquiti. My main question is regarding VLANs... seems the ASUS routers don't play nice when it comes to VLANs.
Has anyone successfully set up ASUS routers as access points with an L2 or L3 switch that uses VLANs to separate guest (or IoT) traffic from private LAN traffic? Here's a version of my proposed (interim until I get a proper L3 swithc between the router and the rest of the system) topology:
What I'd like is to be able to have the Edgerouter convert the combined 10.0.A.X and 10.0.D.X into VLANs. Since the APs can't natively add VLAN tags, I want to do it upstream. The thought is to use YasFi to create separate subnets (i.e. 10.0.10.X and 10.0.40.X) and have the L3 switch or Edgerouter 12 in this case, take those subnets and assign them to VLANs.
I hope this makes sense and I'm not barking up the wrong tree here. I assume this might have been the original intent of Jack Yaz and his script. You ended up with subnets instead of VLANs and I want to know if this has the intended consequences or not. I just fig'ered throw it out to the crowd to see if anything sticks.
Thanks in advance for any insight or help!
Thanks Jack, that's what I was afraid of.Unfortunately YazFi won't help here - the guests are given subnets using DHCP, which won't be running in AP mode. Your best bet is to buy APs with proper VLAN support. It likely can be achieved with robocfg (non-HND) but the port configuration varies from model to model
MYUSERNAME@RT-AC86U:/bin# vlanctl
VLAN Control Utility:
::: Usage:
vlanctl
--if <if_name> Sets the target Interface of a composite vlanctl command to <if_name>.
--rx Sets the direction of a composite vlanctl command to RECEIVE
--tx Sets the direction of a composite vlanctl command to TRANSMIT
--tags <nbr_of_tags> Sets the number of tags of a composite vlanctl command to <nbr_of_tags>
--if-create <real_if_name> <if_index> Creates a new VOPI named <real_if_name>.v<if_index> and attaches it to the real device
<real_if_name>. For instance, if this command were executed for the eth0 real interface and the VOPI interface index were
set to 3, the resulting interface would have been named eth0.v3.
--if-create-name <real_if_name> <vlan_if_name> Creates a new VOPI named <vlan_if_name> and attaches it to the real device
--if-delete <vlan_if_name> Destroy the VOPI named <vlan_if_name>.
--rule-append Inserts a new Tagging Rule as the last rule of the specified Tagging Rule Table. Dependencies: --if, --rx or
--tx, and --tags.
--rule-insert-before <rule-id> Inserts a new Tagging Rule before the Tagging Rule whose identifier matches <rule-id> in the
specified Tagging Rule Table. Dependencies: --if, --rx or --tx, and --tags.
--rule-insert-after <rule-id> Inserts a new Tagging Rule after the Tagging Rule whose identifier matches <rule-id> in the
specified Tagging Rule Table. Dependencies: --if, --rx or --tx, and --tags.
--rule-remove <rule-id> Removes the Tagging Rule that matches <rule-id> from the specified Tagging Rule Table. Dependencies:
--if, --rx or --tx, and --tags.
--rule-remove-all <real_if_name> <vlan_if_name> Removes all the Tagging Rules for the vlan device.
--show-table Lists all Tagging Rules stored in the specified Tagging Rule Table. Dependencies: --if, --rx or --tx, and
--tags.
--default-tpid <tpid> Sets the default TPID value of a tagging rule table to <tpid>. When a table is created, its default
TPID value is set to 0x8100. Dependencies: --if, --rx or --tx, and --tags.
--default-pbits <pbits> Sets the default PBITS value of a tagging rule table to <pbits>. When a table is created, its
default PBITS value is set to 0. Dependencies: --if, --rx or --tx, and --tags.
--default-cfi <cfi> Sets the default CFI value of a tagging rule table to <cfi>. When a table is created, its default CFI
value is set to 0. Dependencies: --if, --rx or --tx, and --tags.
--default-vid <vid> Sets the default VID value of a tagging rule table to <vid>. When a table is created, its default VID
value is set to 1 (as per IEEE 802.1Q). Dependencies: --if, --rx or --tx, and --tags.
...
TRUNCATED HERE BECAUSE THE FORUM WON'T LET ME POST OVER 10000 CHARACTERS
...
--rule-type <type> set the type of rule. 0: flow; 1: qos;
--create-flows <rx_vlan_ifname> <tx_vlan_ifname> Setup vlan flows for the path (rx_vlan_ifname->tx_vlan_ifname).
--delete-flows <rx_vlan_ifname> <tx_vlan_ifname> Remove vlan flows for the path (rx_vlan_ifname->tx_vlan_ifname).
Hi Jack, just thought I'd point out a typo in the above commands, dhcp is "dchp", it took me a while to notice and I couldn't figure out why they weren't working.To enable:To disable:Code:/jffs/scripts/YazFi blockdchp
Code:/jffs/scripts/YazFi unblockdchp
Good spot - I'll admit I had stared at "DHCP" for about 3 hours at that point, I'd gone a bit blindHi Jack, just thought I'd point out a typo in the above commands, dhcp is "dchp", it took me a while to notice and I couldn't figure out why they weren't working.
Easily done.Good spot - I'll admit I had stared at "DHCP" for about 3 hours at that point, I'd gone a bit blind
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!