Community discussions

MikroTik App
 
cbvdgh
just joined
Topic Author
Posts: 5
Joined: Sat Oct 24, 2015 4:53 pm

wireless mode=station

Fri Feb 09, 2018 12:35 am

I have a wireless interface (WLAN below) with mode=station connected to a wifi (AP below).
AP works properly (many other clients work without any problems)
WLAN is getting an IP from DHCP
Ping from AP (192.168.12.1) to WLAN (192.168.12.254) works fine. The same for ping from WLAN to AP.
I can't route any traffic from WLAN to AP:
/ping address=8.8.8.8 interface=WLAN 
  SEQ HOST                                     SIZE TTL TIME  STATUS                                               
    0 8.8.8.8                                                 timeout                                              
    1 8.8.8.8                                                 timeout                                              
    2 192.168.12.254                             84  64 989ms host unreachable                                     
    3 8.8.8.8                                                 timeout                                              
    4 8.8.8.8                                                 timeout                                              
    5 8.8.8.8                                                 timeout                                              
    6 8.8.8.8                                                 timeout                                              
    7 8.8.8.8                                                 timeout                                              
    8 8.8.8.8                                                 timeout                                              
    9 8.8.8.8                                                 timeout                                              
   10 8.8.8.8                                                 timeout                                              
   11 192.168.12.254                             84  64 987ms host unreachable                                     
   12 8.8.8.8                                                 timeout                                              
   13 8.8.8.8                                                 timeout                                              
   14 192.168.12.254                             84  64 989ms host unreachable                                     
   15 8.8.8.8                                                 timeout                                              
   16 8.8.8.8                                                 timeout                                              
   17 8.8.8.8                                                 timeout                                              
   18 8.8.8.8                                                 timeout                                              
   19 8.8.8.8                                                 timeout                                              
    sent=20 received=0 packet-loss=100% 
Pinging 8.8.8.8 from other clients connected to the AP works fine.
Any suggestions what's wrong?
 
miha99
just joined
Posts: 3
Joined: Sat Feb 03, 2018 3:42 pm

Re: wireless mode=station

Fri Feb 09, 2018 12:38 am

maybe masquerade in firewall?
 
cbvdgh
just joined
Topic Author
Posts: 5
Joined: Sat Oct 24, 2015 4:53 pm

Re: wireless mode=station

Fri Feb 09, 2018 12:56 am

Masquerade is for forwarded traffic, not for outgoing, cause src-ip is fine. Anyway it is set.
I see ping packets don't reach AP interface, nothing here:
/ip firewall raw
add action=passthrough chain=prerouting in-interface=AP log=yes
 
LIV2
newbie
Posts: 30
Joined: Sat Jan 23, 2016 7:42 am

Re: wireless mode=station

Fri Feb 09, 2018 2:21 am

Have you ensured that the default route has been added?
/ip route print
You should see a route for 0.0.0.0/0 to your gateway, if not make sure you've enabled add-default-route for your dhcp client
 
cbvdgh
just joined
Topic Author
Posts: 5
Joined: Sat Oct 24, 2015 4:53 pm

Re: wireless mode=station

Fri Feb 09, 2018 2:59 am

The default gateway is and will be eth1.
I want to route just specified connections through WLAN.
In routes I have:
 #      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
 3 ADC  192.168.12.0/24    192.168.12.254  WLAN                       0
But the problem is at much earlier stage.
I connected WLAN to AP and I'm trying to ping 8.8.8.8 from the WLAN router itself. Without any masquerade/routing/whatever connected clients. I know how to do it, it's not the case.
The problem is that pinging WLAN (192.168.12.254) -> (192.168.12.1) AP (PUBLIC_IP) -> 8.8.8.8 does not work.
Any other client connected to AP can ping 8.8.8.8 and make any connections they want, so I guess the problem is with WLAN, not with AP.
As I wrote above I'm trying to ping with:
/ping address=8.8.8.8 interface=WLAN
to output ping packets on appropriate interface
 
LIV2
newbie
Posts: 30
Joined: Sat Jan 23, 2016 7:42 am

Re: wireless mode=station

Fri Feb 09, 2018 6:34 am

Any traffic you wish to send over the WLAN will need a route, if you add a static route for 8.8.8.8 with a gateway of 192.168.12.1 it will work, it is not enough to simply specify an interface for your ping.

Who is online

Users browsing this forum: jokker and 71 guests