Hey Guys,
I’m trying to build 2 networks, each with its own WAN.
Each network should be separated, with no access to each other LAN or WAN.
I saw some topics already on the forum, but either they are on RouterOS 6 or the topology they try to create is different (i.e., failover Wan or shareable LAN)
Network 1 (“Building”): 192.168.1.X is connected with the DHCP Client (physically connected by ethernet port to a cable modem that is configurated as a bridge)
Network 2 (“Home”): 192.168.88.X is connected with PPPoE (physically connected by SFP+ to ethernet port to a fiber bride ONT with ethernet out)
I’m able to connect each network separately and also share one of the WANs between networks (either one of them but not both)
The problem: I cannot create the separation where each LAN is working only with its dedicated WAN, and each LAN does not access the other LAN.
Here is the configuration I’m using now:
# 2024-07-21 01:38:39 by RouterOS 7.11.3
# software id = 4LGQ-ZLD6
#
# model = CCR2116-12G-4S+
# serial number = ****
/interface bridge
add name="bridge1 - Building"
add name="bridge2 - Home"
/interface ethernet
set [ find default-name=ether1 ] name="ether1-WAN(Hot)"
set [ find default-name=ether2 ] name=ether2-Buidling-Switch
set [ find default-name=ether3 ] name=ether3-Buidling-PC
set [ find default-name=ether4 ] name=ether4-Buidling-NVR
set [ find default-name=ether5 ] name="ether5 - Home"
set [ find default-name=ether6 ] name="ether6 - Home"
set [ find default-name=ether7 ] name="ether7 - Home"
set [ find default-name=ether8 ] name="ether8 - Home"
set [ find default-name=ether9 ] name="ether9 - Home"
set [ find default-name=ether10 ] name="ether10 - Home"
set [ find default-name=ether11 ] name="ether11 - Home"
set [ find default-name=ether12 ] name="ether12 - Home"
set [ find default-name=ether13 ] name="ether13 - Home"
set [ find default-name=sfp-sfpplus1 ] auto-negotiation=no name=\
"sfp-sfpplus1 - WAN (Bezeq)"
set [ find default-name=sfp-sfpplus2 ] auto-negotiation=no name=\
"sfp-sfpplus2-Home-To Switch"
set [ find default-name=sfp-sfpplus3 ] auto-negotiation=no name=\
sfp-sfpplus3-Home
set [ find default-name=sfp-sfpplus4 ] auto-negotiation=no name=\
"sfp-sfpplus4-Home-10G PC"
/interface pppoe-client
add add-default-route=yes disabled=no interface="sfp-sfpplus1 - WAN (Bezeq)" \
name=pppoe-out1-Bezeq user=****
/interface list
add name=LAN1
add name=LAN2
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool1 ranges=198.168.1.2-198.168.1.254
add name=dhcp_pool5 ranges=192.168.88.2-192.168.88.254
/ip dhcp-server
add address-pool=dhcp_pool1 interface="bridge1 - Building" name=dhcp1
add address-pool=dhcp_pool5 interface="bridge2 - Home" name=dhcp2
/port
set 0 name=serial0
/routing table
add disabled=no fib name=rtab-1
add disabled=no fib name=rtab-2
/interface bridge port
add bridge="bridge1 - Building" interface=ether2-Buidling-Switch
add bridge="bridge1 - Building" interface=ether3-Buidling-PC
add bridge="bridge1 - Building" interface=ether4-Buidling-NVR
add bridge="bridge2 - Home" interface="ether5 - Home"
add bridge="bridge2 - Home" interface="ether6 - Home"
add bridge="bridge2 - Home" interface="ether7 - Home"
add bridge="bridge2 - Home" interface="ether8 - Home"
add bridge="bridge2 - Home" interface="ether9 - Home"
add bridge="bridge2 - Home" interface="ether10 - Home"
add bridge="bridge2 - Home" interface="ether11 - Home"
add bridge="bridge2 - Home" interface="ether12 - Home"
add bridge="bridge2 - Home" interface="sfp-sfpplus2-Home-To Switch"
add bridge="bridge2 - Home" interface=sfp-sfpplus3-Home
add bridge="bridge2 - Home" interface="sfp-sfpplus4-Home-10G PC"
/interface list member
add interface="bridge1 - Building" list=LAN1
add interface="bridge2 - Home" list=LAN2
/ip address
add address=198.168.1.1/24 interface="bridge1 - Building" network=198.168.1.0
add address=192.168.88.1/24 interface="bridge2 - Home" network=192.168.88.0
/ip dhcp-client
add interface="ether1-WAN(Hot)"
/ip dhcp-server lease
add address=192.168.88.9 client-id=1:28:80:88:73:56:2c mac-address=\
28:80:88:73:56:2C server=dhcp2
add address=192.168.88.8 client-id=1:98:b7:85:1f:ec:25 mac-address=\
98:B7:85:1F:EC:25 server=dhcp2
add address=192.168.88.5 client-id=1:98:25:4a:24:d8:50 mac-address=\
98:25:4A:24:D8:50 server=dhcp2
add address=192.168.88.7 client-id=1:b4:b0:24:2f:ef:ba mac-address=\
B4:B0:24:2F:EF:BA server=dhcp2
add address=192.168.88.6 client-id=1:b4:b0:24:2f:ef:b8 mac-address=\
B4:B0:24:2F:EF:B8 server=dhcp2
add address=192.168.88.4 client-id=1:5c:a6:e6:b7:70:25 mac-address=\
5C:A6:E6:B7:70:25 server=dhcp2
/ip dhcp-server network
add address=192.168.88.0/24 gateway=192.168.88.1
add address=198.168.1.0/24 gateway=198.168.1.1
/ip firewall filter
add action=accept chain=input comment="accept established,related,untracked" \
connection-state=established,related,untracked
add action=drop chain=input comment="drop invalid" connection-state=invalid
add action=accept chain=input comment="accept ICMP" in-interface=\
pppoe-out1-Bezeq protocol=icmp
add action=accept chain=input comment="allow Winbox" in-interface=\
pppoe-out1-Bezeq port=8291 protocol=tcp
add action=accept chain=input comment="allow SSH" in-interface=\
pppoe-out1-Bezeq port=22 protocol=tcp
add action=drop chain=input comment="block everything else" in-interface=\
pppoe-out1-Bezeq
add action=accept chain=input comment="accept ICMP" in-interface=\
"ether1-WAN(Hot)" protocol=icmp
add action=accept chain=input comment="allow Winbox" in-interface=\
"ether1-WAN(Hot)" port=8291 protocol=tcp
add action=accept chain=input comment="allow SSH" in-interface=\
"ether1-WAN(Hot)" port=22 protocol=tcp
add action=drop chain=input comment="block everything else" in-interface=\
"ether1-WAN(Hot)"
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=rtab-1 passthrough=\
no src-address=192.168.1.0/24
add action=mark-routing chain=prerouting new-routing-mark=rtab-2 passthrough=\
no src-address=192.168.88.0/24
add action=accept chain=prerouting in-interface=pppoe-out1-Bezeq
add action=accept chain=prerouting in-interface="ether1-WAN(Hot)"
/ip firewall nat
add action=masquerade chain=srcnat out-interface="ether1-WAN(Hot)"
add action=masquerade chain=srcnat out-interface=pppoe-out1-Bezeq
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=100.94.144.1 routing-table=\
rtab-1 suppress-hw-offload=no
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1-Bezeq \
pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
/system clock
set time-zone-name=America/New_York
/system note
set show-at-login=no
/system routerboard settings
set enter-setup-on=delete-key
/tool mac-server
set allowed-interface-list=LAN1
/tool mac-server mac-winbox
set allowed-interface-list=LAN1



