This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:openwrt [2021/04/25 19:29] – oemb1905 | computing:openwrt [2025/12/09 06:54] (current) – oemb1905 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ------------------------------------------- | ------------------------------------------- | ||
| - | * **openwrt** | + | * **openwrt-mt6000** |
| * **Jonathan Haack** | * **Jonathan Haack** | ||
| * **Haack' | * **Haack' | ||
| - | * **netcmnd@jonathanhaack.com** | + | * **webmaster@haacksnetworking.org** |
| ------------------------------------------- | ------------------------------------------- | ||
| - | //openwrt// | + | //openWRT on two GL.Inet MT6000s// |
| ------------------------------------------- | ------------------------------------------- | ||
| + | |||
| + | Apologies, I wrote this one in reverse, having started with WordPress instead of Dokuwiki, which I rarely do. The original can be found here: | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | I promise to try and revise this properly lol ... at some point! | ||
| + | |||
| + | ------------------------------------------- | ||
| + | |||
| + | Note: Pictures forthcoming | ||
| + | |||
| + | This tutorial reviews the unique manner in which I was able to get public and private interfaces/ | ||
| + | |||
| + | Only the router has a dhcp server. The AP is just a radio and serves two different public SSIDs and two different private SSIDs. Each is attached to the matching VLAN as entered on the AP. Alright, so now that I've provided the overview, let's review how to do this step by step. It might help others as its different than the way I'm used to doing this (1) and it will help me document and remember what I did so I can replicate in production for Haack' | ||
| + | |||
| + | To get here, go to Interfaces > Devices > Bridge VLAN filtering. Enable the option and add as many VLANs as you desire. In my case, I want the ports tagged as I have above but you will likely need a different arrangement so make sure to alter or adjust these instructions for your use case. | ||
| + | |||
| + | NOTE: You must not Save and Apply the settings above. | ||
| + | |||
| + | Instead, you need to go to Interfaces > Interfaces > lan Edit > Device. Change the device from the default br-lan to the Software VLAN called br-lan.1 that you just created. | ||
| + | |||
| + | Once you've attached the lan interface to the newly created Software VLAN br-lan.1, you can safely Save and Apply the changes and your router will remain reachable. After this, you need to create a public interface, firewall zone, and two separate radios/ | ||
| + | |||
| + | As you can see on the Interface overview page, the lan is connected to br-lan.1 and the VLAN is connected to br-lan.192 (for example). These are the two Software VLANs we created off the primary bridge device above. In short, we forked the physical hardware bridge into two separate VLANs and separated subnets. After creating the public interface on the router, make sure to also create an appropriate firewall zone. Yours might look something similar to this: | ||
| + | |||
| + | My router has an openvpn server as well, but that's not the focus of this tutorial. If you are interested in that, you can look over my openvpn server on openWRT wiki notes. For now, what's important to note is that you need to click on the pub zone, click Edit, then under "Allow forward to destination zones" make sure to specify the wan zone or your public interface won't be able to route out. More than likely, you will want to set input/ | ||
| + | |||
| + | As you can see above, each frequency has both a public and private SSID setup. | ||
| + | |||
| + | Under the private radio/SSID, you can see that it is attached to the lan interface/ | ||
| + | |||
| + | As you can see here, the public SSID is attached to the pub interface/ | ||
| + | |||
| + | The most important thing to note in the assets above is that the private SSID is attached to the lan network, while the public SSID is attached to the pub network. This is essential so that the router' | ||
| + | |||
| + | You do not set up dhcp on either lan or pub interfaces on the AP | ||
| + | |||
| + | Remove the WAN and WAN6 interfaces as this device is in AP-only mode | ||
| + | |||
| + | Other than these key differences, | ||
| + | |||
| + | Create the two VLAN IDs under VLAN filtering option on br-lan (on the AP) in Interfaces > Devices > br-lan Configure; make sure not to apply changes | ||
| + | |||
| + | Change the Device in Interfaces > Interfaces > lan Edit to use br-lan.1 instead of br-lan | ||
| + | |||
| + | After this you save and apply the changes, create your public interface, add the associated firewall zone to the public interface and attach the public interface to br-lan.192 (for example), or what would be the other Software VLAN you created for the public network. Here are example assets of those configurations: | ||
| + | |||
| + | The first thing you should notice is that there are no WAN or WAN6 interfaces present since this is the AP. Each interface on the AP is attached is to the same / matching name Software VLANs as were created on the router. Just like the router, those Software VLANs were created on the AP under Interfaces > Devices > br-lan Configure > Add VLAN Filtering; see the steps above for how to do this. | ||
| + | |||
| + | If you click Edit on the lan interface and look under the DHCP Server tab, make sure that Ignore interface is selected. The reason this information is populated is because the lan interface comes with DHCP Server enabled by default on the AP; one must disable it by selecting the box above. | ||
| + | |||
| + | When you create a new interfaces, as you will do on the AP for the public network, openWRT does not automatically create a DHCP Server and so there will be no information populated under the tab. This is what you want, as you don't want the AP doing DHCP, only the router. | ||
| + | |||
| + | The AP's firewall setup is also simpler because there' | ||
| + | |||
| + | Just as with the router, the SSIDs marked " | ||
| + | |||
| + | Thanks, | ||
| + | oemb1905 | ||
| + | |||
| + | -- -- OLD STUFF - EDIT -- -- | ||
| This is a general openwrt wiki page, for flashing the OS onto routers and/or common issues/ | This is a general openwrt wiki page, for flashing the OS onto routers and/or common issues/ | ||
| Line 20: | Line 81: | ||
| option Bootstrap '/ | option Bootstrap '/ | ||
| - | --- //[[jonathan@haacksnetworking.com|oemb1905]] | + | --- //[[alerts@haacksnetworking.org|oemb1905]] |