Hello everyone, I am new to the forum also with microtik,
I have tried to copy in the solution of the configuration above and adapt it in my case.
In the secure section, after doing so, I get out of the winbox, there is no way to connect to the HEX POE.
I have to do a reset.
My Gateway ist 192.168.1.1/20 or 192.168.188.1/24
My map is follow the configuration

https://imgur.com/6xElJrz
config:
/interface bridge
add name=VLANBridge vlan-filtering=yes
add comment="Management Bridge" name=bridge
/interface vlan
add comment="Untagged Traffic" interface=VLANBridge name=VLAN1 vlan-id=1
add comment="Telefonia" interface=VLANBridge name=VLAN20 vlan-id=20
add comment="WIFI" interface=VLANBridge name=VLAN30 vlan-id=30
add comment="Server" interface=VLANBridge name=VLAN40 vlan-id=40
add comment="PC" interface=VLANBridge name=VLAN50 vlan-id=50
/interface ethernet switch port
set 2 default-vlan-id=1 vlan-header=add-if-missing vlan-mode=secure
set 3 default-vlan-id=1 vlan-header=add-if-missing vlan-mode=secure
set 4 default-vlan-id=1 vlan-header=add-if-missing vlan-mode=secure
/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=default-dhcp ranges=192.168.88.10-192.168.88.254
add name=dhcp_VLAN30 ranges=172.16.20.20-172.16.30.254
add name=dhcp_VLAN30 ranges=172.16.30.20-172.16.30.254
add name=dhcp_vlan40 ranges=172.16.40.20-172.16.40.254
add name=dhcp_vlan50 ranges=172.16.50.20-172.16.50.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
add address-pool=dhcp_VLAN20 disabled=no interface=VLAN20 name=vlan20
add address-pool=dhcp_VLAN30 disabled=no interface=VLAN30 name=vlan30
add address-pool=dhcp_VLAN40 disabled=no interface=VLAN40 name=VLAN40
add address-pool=dhcp_VLAN50 disabled=no interface=VLAN40 name=VLAN50
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=VLANBridge comment=defconf ingress-filtering=yes interface=ether3
add bridge=VLANBridge comment=defconf frame-types=\
admit-only-untagged-and-priority-tagged ingress-filtering=yes interface=\
ether4
add bridge=VLANBridge comment=defconf frame-types=\
admit-only-untagged-and-priority-tagged ingress-filtering=yes interface=\
ether5
add bridge=VLANBridge comment=defconf ingress-filtering=yes interface=sfp1
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface bridge vlan
add bridge=VLANBridge untagged=VLANBridge,VLAN1 vlan-ids=1
add bridge=VLANBridge tagged=VLANBridge,VLAN30 vlan-ids=20
add bridge=VLANBridge tagged=VLANBridge,VLAN30 vlan-ids=30
add bridge=VLANBridge tagged=VLANBridge,VLAN40 vlan-ids=40
add bridge=VLANBridge tagged=VLANBridge,VLAN50 vlan-ids=50
/interface ethernet switch vlan
add independent-learning=yes ports=ether3,ether4,ether5,switch1-cpu switch=switch1 vlan-id=1
add independent-learning=yes ports=ether3,ether4,ether5,switch1-cpu switch=\
switch1 vlan-id=20
add independent-learning=yes ports=ether3,ether4,ether5,switch1-cpu switch=\
switch1 vlan-id=30
add independent-learning=yes ports=ether3,ether4,ether5,switch1-cpu switch=\
switch1 vlan-id=40
add independent-learning=yes ports=ether3,ether4,ether5,switch1-cpu switch=switch1 vlan-id=50
/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.66.1/24 interface=VLAN1 network=192.168.66.0
add address=172.16.30.1/24 interface=VLAN30 network=172.16.30.0
add address=172.16.40.1/24 interface=VLAN40 network=172.16.40.0
add address=172.16.50.1/24 interface=VLAN50 network=172.16.50.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=\
ether1
/ip dhcp-server network
add address=172.16.30.0/24 dns-server=172.16.30.1,1.1.1.1,8.8.8.8 domain=\
***REDACTED*** gateway=172.16.30.1
add address=172.16.40.0/24 dns-server=172.16.40.1,1.1.1.1,8.8.8.8 domain=\
***REDACTED*** gateway=172.16.30.1
add address=172.16.50.0/24 dns-server=172.16.50.1,1.1.1.1,8.8.8.8 domain=\
***REDACTED*** gateway=172.16.30.1
add address=192.168.66.0/24 dns-server=192.168.66.1,1.1.1.1,8.8.8.8 domain=\
***REDACTED*** gateway=192.168.1.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 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
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/Madrid
/system logging
add prefix="[DHCP Event]" topics=dhcp
add topics=event
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN