ThePooBurner
New Around Here
Hi everyone. I've been scouring this forum for a couple months now looking for information on using VLANs via scripting and trying to make sense of everything that I've read. I'm not making this post lightly, as in most of what i've read there seem to be a lot "You should have searched first! What's wrong with you?! Don't you know how to internet-forum properly!? Hey everybody, get a load of this guy! He doesn't know how to Internet!" type comments. Don't get me wrong, there is a lot of help, too, a phenomenal amount, but still it's enough to make a person not want to make a post unless they've hit a brick wall, had that wall fall over on top of them, and then discover that there is a steel wall behind that which is also teetering in the direction of what may well soon be their corpse. Oh, and heaven help you and God have mercy on your soul if you have a converted TM-AC1900. Those poor souls.
Except for whole "search first" stuff everyone is generally really nice and willing to help and answer questions, but it seems almost everyone talks about stuff in the same way that linux *is*: it's taken for granted that you just know what everything is, how it works, and why. Don't know about iptables and ebtables? That's really just too bad, you need to check the manuals. Look up the manuals for them and they are written with the same assumption that you are Linus Torval and already know everything. Not only that, but the documentation also says "this is everything this can do *IF* it was compiled that way and was built with the lastest version out of 7000. Check the source code to see what options it was or wasn't compiled with. and which version it was built from." Uhhh. OK.... So now in order to know how to setup the tables i need to become an expert in all things Linux and go traipsing through sources and builds to figure out what i can and can't do? Oy vay!
For someone who isn't already familiar with Linux it can make everything much harder to digest, and makes it harder to know how to troubleshoot before asking for help. I really don't mean to be, and hope i'm not coming off as, passive aggressively or anything. I have been extremely impressed by everything i've seen. That a world like this existed for routers, with scripts like Skynet and Diversion, or any scripts really, wasn't even a consideration. It's just a combination of being overwhelmed, a little lost, and frustrated at getting stuck.
Background: My house has an apartment built in the basement. I live in the basement and rent out the upstairs to 4 college kids. I began to include internet in the rent in August after i upgraded to a 1gb synchronous fiber connection. I wanted to be sure that i would have as much bandwidth as possible to the tenants since there is so much Online stuff now because of COIVD, but i also wanted to isolate them and their guests from my LAN. I was already a bit worried about feeding everyone with the router i had, and then when i was moving the gear to a more central part of the house where the fiber was going to be installed one of my kids knocked the router off the shelf and broke off one of the antenna. So i decided i would try to upgrade. I could either buy a new high end router with a million antennas, or i could buy an access point that would offer all the wireless bandwidth i could dream of for cheaper and just plug it into the router. I opted to get a Unifi nano-HD. It supports VLAN tagging and multiple SSIDs. All LAN devices are hooked to a dumbswitch that is plugged into the router on port 1. The AP is plugged into the router on port 2.
The plan was put the access point upstairs in the middle of the house to feed everyone up there the best signal possible. I would also connect my devices through it and disable the wireless on the router so there wouldn't be any interference. I would have 4 SSIDs each on their own VLAN and sub-net coming from the AP: Main (shared with LAN), IoT, Tenants, AllGuests. All would have WAN access, be NAT'ed, be protected by the firewall, as well as the following:
What was tried: So after having done the requisite search for the term "VLAN", and reading every post of every thread on the subject going back to 2012, I am still left wanting. For example, I used versions and/or combinations of most of the scripts from these threads, and some others i don't feel like digging through my browser history to find:
I've been looking through all of this and trying to sort out all the relevant pieces, but for some reason it's just not clicking (or working). Problems I ran into when trying all of these in approximate order:
After a hard factory reset of the ac87r and an upgrade to Merlin 384.13 (the last build available for this model) I used AMTM to give myself a 2gig swap on a 16gig usb stick, and put on Diversion, Skynet, YazFi, scMerlin, and most of the stuff offered in AMTM. I just performed a backup with NSRU, and so i'm ready to try again. This is where I'm stuck, mostly because i don't want to run into any of the previous issues again.
Hit the character limit. Continued in Post #2.
Except for whole "search first" stuff everyone is generally really nice and willing to help and answer questions, but it seems almost everyone talks about stuff in the same way that linux *is*: it's taken for granted that you just know what everything is, how it works, and why. Don't know about iptables and ebtables? That's really just too bad, you need to check the manuals. Look up the manuals for them and they are written with the same assumption that you are Linus Torval and already know everything. Not only that, but the documentation also says "this is everything this can do *IF* it was compiled that way and was built with the lastest version out of 7000. Check the source code to see what options it was or wasn't compiled with. and which version it was built from." Uhhh. OK.... So now in order to know how to setup the tables i need to become an expert in all things Linux and go traipsing through sources and builds to figure out what i can and can't do? Oy vay!
For someone who isn't already familiar with Linux it can make everything much harder to digest, and makes it harder to know how to troubleshoot before asking for help. I really don't mean to be, and hope i'm not coming off as, passive aggressively or anything. I have been extremely impressed by everything i've seen. That a world like this existed for routers, with scripts like Skynet and Diversion, or any scripts really, wasn't even a consideration. It's just a combination of being overwhelmed, a little lost, and frustrated at getting stuck.
Background: My house has an apartment built in the basement. I live in the basement and rent out the upstairs to 4 college kids. I began to include internet in the rent in August after i upgraded to a 1gb synchronous fiber connection. I wanted to be sure that i would have as much bandwidth as possible to the tenants since there is so much Online stuff now because of COIVD, but i also wanted to isolate them and their guests from my LAN. I was already a bit worried about feeding everyone with the router i had, and then when i was moving the gear to a more central part of the house where the fiber was going to be installed one of my kids knocked the router off the shelf and broke off one of the antenna. So i decided i would try to upgrade. I could either buy a new high end router with a million antennas, or i could buy an access point that would offer all the wireless bandwidth i could dream of for cheaper and just plug it into the router. I opted to get a Unifi nano-HD. It supports VLAN tagging and multiple SSIDs. All LAN devices are hooked to a dumbswitch that is plugged into the router on port 1. The AP is plugged into the router on port 2.
The plan was put the access point upstairs in the middle of the house to feed everyone up there the best signal possible. I would also connect my devices through it and disable the wireless on the router so there wouldn't be any interference. I would have 4 SSIDs each on their own VLAN and sub-net coming from the AP: Main (shared with LAN), IoT, Tenants, AllGuests. All would have WAN access, be NAT'ed, be protected by the firewall, as well as the following:
- Main should have no device isolation. It should be able to see all the other sub-nets and the devices on them, but not have direct access to the devices except that it should have access outbound to the IoT subnet so i can reach their webUIs as needed.
- IoT should be totally isolated from each other. Not able to see beyond it's own sub-net, or be accessed by any other sub-net except for me accessing the webUI from the LAN/Main and only the LAN/Main.
- Tenants should not be able to see the other 3 sub-nets, but not have device isolation within it's sub-net.
- AllGuests would have total isolation from everything, being able to only access the internet and show up in a client list on the router.
What was tried: So after having done the requisite search for the term "VLAN", and reading every post of every thread on the subject going back to 2012, I am still left wanting. For example, I used versions and/or combinations of most of the scripts from these threads, and some others i don't feel like digging through my browser history to find:
(solved) Need help to setup a mutli vlan on a rt-ac3100
I need to setup few vlan on my ac3100 I have done in the past perfectly on a netgear wndr4000 with dd-wrt , just I like the asus web gui interface which give more detail So I'm looking to configure 5 vlan (excluding the vlan2 which is used for the wan connection) 1: is my personnal network 3...
www.snbforums.com
Using VLANs for a 2nd Access Point with home & guest wifi
I've managed to figure out enough to be vaguely dangerous when it comes to VLANs for my personal needs, and making it work with Merlin's ASUS builds, and thought I'd post a note in case anyone's interested, or can see a better way, or suggest improvements of where I've done something stupid (ie...
www.snbforums.com
Force LAN port 4 to use the Guest network for Asus/merlin RT-AC68U
I have found that it's necessary to check for the existence of my custom VLAN before creating it because the firmware sometimes does not clear out the Ethernet bridge tables before calling firewall-start. EXAMPLE: /jffs/scripts/firewall-start # RT-AC68U: create vlan14 only if it does not exist...
www.snbforums.com
Use LAN port 4 as private network
I tried disabling NAT acceleration under LAN / Switch Control - which changes the CPU port from 8t to 5t, but it still doesn't fix the MTU issue. AC68U? Most likely your problem is caused by the CTF acceleration. I had a similar issue with both N66U (AP mode) and AC68U (router mode) when I...
www.snbforums.com
Using router's built in switch to create vlan tagged subnet
In my quest to separate some of my devices (ie IoT-stuff) from the rest of my network, I have (yet again) reached a point where I am stuck :-( At the moment I want to use my router's built in switch to create a separate subnet with dhcp and vlan-tag on a specific lan port (port #4). I want this...
www.snbforums.com
I've been looking through all of this and trying to sort out all the relevant pieces, but for some reason it's just not clicking (or working). Problems I ran into when trying all of these in approximate order:
- Wired clients lost connection (the first time this happened was on me. I forgot to change the port number from 8t to 5t to match my router when pasting the code)
- Network would become unstable after 20-45 minutes and wired clients would lose connection until the router was rebooted
- DHCP wouldn't assign clients to the correct sub-net despite coming in tagged
- DNS mask saying in the log that the VLAN interfaces didn't exist when it tried to setup the sub-nets from dhcp.conf.add
- Router GUI/SSH access from clients attached to access point guest network wasn't blocked
- Lost some communication with my access point even though it was on the same subnet as my computer: i could SSH into it, but couldn't configure it with the UniFi controller anymore, and couldn't adopt it after doing a reset to try and get it to take the new settings
- lost all communication with the access point: couldn't adopt it from controller or layer 3 adoption program, couldn't SSH into it anymore. it's ACK packets seemd to be blocked as the log showed endless attempts to offer an IP to it, but no ACK being received back.
- lost ability to ping anything on the network at all
After a hard factory reset of the ac87r and an upgrade to Merlin 384.13 (the last build available for this model) I used AMTM to give myself a 2gig swap on a 16gig usb stick, and put on Diversion, Skynet, YazFi, scMerlin, and most of the stuff offered in AMTM. I just performed a backup with NSRU, and so i'm ready to try again. This is where I'm stuck, mostly because i don't want to run into any of the previous issues again.
Hit the character limit. Continued in Post #2.