I have setup my Basebox so that the internal card (wlan1) connects to my home network. The R11 PCIe (wlan2) is then bridged to wlan1 and offers a second AP to hosts. I have tried to make a DHCP server in this setup to differentiate from the 192.168.1.0 main network, eg. 192.168.33.0, which did not work, so I gave up.
Now without the separate DHCP I’m trying to set a web proxy to redirect certain web pages. I have made a firewall NAT rule for :80 and redirected :8080, assigned to the bridge (assigning the rules to wlan1 or wlan2 gives a red error). All web-proxy rules are ignored, no matter what I try.
I followed this tutorial http://cedartech.blogspot.cz/2011/03/how-to-setup-site-blocking-and-url.html
The Mikrotik is great and offers so many options, but as a newcomer, the support is lacking and the documentation without any use examples is atrocious. After this experience, I may choose Ubnt next time.
Ok, but how will wlan2 connect to the internet if not in the bridge? It will certainly work as an AP, but where does data come from?
I have successfully set the DHCP server in past experiments (confirmed by getting IP 192.168.33.254 assigned on my phone, router 192.186.33.1, DNS 192.168.1.1) but it wouldn’t connect to any web service.
It will just work, as its name implies, RouterOS Routes by default. As long as you got IP addressing and routing right, it will automatically route those clients connected to wlan2.
When routing, both directions should be taken into account, i.e. if routing from host A to host B, routing should be set in A to reach B, and in B to reach A.
Basebox default route should point to 192.168.1.1 which I assume is your internet router and its already set up.
Your internet router should have a route to 192.168.33.0/24 using basebox 192.168.1.x/24 IP address, add it.
Check then by pinging from the router to 192.168.33.1 first. if suceeds, then ping from a client to 192.168.1.1; if suceeds then from a client to an outside host, 8.8.8.8 for example. If suceeds, you’re done.
The web-proxy is a service, is run on a basebox IP.
If you want wlan2 clients to go through the proxy, once the proxy is set up, you have to add a redirection to it based on source addresses (192.168.33.0/24) or in-interface (wlan2) to the ports the proxy is runing on.
action=redirect is the same as action dst-nat to basebox IP address.
It work’s as it should. Your home router don’t know where is your second network 192.168.55.x, so if it gets packet’s from it’ it sends it to default gateway. You can src-nat your traffic to 192.168.1.x, or add a route on your first router.
Read about networks layers, routing, ip protocol, and after you understand how it’s working everything will be clear.
I will be using a 3G pocket router for connection fallback. Wlan1 is currently connecting to ssid ABC, but if this connection is lost, I would like it to search and connect to ssid XYZ (3G router). What is the best way to setup a fallback like this and check the current connection status every 10 seconds or so? Is it possible to have a list of say 5 ssids for fallback?
I may also look into using a USB LTE dongle (because wlan2 is taking up the PCIEm slot).