Community discussions

MikroTik App
 
Dimoshka
just joined
Topic Author
Posts: 1
Joined: Sat Jan 27, 2024 11:03 am

hAP ax2 connect to open WiFi

Sat Jan 27, 2024 11:26 am

Hello. Please tell me how this problem can be solved.

I have hAP ax2 with the latest firmware. I need to connect to an open free wireless network via WiFi 2.4 (not mikrotik - without login and password) and distribute Internet in my house also via wireless network.
Ideally, it would be possible to have a home network 2.4 and 5 G (I understand that the 2.4 interface will work in station mode and thus will be busy, but perhaps it can be done with a virtual interface). Speed of operation does not matter much.
Also, the free hotspot asks for authorization by clicking a button on the web page that opens. It is not a problem if each user connected to my home network will have to go through this authorization separately. Also, the home network should not be available on the free hotspot's network.

Problems I encountered:
- in hAP ax2 firmware there is no "station-pseudobridge" mode in WiFi (only ap, station and station-bridge)
- since the access point is not a Mikrotik, "station-bridge" mode does not work (it connects and then immediately disconnects)

As far as I understand, I need to use station mode and then somehow make a NAT for that interface. Unfortunately, I have not found any information on how to do this.

Thanks.
 
erlinden
Forum Guru
Forum Guru
Posts: 1975
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: hAP ax2 connect to open WiFi

Sat Jan 27, 2024 12:42 pm

Make sure that, from a default cofig, wifi2 is not part of the bridge. And make it part of the WAN interface list. At last, bind the DHCP client to wifi2 and you should be good to go. If you are going to add a virtual interface to make 2.4GHz available as well, make sure to set it to ap and add it to the bridge.

And don't try to accomplish this through Quick set, you can't.

Tip:
Make an export and search within the export for ether1 (default WAN interface). If you set wifi2 in all the places where it says ether1, you are good to go.
 
brambo123
just joined
Posts: 16
Joined: Sun May 11, 2014 1:39 pm

Re: hAP ax2 connect to open WiFi

Sat Jan 27, 2024 12:59 pm

Usually wifi1 is 2.4GHz, wifi2 is usually 5GHz
I think it should be something like this:
- remove wifi1 from bridge
- setup wifi1 as station and connect to the public wifi
- add dhcp-client to wifi1
- setup masquerade in your firewall for outgoing interface wifi1
- add virtual wifi interface on wifi1 for AP, add this wifi interface to bridge
 
erlinden
Forum Guru
Forum Guru
Posts: 1975
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: hAP ax2 connect to open WiFi

Sat Jan 27, 2024 1:07 pm

Usually wifi1 is 2.4GHz, wifi2 is usually 5GHz
In the old days, ax devices are the other way around :D
 
jaclaz
Long time Member
Long time Member
Posts: 670
Joined: Tue Oct 03, 2023 4:21 pm

Re: hAP ax2 connect to open WiFi

Sat Jan 27, 2024 2:07 pm

More a question than an answer, but isn't this example (the one called "Wireless Extender – AX series") what is needed for this use case?
https://remotewinbox.com/mesh-mikrotik/
it uses mode=station, so it should (in theory) not need all Mikrotik devices.
 
Dimoshka
just joined
Topic Author
Posts: 1
Joined: Sat Jan 27, 2024 11:03 am

Re: hAP ax2 connect to open WiFi

Sat Jan 27, 2024 3:37 pm

Usually wifi1 is 2.4GHz, wifi2 is usually 5GHz
I think it should be something like this:
- remove wifi1 from bridge
- setup wifi1 as station and connect to the public wifi
- add dhcp-client to wifi1
- setup masquerade in your firewall for outgoing interface wifi1
- add virtual wifi interface on wifi1 for AP, add this wifi interface to bridge
It works. Thanks. Off course wifi1 and wifi2 inversely
Last edited by Dimoshka on Sat Jan 27, 2024 4:16 pm, edited 2 times in total.

Who is online

Users browsing this forum: Airiasas, Alek1234, Bing [Bot], ips and 18 guests