You can configure vlans using the following config, note that it is extremely important that you run the master-port sets otherwise it will not work properly, the default sets every interfaces master-port to ether1 which essentially bridges the LANs and your WAN side connection.
The NAT should have worked without the IP address needing to be specified on the masquerade rule
The below configuration sets things up how you wanted, with each port on a separate VLAN.
The config sets up your CRS to work like this diagram, ether1 is connected directly to the wan interface, ether2 is connected to the switch and carries all the vlans. the switch chip connects each port to its own vlan

/interface ethernet
set [ find default-name=ether1 ] master-port=none
set [ find default-name=ether2 ] master-port=none
set [ find default-name=ether3 ] master-port=ether2
set [ find default-name=ether4 ] master-port=ether2
set [ find default-name=ether5 ] master-port=ether2
set [ find default-name=ether6 ] master-port=ether2
set [ find default-name=ether7 ] master-port=ether2
set [ find default-name=ether8 ] master-port=ether2
set [ find default-name=ether9 ] master-port=ether2
set [ find default-name=ether10 ] master-port=ether2
set [ find default-name=ether11 ] master-port=ether2
set [ find default-name=ether12 ] master-port=ether2
set [ find default-name=ether13 ] master-port=ether2
set [ find default-name=ether14 ] master-port=ether2
set [ find default-name=ether15 ] master-port=ether2
set [ find default-name=ether16 ] master-port=ether2
set [ find default-name=ether17 ] master-port=ether2
set [ find default-name=ether18 ] master-port=ether2
set [ find default-name=ether19 ] master-port=ether2
set [ find default-name=ether20 ] master-port=ether2
set [ find default-name=ether21 ] master-port=ether2
set [ find default-name=ether22 ] master-port=ether2
set [ find default-name=ether23 ] master-port=ether2
set [ find default-name=ether24 ] master-port=ether2
/interface vlan
add interface=ether2 name=VLAN2 vlan-id=2
add interface=ether2 name=VLAN3 vlan-id=3
add interface=ether2 name=VLAN4 vlan-id=4
add interface=ether2 name=VLAN5 vlan-id=5
add interface=ether2 name=VLAN6 vlan-id=6
add interface=ether2 name=VLAN7 vlan-id=7
add interface=ether2 name=VLAN8 vlan-id=8
add interface=ether2 name=VLAN9 vlan-id=9
add interface=ether2 name=VLAN10 vlan-id=10
add interface=ether2 name=VLAN11 vlan-id=11
add interface=ether2 name=VLAN12 vlan-id=12
add interface=ether2 name=VLAN13 vlan-id=13
add interface=ether2 name=VLAN14 vlan-id=14
add interface=ether2 name=VLAN15 vlan-id=15
add interface=ether2 name=VLAN16 vlan-id=16
add interface=ether2 name=VLAN17 vlan-id=17
add interface=ether2 name=VLAN18 vlan-id=18
add interface=ether2 name=VLAN19 vlan-id=19
add interface=ether2 name=VLAN20 vlan-id=20
add interface=ether2 name=VLAN21 vlan-id=21
add interface=ether2 name=VLAN22 vlan-id=22
add interface=ether2 name=VLAN23 vlan-id=23
add interface=ether2 name=VLAN24 vlan-id=24
/interface ethernet switch vlan
add ports=ether2,switch1-cpu vlan-id=2 learn=yes
add ports=ether3,switch1-cpu vlan-id=3 learn=yes
add ports=ether4,switch1-cpu vlan-id=4 learn=yes
add ports=ether5,switch1-cpu vlan-id=5 learn=yes
add ports=ether6,switch1-cpu vlan-id=6 learn=yes
add ports=ether7,switch1-cpu vlan-id=7 learn=yes
add ports=ether8,switch1-cpu vlan-id=8 learn=yes
add ports=ether9,switch1-cpu vlan-id=9 learn=yes
add ports=ether10,switch1-cpu vlan-id=10 learn=yes
add ports=ether11,switch1-cpu vlan-id=11 learn=yes
add ports=ether12,switch1-cpu vlan-id=12 learn=yes
add ports=ether13,switch1-cpu vlan-id=13 learn=yes
add ports=ether14,switch1-cpu vlan-id=14 learn=yes
add ports=ether15,switch1-cpu vlan-id=15 learn=yes
add ports=ether16,switch1-cpu vlan-id=16 learn=yes
add ports=ether17,switch1-cpu vlan-id=17 learn=yes
add ports=ether18,switch1-cpu vlan-id=18 learn=yes
add ports=ether19,switch1-cpu vlan-id=19 learn=yes
add ports=ether20,switch1-cpu vlan-id=20 learn=yes
add ports=ether21,switch1-cpu vlan-id=21 learn=yes
add ports=ether22,switch1-cpu vlan-id=22 learn=yes
add ports=ether23,switch1-cpu vlan-id=23 learn=yes
add ports=ether24,switch1-cpu vlan-id=24 learn=yes
/interface ethernet switch egress-vlan-tag
add tagged-ports=switch1-cpu vlan-id=2
add tagged-ports=switch1-cpu vlan-id=3
add tagged-ports=switch1-cpu vlan-id=4
add tagged-ports=switch1-cpu vlan-id=5
add tagged-ports=switch1-cpu vlan-id=6
add tagged-ports=switch1-cpu vlan-id=7
add tagged-ports=switch1-cpu vlan-id=8
add tagged-ports=switch1-cpu vlan-id=9
add tagged-ports=switch1-cpu vlan-id=10
add tagged-ports=switch1-cpu vlan-id=11
add tagged-ports=switch1-cpu vlan-id=12
add tagged-ports=switch1-cpu vlan-id=13
add tagged-ports=switch1-cpu vlan-id=14
add tagged-ports=switch1-cpu vlan-id=15
add tagged-ports=switch1-cpu vlan-id=16
add tagged-ports=switch1-cpu vlan-id=17
add tagged-ports=switch1-cpu vlan-id=18
add tagged-ports=switch1-cpu vlan-id=19
add tagged-ports=switch1-cpu vlan-id=20
add tagged-ports=switch1-cpu vlan-id=21
add tagged-ports=switch1-cpu vlan-id=22
add tagged-ports=switch1-cpu vlan-id=23
add tagged-ports=switch1-cpu vlan-id=24
/interface ethernet switch ingress-vlan-translation
add ports=ether2,switch1-cpu customer-vid=0 new-customer-vid=2 sa-learning=yes
add ports=ether3,switch1-cpu customer-vid=0 new-customer-vid=3 sa-learning=yes
add ports=ether4,switch1-cpu customer-vid=0 new-customer-vid=4 sa-learning=yes
add ports=ether5,switch1-cpu customer-vid=0 new-customer-vid=5 sa-learning=yes
add ports=ether6,switch1-cpu customer-vid=0 new-customer-vid=6 sa-learning=yes
add ports=ether7,switch1-cpu customer-vid=0 new-customer-vid=7 sa-learning=yes
add ports=ether8,switch1-cpu customer-vid=0 new-customer-vid=8 sa-learning=yes
add ports=ether9,switch1-cpu customer-vid=0 new-customer-vid=9 sa-learning=yes
add ports=ether10,switch1-cpu customer-vid=0 new-customer-vid=10 sa-learning=yes
add ports=ether11,switch1-cpu customer-vid=0 new-customer-vid=11 sa-learning=yes
add ports=ether12,switch1-cpu customer-vid=0 new-customer-vid=12 sa-learning=yes
add ports=ether13,switch1-cpu customer-vid=0 new-customer-vid=13 sa-learning=yes
add ports=ether14,switch1-cpu customer-vid=0 new-customer-vid=14 sa-learning=yes
add ports=ether15,switch1-cpu customer-vid=0 new-customer-vid=15 sa-learning=yes
add ports=ether16,switch1-cpu customer-vid=0 new-customer-vid=16 sa-learning=yes
add ports=ether17,switch1-cpu customer-vid=0 new-customer-vid=17 sa-learning=yes
add ports=ether18,switch1-cpu customer-vid=0 new-customer-vid=18 sa-learning=yes
add ports=ether19,switch1-cpu customer-vid=0 new-customer-vid=19 sa-learning=yes
add ports=ether20,switch1-cpu customer-vid=0 new-customer-vid=20 sa-learning=yes
add ports=ether21,switch1-cpu customer-vid=0 new-customer-vid=21 sa-learning=yes
add ports=ether22,switch1-cpu customer-vid=0 new-customer-vid=22 sa-learning=yes
add ports=ether23,switch1-cpu customer-vid=0 new-customer-vid=23 sa-learning=yes
add ports=ether24,switch1-cpu customer-vid=0 new-customer-vid=24 sa-learning=yes
/interface ethernet switch
set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports=ether1,ether2,ether3,ether4,ether5,ether6,ether7,ether8,ether9,ether10,ether11,ether12,ether13,ether14,ether15,ether16,ether17,ether18,ether19,ether20,ether21,ether22,ether23,ether24,sfp1,switch1-cpu
/ip pool
add name=VLAN2-pool ranges=192.168.2.2-192.168.2.254
add name=VLAN3-pool ranges=192.168.3.2-192.168.3.254
add name=VLAN4-pool ranges=192.168.4.2-192.168.4.254
add name=VLAN5-pool ranges=192.168.5.2-192.168.5.254
add name=VLAN6-pool ranges=192.168.6.2-192.168.6.254
add name=VLAN7-pool ranges=192.168.7.2-192.168.7.254
add name=VLAN8-pool ranges=192.168.8.2-192.168.8.254
add name=VLAN9-pool ranges=192.168.9.2-192.168.9.254
add name=VLAN10-pool ranges=192.168.10.2-192.168.10.254
add name=VLAN11-pool ranges=192.168.11.2-192.168.11.254
add name=VLAN12-pool ranges=192.168.12.2-192.168.12.254
add name=VLAN13-pool ranges=192.168.13.2-192.168.13.254
add name=VLAN14-pool ranges=192.168.14.2-192.168.14.254
add name=VLAN15-pool ranges=192.168.15.2-192.168.15.254
add name=VLAN16-pool ranges=192.168.16.2-192.168.16.254
add name=VLAN17-pool ranges=192.168.17.2-192.168.17.254
add name=VLAN18-pool ranges=192.168.18.2-192.168.18.254
add name=VLAN19-pool ranges=192.168.19.2-192.168.19.254
add name=VLAN20-pool ranges=192.168.20.2-192.168.20.254
add name=VLAN21-pool ranges=192.168.21.2-192.168.21.254
add name=VLAN22-pool ranges=192.168.22.2-192.168.22.254
add name=VLAN23-pool ranges=192.168.23.2-192.168.23.254
add name=VLAN24-pool ranges=192.168.24.2-192.168.24.254
/ip dhcp-server
add address-pool=VLAN2-pool authoritative=yes disabled=no interface=VLAN2 name=dhcp1
add address-pool=VLAN3-pool authoritative=yes disabled=no interface=VLAN3 name=dhcp2
add address-pool=VLAN4-pool authoritative=yes disabled=no interface=VLAN4 name=dhcp3
add address-pool=VLAN5-pool authoritative=yes disabled=no interface=VLAN5 name=dhcp4
add address-pool=VLAN6-pool authoritative=yes disabled=no interface=VLAN6 name=dhcp5
add address-pool=VLAN7-pool authoritative=yes disabled=no interface=VLAN7 name=dhcp6
add address-pool=VLAN8-pool authoritative=yes disabled=no interface=VLAN8 name=dhcp7
add address-pool=VLAN9-pool authoritative=yes disabled=no interface=VLAN9 name=dhcp8
add address-pool=VLAN10-pool authoritative=yes disabled=no interface=VLAN10 name=dhcp9
add address-pool=VLAN11-pool authoritative=yes disabled=no interface=VLAN11 name=dhcp10
add address-pool=VLAN12-pool authoritative=yes disabled=no interface=VLAN12 name=dhcp11
add address-pool=VLAN13-pool authoritative=yes disabled=no interface=VLAN13 name=dhcp12
add address-pool=VLAN14-pool authoritative=yes disabled=no interface=VLAN14 name=dhcp13
add address-pool=VLAN15-pool authoritative=yes disabled=no interface=VLAN15 name=dhcp14
add address-pool=VLAN16-pool authoritative=yes disabled=no interface=VLAN16 name=dhcp15
add address-pool=VLAN17-pool authoritative=yes disabled=no interface=VLAN17 name=dhcp16
add address-pool=VLAN18-pool authoritative=yes disabled=no interface=VLAN18 name=dhcp17
add address-pool=VLAN19-pool authoritative=yes disabled=no interface=VLAN19 name=dhcp18
add address-pool=VLAN20-pool authoritative=yes disabled=no interface=VLAN20 name=dhcp19
add address-pool=VLAN21-pool authoritative=yes disabled=no interface=VLAN21 name=dhcp20
add address-pool=VLAN22-pool authoritative=yes disabled=no interface=VLAN22 name=dhcp21
add address-pool=VLAN23-pool authoritative=yes disabled=no interface=VLAN23 name=dhcp22
add address-pool=VLAN24-pool authoritative=yes disabled=no interface=VLAN24 name=dhcp23
/interface ethernet switch port
set 0 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 1 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 2 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 3 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 4 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 5 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 6 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 7 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 8 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 9 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 10 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 11 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 12 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 13 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 14 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 15 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 16 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 17 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 18 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 19 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 20 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 21 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 22 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 23 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 24 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
set 25 per-queue-scheduling=wrr-group0:1,wrr-group0:2,wrr-group0:4,wrr-group0:8,wrr-group0:16,wrr-group0:32,wrr-group0:64,wrr-group0:128
/ip address
add address=217.11.241.187/29 interface=ether1 network=217.11.241.184
add address=192.168.2.1/24 interface=VLAN2 network=192.168.2.0
add address=192.168.3.1/24 interface=VLAN3 network=192.168.3.0
add address=192.168.4.1/24 interface=VLAN4 network=192.168.4.0
add address=192.168.5.1/24 interface=VLAN5 network=192.168.5.0
add address=192.168.6.1/24 interface=VLAN6 network=192.168.6.0
add address=192.168.7.1/24 interface=VLAN7 network=192.168.7.0
add address=192.168.8.1/24 interface=VLAN8 network=192.168.8.0
add address=192.168.9.1/24 interface=VLAN9 network=192.168.9.0
add address=192.168.10.1/24 interface=VLAN10 network=192.168.10.0
add address=192.168.11.1/24 interface=VLAN11 network=192.168.11.0
add address=192.168.12.1/24 interface=VLAN12 network=192.168.12.0
add address=192.168.13.1/24 interface=VLAN13 network=192.168.13.0
add address=192.168.14.1/24 interface=VLAN14 network=192.168.14.0
add address=192.168.15.1/24 interface=VLAN15 network=192.168.15.0
add address=192.168.16.1/24 interface=VLAN16 network=192.168.16.0
add address=192.168.17.1/24 interface=VLAN17 network=192.168.17.0
add address=192.168.18.1/24 interface=VLAN18 network=192.168.18.0
add address=192.168.19.1/24 interface=VLAN19 network=192.168.19.0
add address=192.168.20.1/24 interface=VLAN20 network=192.168.20.0
add address=192.168.21.1/24 interface=VLAN21 network=192.168.21.0
add address=192.168.22.1/24 interface=VLAN22 network=192.168.22.0
add address=192.168.23.1/24 interface=VLAN23 network=192.168.23.0
add address=192.168.24.1/24 interface=VLAN24 network=192.168.24.0
/ip dhcp-server network
add address=192.168.2.0/24 gateway=192.168.2.1
add address=192.168.3.0/24 gateway=192.168.3.1
add address=192.168.4.0/24 gateway=192.168.4.1
add address=192.168.5.0/24 gateway=192.168.5.1
add address=192.168.6.0/24 gateway=192.168.6.1
add address=192.168.7.0/24 gateway=192.168.7.1
add address=192.168.8.0/24 gateway=192.168.8.1
add address=192.168.9.0/24 gateway=192.168.9.1
add address=192.168.10.0/24 gateway=192.168.10.1
add address=192.168.11.0/24 gateway=192.168.11.1
add address=192.168.12.0/24 gateway=192.168.12.1
add address=192.168.13.0/24 gateway=192.168.13.1
add address=192.168.14.0/24 gateway=192.168.14.1
add address=192.168.15.0/24 gateway=192.168.15.1
add address=192.168.16.0/24 gateway=192.168.16.1
add address=192.168.17.0/24 gateway=192.168.17.1
add address=192.168.18.0/24 gateway=192.168.18.1
add address=192.168.19.0/24 gateway=192.168.19.1
add address=192.168.20.0/24 gateway=192.168.20.1
add address=192.168.21.0/24 gateway=192.168.21.1
add address=192.168.22.0/24 gateway=192.168.22.1
add address=192.168.23.0/24 gateway=192.168.23.1
add address=192.168.24.0/24 gateway=192.168.24.1
/ip dns
set allow-remote-requests=yes
/ip firewall filter
add chain=input connection-state=established,related
add chain=input protocol=icmp
add chain=input dst-port=53 in-interface=!ether1 protocol=tcp
add chain=input dst-port=53 in-interface=!ether1 protocol=udp
add action=drop chain=input
add action=fasttrack-connection chain=forward connection-state=established,related
add chain=forward connection-state=established,related
add chain=forward out-interface=ether1
add action=drop chain=forward
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1 to-addresses=217.11.241.187
/ip route
add distance=1 gateway=217.11.241.190
/system clock
set time-zone-name=Europe/Prague
/system routerboard settings
set protected-routerboot=disabled