questa è la configurazione dello switch:# 2025-02-26 07:29:57 by RouterOS 7.16.1
software id = YDL8-8X9M
#
model = CRS326-24G-2S+
serial number = HGG09GF9XRB
/interface bridge
add name=bridge1
/interface ethernet
set [ find default-name=ether17 ] name="ether17 - Starlink"
set [ find default-name=ether18 ] name="ether18 - Intred"
set [ find default-name=ether24 ] name="ether24 - Gestione Rete"
/ip pool
add name=Pool-Chalet ranges=10.10.0.1-10.10.0.200
add name="Pool - Alcide" ranges=10.0.0.1-10.0.0.68,10.0.0.70-10.0.0.254
add name=dhcp_pool2 ranges=10.0.0.1-10.0.0.68,10.0.0.70-10.0.0.254
add name=dhcp_pool3 ranges=10.0.0.1-10.0.0.68,10.0.0.70-10.0.0.254
add name=dhcp_pool4 ranges=10.10.0.1-10.10.0.200
add name=dhcp_pool5 ranges=10.10.0.1-10.10.0.200
add name=dhcp_pool6 ranges=10.10.0.1-10.10.0.200
/ip dhcp-server
add address-pool=dhcp_pool6 interface=bridge1 lease-time=2h name=dhcp1
/port
set 0 name=serial0
/queue simple
add max-limit=15M/15M name="Limite Intred" target="ether18 - Intred"
add max-limit=15M/30M name="Limite Starlink" target="ether17 - Starlink"
/routing table
add disabled=no fib name=ISP1
add disabled=no fib name=ISP2
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
add bridge=bridge1 interface=ether6
add bridge=bridge1 interface=ether7
add bridge=bridge1 interface=ether8
add bridge=bridge1 interface=ether9
add bridge=bridge1 interface=ether10
add bridge=bridge1 interface="ether24 - Gestione Rete"
add bridge=bridge1 interface=ether14
add bridge=bridge1 interface=ether11
add bridge=bridge1 interface=ether12
add bridge=bridge1 interface=ether13
add bridge=bridge1 interface=ether15
add bridge=bridge1 interface=ether16
add bridge=bridge1 interface=ether19
add bridge=bridge1 interface=ether20
add bridge=bridge1 interface=ether21
add bridge=bridge1 interface=ether22
add bridge=bridge1 interface=ether23
/ip address
add address=10.10.0.254/24 interface=bridge1 network=10.10.0.0
/ip cloud
set update-time=no
/ip dhcp-client
add interface="ether17 - Starlink"
add interface="ether18 - Intred"
/ip dhcp-server lease
add address=10.10.0.48 client-id=1:c8:5a:cf:ac:e5:8f mac-address=C8:5A:CF:AC:E5:8F server=dhcp1
add address=10.10.0.201 client-id=1:0:1a:e0:0:80:19 comment="Cassa 1" mac-address=00:1A:E0:00:80:19 server=dhcp1
add address=10.10.0.202 client-id=1:0:60:ef:20:da:55 comment="Cassa 2" mac-address=00:60:EF:20A:55 server=dhcp1
add address=10.10.0.203 client-id=1:50:af:73:31:42:6c comment="Cassa 3" mac-address=50:AF:73:31:42:6C server=dhcp1
add address=10.10.0.204 client-id=1:8c:4:ba:9d:14:8d comment="Cassa 4" mac-address=8C:04:BA:9D:14:8D server=dhcp1
add address=10.10.0.206 client-id=1:e8:6f:38:23:18:d3 mac-address=E8:6F:38:23:183 server=dhcp1
/ip dhcp-server network
add address=10.10.0.0/24 dns-server=10.10.0.254 gateway=10.10.0.254
/ip dns
set allow-remote-requests=yes mdns-repeat-ifaces=lo
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark connection-state=new in-interface="ether17 - Starlink" new-connection-mark=ISP1_Conn passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark connection-state=new in-interface="ether18 - Intred" new-connection-mark=ISP2_Conn passthrough=yes
add action=mark-routing chain=output connection-mark=ISP1_Conn new-routing-mark=ISP1 passthrough=yes
add action=mark-routing chain=output connection-mark=ISP2_Conn new-routing-mark=ISP2 passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark connection-state=new dst-address-type=!local in-interface="ether17 - Starlink" new-connection-mark=ISP1_Conn passthrough=yes per-connection-classifier=\
src-address-and-port:2/0
add action=mark-connection chain=prerouting connection-mark=no-mark connection-state=new dst-address-type=!local in-interface="ether18 - Intred" new-connection-mark=ISP2_Conn passthrough=yes per-connection-classifier=\
src-address-and-port:2/1
add action=mark-routing chain=prerouting connection-mark=ISP1_Conn in-interface=bridge1 new-routing-mark=ISP1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=ISP2_Conn in-interface=bridge1 new-routing-mark=ISP2 passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat
add action=dst-nat chain=dstnat dst-port=8080 in-interface="ether17 - Starlink" protocol=tcp to-addresses=10.10.0.203 to-ports=8080
add action=dst-nat chain=dstnat dst-port=8080 in-interface="ether18 - Intred" protocol=tcp to-addresses=10.10.0.203 to-ports=8080
add action=accept chain=input protocol=tcp src-port=8291
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/system clock
set time-zone-autodetect=no time-zone-name=Europe/Rome
/system clock manual
set time-zone=+01:00
/system identity
set name=R10-Biglietteria
/system note
set show-at-login=no
/system ntp client
set enabled=yes
/system ntp client servers
add address=ntp1.inrim.it
add address=ntp2.inrim.it
add address=time.inrim.it
/system routerboard settings
set enter-setup-on=delete-key
/tool romon
set enabled=yes id=00:00:00:00:00:10