wifi station setup on hap ac2 - certain sites cannot be reached

Hello.

I’ve just set up a wifi station on wlan1:

  1. created bridge2: wlan2 + ether3
  2. configured dhcp client on wlan1
  3. created a wireless security profile
  4. assigned IP range to bridge2
  5. added masquerade NAT rule to that IP range
  6. created dhcp server on bridge2
  7. connected PC on ether3 with a cable
  8. PC on ether3 got an IP address assigned
  9. DNS resolution works on PC
  10. some sites are unreachable on PC

/ip/firewall/connection table shows the ping attempts to the sites from which there is no reply, but only with a (C)onfirmed marks, while the sites that can be pinged/reached get SACs.
Internet speed is ok.

Any ideas why 10) could be happening?

Many thanks in advance for any help.

Why did you make a second bridge ?
With “wifi station” you mean your device connects to another device via Wifi to get internet access, this is then transferred to other clients on AC2 ?

Did you use station mode for wlan1 connection to the originating access point ? Also, what type of device is that access point ?

A drawing and export of your config might be of more use to see the problem.
https://forum.mikrotik.com/viewtopic.php?p=908118

Why did you make a second bridge ?

Just trying to avoid messing up the first one.

With “wifi station” you mean your device connects to another device via Wifi to get internet access, this is then transferred to other clients on AC2 ?

Exactly, and I’d like to be able to connect to AC2 (the mikrotik router) both via wired and wireless.

Did you use station mode for wlan1 connection to the originating access point ? Also, what type of device is that access point ?

It’s another home ASUS router used as AP. I’m trying to imitate the scenario of connecting to a hotel wifi. I would like then to be able to use cable on ether3, and wifi on wlan2. (Once I can get this straight, I would also like to setup a third party VPN on bridge2.)


A drawing and export of your config might be of more use to see the problem.
https://forum.mikrotik.com/viewtopic.php?p=908118

Thank you, the diagram here illustrates more or less what I’m trying to achieve: https://systemzone.net/wifi-station-setup-in-mikrotik-wireless-router/
I’m also attaching my config, I’m aware that I’m doing most things wrong, so you’ve been warned :slight_smile:
Really appreciate your help :slight_smile:
myrouter.rsc (8.57 KB)

1- The diagram you link to is not complete since you do not indicate what you plan to do with ether1-2-4-5 ? Nor other wlan interfaces ? That VPN service you want to link to is also not mentioned there. It is needed to have the full picture when setting things up.

2- remove bridge2. Unless you have a REAL good reason to make a new bridge, it’s usually not needed. And if you do, you usually also know quite well why.
3- your wlan1 interface is still in ap-bridge. It should be in station mode. I indicated so above and its also in the instructions you linked to, it’s explicitly mentioned (and even HIGHLIGHTED) (assuming it is effectively wlan1 which you want to use to connect to Asus)
4- attach wlan2 and ether3 back to the remaining bridge
5- attach dhcp server to remaining bridge and make sure it’s the only one.
Maybe some other bits and pieces but that’s what I see for starters.

It’s clear to me you did not follow the instructions as explained in that link you referred to.
I suggest you start from scratch, follow those instructions to the letter and then it will work.

What are you planning to do with that VPN ? Is that outbound VPN or inbound ?
If inbound, how are you sure the required ports are available to reach your device ?
If outbound, what service, what purpose ?

Your requirements are unclear :smiley:

3- your wlan1 interface is still in ap-bridge. It should be in station mode. I indicated so above and its also in the instructions you linked to, it’s explicitly mentioned (and even HIGHLIGHTED) (assuming it is effectively wlan1 which you want to use to connect to Asus)

Afaiu wlan2 is in ap-bridge mode indeed, but wlan1 is already using the security profile, so it’s not in ap-bridge mode. Could you point to the place where you see that wlan1 is in ap-bridge mode?

set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=\
 20/40/80mhz-XXXX country=xxxxx disabled=no distance=indoors frequency=\
       auto installation=indoor mode=ap-bridge ssid=mwifi5 \
       wireless-protocol=802.11

set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no distance=indoors \
      frequency=2472 installation=indoor security-profile="asus wifi profile" \
      ssid=ASUS_53U wireless-protocol=802.11

I know it’s not the clearest setup, but it does work, my only problem is that certain sites are unavailable. When I reattach bridge2, the same sites don’t work, but some still do.
Would you have any tips as to why this could be happening? What logs should I look into, apart from /ip/firewall//connections.

Many thanks.

Edit…

Corrected, is not in any mode…

/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no distance=indoors \
    frequency=2472 installation=indoor security-profile="asus wifi profile" \
    ssid=ASUS_53U wireless-protocol=802.11

Set it to station mode.

As to why, read this
https://help.mikrotik.com/docs/display/ROS/Wireless+Station+Modes#WirelessStationModes-Modestation

Set it to station mode.

Thanks, it is in station mode, not sure why this doesn’t appear in the export.

As to why, read this
https://help.mikrotik.com/docs/display/ > … odestation

I’m not sure I fully understand this, but does it mean that it’s not possible to reach sites X from IP Y using Mikrotik APs? Or is it? Is there a workaround for this?

[X]---[AP]-(     )-[STA]---[Y]

Thanks.

In the diagram and instructions you showed, the settings are made on the device without configuration. You are configuring on a device that has a default config and then also your modification.
For wlan1 to work correctly as a wan port on the default config it needs to be added to the wan interface list.
The problem when only part of the sites open may have 2 reasons.

  1. Reduced MSS/MTU.
  2. Problems with DNS
    You don’t write from where the sites are not available from the Lan port or the Wlan2 port.
    In any case resetting the device to factory settings and setting it again will fix many problems.
  3. factory reset
  4. Set WLAN1 to station mode, configure the security profile. DHCP client on it.
  5. exclude the port WLAN1 from the bridge and add it to the WAN list
    Check if it works

I think I already suggested that as well in post #4 but someone is not willing to listen …

add it to the WAN list

Thanks a lot, this was the missing part, plus the factory reset. Both LAN and wlan2 are working now.
Now I’m gonna mess up everything again by adding the VPN, but that’s a separate issue, this part is solved, thanks again.