Hi. I have problem with creating new network interface. I want to use it only for Wi-Fi connection so that I can specify it in adblock for mobile only adblocking.
However, I can't do that. I created WiFi_adb interface, set it up just like LAN interface but with only Wireless Network in "physical settings" tab. Then I went to Wireless tab and changed interface from LAN to WiFi_adb, connected to it on my phone and it does connect, but internet doesn't work.
If you observe your default system configuration, you'll notice the following things:
The original WiFi was attached to a Bridge, which was connected to VLAN1 (the "LAN")
If you create a WiFi for a another network, you must also create a Bridge and VLAN for it to connect with (i.e. create a LAN2, or add it to LAN)
Since you have no bridge, there's no way for the data to leave WiFi and go to the "LAN"
It seems you want your WiFi to do special adblocking different from your wired LAN...I'm not sure why you can't simply use WiFi as default, and apply the script to your WiFi interface (without need to reconfigure your router's interfaces, VLANs and WiFi). Adblock seems to include an option for this out-the-box.
If you want to try later (using an easier method)...you don't have to remove the orginal LAN WiFi from the default. Leave it as it, if it causes you confusion.
You would go to Interfaces page and make an entirely new interface...adding a VLAN3 and Bridge - then just setup forwarding to WAN accordingly under the Firewall-General page. You'd then build a whole new WiFi under Wireless: with a new SSID and attach it to the newly built Interface.
The only caveat is, all SSIDs will be on the same WiFi channel for each PHY used (e.g. the 2.4 or 5.4 GHz chip).
You find it under the Interfaces page during the process of creating a new one.
Make an interface with the "Static Address" protocol
Number and mask your network
Setup DHCP
Under Physical Settings, add the Interface to a new "Custom Interface" that you name ethx.3, x being the number of the Ethernet card in your router (usually 0, you will write it exactly as you see VLANs 1 and 2, simply changing the number following the period to a 3).
From there, you also check the box "Bridge interfaces help creates a bridge over specified interface(s)"
Add it to a new Firewall Zone
Now, wireless:
You then proceed to creating a new SSID and adding it to the new Interface created on the Interface page
Lastly, confirm firewall:
Remember to visit the Firewall page and allow forwarding from the new zone to the WAN
Be sure to read the whole thread and understand how your router's CPU is tagged, and to properly identify the port you want to convert to VLAN 3. Each device running LEDE is different.