Hello, I got Mikrotik RB3011 router and 2 unifi access points.
In Mikrotik config, via winbox, I’ve created 2 bridges (one for every AP) with different ip pools. On eth1 I got connection with main router from my ISP. Eth2-5 are bound to bridge1 and eth6-10 for bridge2. I got simple switch on each eth2 and eth6. On each switch AP is connected. To this moment everything is working fine, no problems with wifii broadcasted by AP’s, full speed, good range and full internet access.
BUT I also created two vlans on bridge1 and both are broadcasted by AP1, which is connected to switch in eth2, broadcasting network from bridge1. I can connect any device to both vlans, but everytime I got “No internet access” message. Also ip given to devices connected to vlan wifii is out of any pool I created. (eg. Pool for bridge1 is 192.168.88.2-254, for vlan1 is 10.0.2.2-254).
I tried reconfiguring, changeing things and nothing works. I run out of ideas. Here’s my config:
# apr/09/2020 13:07:19 by RouterOS 6.42.12
# software id = B95V-SKA9
#
# model = RouterBOARD 3011UiAS
# serial number = B88D0AC2AA20
/interface bridge
add admin-mac=xxxx auto-mac=no comment=defconf name=\
"bridge - biuro"
add name="bridge - mieszkanie"
/interface vlan
add interface="bridge - biuro" name="vlan-mieszkanie 1" vlan-id=10
add interface="bridge - biuro" name="vlan-mieszkanie 2" vlan-id=20
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name="pool mieszkanie" ranges=10.0.1.2-10.0.2.254
add name="pool mieszkanie 1" ranges=10.0.2.2-10.0.2.254
add name="pool mieszkanie 2" ranges=10.0.3.2-10.0.3.254
add name=dhcp ranges=192.168.88.2-192.168.88.254
add name=vpn ranges=10.0.10.2-10.0.10.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface="bridge - biuro" name=defconf
add address-pool="pool mieszkanie 1" disabled=no interface="vlan-mieszkanie 1" \
name=dhcp-mieszkanie1
add address-pool="pool mieszkanie 2" disabled=no interface="vlan-mieszkanie 2" \
name=dhcp-mieszkanie2
add address-pool="pool mieszkanie" disabled=no interface="bridge - mieszkanie" \
name=dhcp1
/ppp profile
add local-address=10.0.1.1 name=vpn remote-address=vpn
set *FFFFFFFE local-address=192.168.89.1 remote-address=vpn
/interface bridge port
add bridge="bridge - biuro" comment=defconf interface=ether2
add bridge="bridge - biuro" comment=defconf interface=ether3
add bridge="bridge - biuro" comment=defconf interface=ether4
add bridge="bridge - biuro" comment=defconf interface=ether5
add bridge="bridge - mieszkanie" comment=defconf interface=ether6
add bridge="bridge - mieszkanie" comment=defconf interface=ether7
add bridge="bridge - mieszkanie" comment=defconf interface=ether8
add bridge="bridge - mieszkanie" comment=defconf interface=ether9
add bridge="bridge - mieszkanie" comment=defconf interface=ether10
add bridge="bridge - biuro" comment=defconf interface=sfp1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface l2tp-server server
set enabled=yes ipsec-secret=* use-ipsec=yes
/interface list member
add comment=defconf interface="bridge - biuro" list=LAN
add comment=defconf interface=ether1 list=WAN
add interface="bridge - mieszkanie" list=LAN
/interface pptp-server server
set enabled=yes
/interface sstp-server server
set default-profile=default-encryption enabled=yes
/ip address
add address=192.168.88.1/24 comment=defconf interface=ether2 network=\
192.168.88.0
add address=10.0.2.1/24 interface="vlan-mieszkanie 1" network=10.0.2.0
add address=10.0.3.1/24 interface="vlan-mieszkanie 2" network=10.0.3.0
add address=10.0.1.1/24 interface="bridge - mieszkanie" network=10.0.1.0
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=10.0.1.0/24 gateway=10.0.1.1
add address=10.0.2.0/24 gateway=10.0.2.1
add address=10.0.3.0/24 gateway=10.0.3.1
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router.lan
/ip firewall filter
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=accept chain=input comment="allow IPsec NAT" dst-port=4500 protocol=\
udp
add action=accept chain=input comment="allow IKE" dst-port=500 protocol=udp
add action=accept chain=input comment="allow l2tp" dst-port=1701 protocol=udp
add action=accept chain=input comment="allow pptp" dst-port=1723 protocol=tcp
add action=accept chain=input comment="allow sstp" dst-port=443 protocol=tcp
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=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface=ether1 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
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
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=\
out,none out-interface-list=WAN
add action=masquerade chain=vpn src-address=10.0.10.0/24
add action=masquerade chain=srcnat comment="masq. vpn traffic" src-address=\
192.168.89.0/24
/lcd
set time-interval=hour
/ppp secret
add name=vpn-kurpiowska password=* profile=vpn service=pptp
add name=vpn password=*
/system clock
set time-zone-name=Europe/Warsaw
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
