Hi all,
I’m new to the forum. I have a specific problem that I have been trying to solve for weeks. I apologize if it’s redundant, believe me I have done many a google search but to no avail. Thus, I’m turning to you, helpful Mikrotik community
I am a software developer, not a network engineer. I am quite out of my element here so please forgive my ignorance.
When I SSH/terminal into my router, it reports my routerOS version as 5.7.
What I am trying to do is this:
I have my Mikrotik router sitting behind another router which provides internet access. The Mikrotik slots in fine. Both routers are broadcasting fine and usable “out of the box.” The situation I’m looking for is basically this: when connected to the original router, all traffic passes through like normal (no problems here), but when connected to the Mikrotik router, I want any and all requests intercepted, and an external internet host (URL ideally, but IP address if necessary) requested and returned to the user instead.
Now, I know, what I am describing here is the Hotspot + Walled Garden solution. And, I’ve gotten this working (only took me 3 or 4 days! not bad eh?), by allowing the host/website I want retrieved in the Walled Garden, and replacing my hotspot HTML files with ones that automatically forward/redirect to that site.
This is exactly what I want, except for one thing: It is important to me that ANY request that the user makes gets redirected. Currently, only URLs that the user requests that have a valid DNS entry on the supplied DNS server (my ISP’s or Google’s currently - I do not have one of my own) cause the action I require. Everything else returns a page or server not found error/page.
So, imagine, a user connects wirelessly to the Mikrotik router. Opens up their browser and types “app” or “menu” - that should lead them to my external web server.
Now, I have tried playing around with Proxy settings, DNS settings, NAT settings, Hotspot settings, etc. and I just can’t figure out how to make this work (I am approaching 100 hard resets, I am sure). My most recent thought was that I needed to capture the request before it was sent out to a DNS server and so I tried some commands I found online that would use routerOS’ internal DNS… but I couldn’t get it to work. Now I think maybe it has something to do with the NAT/firewall settings, but as I said above, this puts me pretty far out of my element.
Anyway, I hope that’s enough information to get the help I need. Sorry for the long-winded post.
Best Regards & Thanks in advance,
Dan