I want to use my OpenWrt to connect to captive portals from hotel WiFi etc. I got it to connect to one network but when I try it on other networks, it doesn't work. I can't seem to find the login page or be redirected to it. But when I connect to the one where I got it to work, it redirects me to its login page. My guess is that they blocked networks such as mine (where you use OpenWrt to give internet access to other devices) from connecting to it. Is there a way I can get around this? Or am I out of luck?
I want to use the other captive portals because they are nearer towards me and have better signal the one where this works is a little bit far and signal is hindered.
I already have DNS rebind protection disabled
Correct, you [generally] need to know the URL and enter it into the client's user agent (web browser). This is the method I use.
Another method I use is to intentionally browse to an HTTP page, in hopes the portal captures and redirects me to the login page.
The OpenWrt is not the user agent and different portals use different proprietary ways of redirecting the client.
I found the setting which prevents access for me. They have Blocked Private Networks. Is there a work around on this?
I need to connect to a captive portal thru OpenWRT to connect to the internet. Unfortunately, they have blocked private networks and such, I can no longer connect to their captive portal. Is there a way I can get around this?
I don't understand this sentence. Where did you find "the setting which prevents access"? Presumably you don't have admin access to the captive portal system, so how can you have "found the setting"? Did one of their admins tell you this?
They could just be looking at the OUI of the router's MAC address and blocking the ones that belong to the major router companies. Although I have my doubts because router companies also make stuff other than routers. I would try:
- Generate a random mac address. Just search for "random mac address" on DuckDuckGo and the site will make you one on the results page.
- In the LuCI menu, go to Network → Interfaces then click on "Devices" tab.
- Click "Configure" on the device corresponding to your uplink, the one that is facing the network hosting the captive portal.
- Fill in the MAC address you generated in the "MAC address" field.
- Click "Save" then click "Save & Apply".