Community discussions

MikroTik App
 
armon112
just joined
Topic Author
Posts: 1
Joined: Tue Nov 30, 2021 8:32 pm

no access to internet when connected to wifi

Tue Nov 30, 2021 9:00 pm

Hello, I need help with a wifi-vlan thing.
I have forced to reset my hap ac2 and I have to configure it again. I am stuck at wifi configuring. I can connect to wlan_vpn interface, receive ip address from this interface but I can ping neither the wifi's gateway nor outer internet (e.g. 1.1.1.1). I am all day trying to fix this but just don't understand what causes the problem, I hope you can help me with this. Below is my config
# nov/30/2021 21:36:49 by RouterOS 6.49.1
# software id = RE62-QGEH
#
# model = RBD52G-5HacD2HnD
/interface bridge
add admin-mac=C4:AD:34:23:C2:E5 auto-mac=no comment=defconf name=bridge
add fast-forward=no name=bridge_envpn pvid=32 vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] mac-address=F0:2F:74:17:62:CE
/interface vlan
add comment=airvpn interface=ether2 name=ether2_vlan32 vlan-id=32
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk mode=dynamic-keys \
    supplicant-identity=MikroTik
add authentication-types=wpa2-psk mode=dynamic-keys name=lowsec \
    supplicant-identity=MikroTik
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX \
    distance=indoors frequency=auto installation=indoor mode=ap-bridge \
    security-profile=lowsec ssid=MikroTik-23C2E9 wireless-protocol=802.11 \
    wps-mode=disabled
set [ find default-name=wlan2 ] band=5ghz-n/ac channel-width=20/40/80mhz-eeeC \
    country=russia3 disabled=no distance=indoors frequency=auto installation=\
    indoor mac-address=78:81:02:D0:A7:11 mode=ap-bridge name=wlan5_main \
    security-profile=lowsec ssid=MGTS_GPON5_54E0 wireless-protocol=802.11 \
    wps-mode=disabled
add disabled=no mac-address=7A:81:02:D0:A7:11 master-interface=wlan5_main \
    name=wlan_vpn security-profile=lowsec ssid=somewifissd \
    wds-default-bridge=bridge_envpn wps-mode=disabled
/ip pool
add comment=defconf name=dhcp ranges=192.168.88.10-192.168.88.254
add comment=envpn name=pool_envpn ranges=192.168.32.10-192.168.32.100
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
add address-pool=pool_envpn disabled=no interface=bridge_envpn name=dhcp_en
/queue simple
add disabled=yes max-limit=100M/100M name=main priority=1/1 target=""
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan5_main
add bridge=bridge_envpn interface=ether2_vlan32 pvid=32
add bridge=bridge_envpn interface=wlan_vpn pvid=32
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ip settings
set accept-redirects=yes accept-source-route=yes secure-redirects=no
/interface bridge vlan
add bridge=bridge_envpn vlan-ids=32
/interface detect-internet
set lan-interface-list=LAN wan-interface-list=WAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
    192.168.88.0
add address=192.168.41.1 comment=xbox disabled=yes network=192.168.41.0
add address=192.168.32.1 interface=ether2_vlan32 network=192.168.32.0
add address=192.168.32.2 disabled=yes interface=bridge_envpn network=\
    192.168.32.2
/ip dhcp-client
add comment=defconf disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.32.0/24 comment=envpn dns-server=192.168.32.1 gateway=\
    192.168.32.1
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=\
    192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=input comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
    invalid disabled=yes
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
    "defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
    disabled=yes in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
    ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
    ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related disabled=yes
add action=accept chain=forward comment=\
    "defconf: accept established,related, untracked" connection-state=\
    established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid disabled=yes
add action=drop chain=forward comment=\
    "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new disabled=yes in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
    ipsec-policy=out,none out-interface-list=WAN
/system clock
set time-zone-name=Europe/Moscow
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN

Who is online

Users browsing this forum: No registered users and 28 guests