I run a hAPax2 with basicly 4 SSIDs, IoT, Guest and 2 Client WLANs. AP gets Mgmt-IP via DHCP on VLAN1 (Untagged) the Clienst WLANs are also on VLAN1.
Now the strange thing. When Guest-SSID is unencrypted it gets an IP-Address in VLAN1 and is able to access AP via Winbox. When it is encrypted it lands on VLAN10 and it works like expected.
On my Client-SSID I'm not able to get access to AP via Winbox or SSH or even ping it. As soon as I connect to an open SSID i get access to Client VLAN and AP.
Here my configuration:
Code: Select all
# mar/13/2023 08:41:19 by RouterOS 7.8
# software id = F7Y9-BEGS
#
# model = C52iG-5HaxD2HaxD
# serial number = HE308H06726
/interface bridge
add admin-mac=48:A9:8A:53:14:11 auto-mac=no name=bridge priority=0xA000
/interface vlan
add interface=bridge name=Guest vlan-id=10
add interface=bridge name=IoT vlan-id=66
add interface=bridge name=vlan1 vlan-id=1
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wifiwave2 datapath
add bridge=bridge disabled=no interface-list=all name=VLAN1 vlan-id=1
add bridge=bridge disabled=no name=IoT vlan-id=66
add bridge=bridge disabled=no name=Guest vlan-id=10
/interface wifiwave2
set [ find default-name=wifi2 ] channel.band=2ghz-ax .skip-dfs-channels=10min-cac .width=20/40mhz configuration.country=Austria .mode=ap .ssid=gerniap \
datapath=VLAN1 datapath.bridge=bridge .vlan-id=1 disabled=no name=gerniap_2GHz security.authentication-types=wpa2-psk,wpa3-psk
set [ find default-name=wifi1 ] channel.band=5ghz-ax .skip-dfs-channels=10min-cac .width=20/40/80mhz configuration.country=Austria .mode=ap .ssid=\
gerniap datapath=VLAN1 datapath.bridge=bridge .vlan-id=1 disabled=no name=gerniap_5GHz security.authentication-types=wpa2-psk,wpa3-psk
add configuration.mode=ap .ssid=OPEN datapath.bridge=bridge .vlan-id=1 mac-address=4A:A9:8A:53:14:19 master-interface=gerniap_5GHz name=OPEN \
security.authentication-types="" .encryption=""
add comment="WLAN_Password: 1234ABCD" configuration.mode=ap .ssid=WRT-Guest datapath.bridge=bridge .vlan-id=10 disabled=no mac-address=\
4A:A9:8A:53:14:15 master-interface=gerniap_5GHz name=WRT-Guest
add configuration.mode=ap .ssid=WRT-IoT datapath=IoT datapath.bridge=bridge .vlan-id=66 disabled=no mac-address=4A:A9:8A:53:14:16 master-interface=\
gerniap_2GHz name=WRT-IoT-2GHz security.authentication-types=wpa2-psk .encryption=""
add configuration.mode=ap .ssid=WRT-WLAN datapath=VLAN1 disabled=no mac-address=4A:A9:8A:53:14:18 master-interface=gerniap_2GHz name=WRT-WLAN-2Ghz \
security.authentication-types=wpa2-psk,wpa3-psk
add configuration.mode=ap .ssid=WRT-WLAN datapath=VLAN1 datapath.bridge=bridge .vlan-id=1 disabled=no mac-address=4A:A9:8A:53:14:17 master-interface=\
gerniap_5GHz name=WRT-WLAN-5GHz security.authentication-types=wpa2-psk,wpa3-psk
/port
set 0 name=serial0
/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=gerniap_5GHz
add bridge=bridge comment=defconf interface=gerniap_2GHz
add bridge=bridge interface=ether1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ipv6 settings
set max-neighbor-entries=15360
/interface bridge vlan
add bridge=bridge tagged=ether1 vlan-ids=66
add bridge=bridge tagged=bridge vlan-ids=10
add bridge=bridge untagged=bridge vlan-ids=1
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf disabled=yes interface=ether1 list=WAN
/ip cloud
set ddns-enabled=yes ddns-update-interval=10m
/ip dhcp-client
add interface=bridge
/ip dhcp-server network
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 src-address=10.0.0.0/24
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
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" 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 hw-offload=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
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 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
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute" port=33434-33534 protocol=udp
add action=accept chain=input comment="defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=ipsec-esp
add action=accept chain=input comment="defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment="defconf: drop everything else not coming from LAN" in-interface-list=!LAN
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
add action=drop chain=forward comment="defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=500,4500 protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=ipsec-esp
add action=accept chain=forward comment="defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment="defconf: drop everything else not coming from LAN" in-interface-list=!LAN
/system clock
set time-zone-name=Europe/Vienna
/system ntp client
set enabled=yes
/system ntp client servers
add address=3.at.pool.ntp.org
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
/tool romon
set enabled=yes
/tool sniffer
set filter-dst-ip-address=8.8.8.8/32 filter-interface=WRT-WLAN-5GHz filter-operator-between-entries=and filter-src-ip-address=10.0.0.65/32