RB5009 Config:
# 2024-11-05 20:02:43 by RouterOS 7.14.2
# software id = C87L-8BI4
#
# model = RB5009UG+S+
# serial number = HE408J76HN4
/interface bridge
add admin-mac=48:A9:8A:59:8D:3E auto-mac=no comment=defconf name=bridge \
vlan-filtering=yes
/interface vlan
add interface=bridge name=guest vlan-id=50
add interface=bridge name=iot vlan-id=30
add interface=ether1 name=man vlan-id=2
add interface=ether1 name=net-cgnat vlan-id=3
add interface=ether1 name=net-public-ip vlan-id=4
add interface=bridge name=remote vlan-id=100
add interface=bridge name="voip - cash register" vlan-id=1000
/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=iot-pool ranges=10.98.30.30-10.98.30.254
add name=guest-pool ranges=10.98.50.2-10.98.50.254
add name=masternet-pool ranges=10.98.20.50-10.98.20.254
add name=remote-airfiber-pool ranges=192.168.1.2-192.168.1.254
add name=voip-cashreg-pool ranges=10.98.100.20-10.98.100.254
/ip dhcp-server
add address-pool=iot-pool interface=iot name="IoT Network"
/routing table
add disabled=no fib name=public-ip-routing
/user group
add name=hassio policy="reboot,read,write,policy,test,api,!local,!telnet,!ssh,\
!ftp,!winbox,!password,!web,!sniff,!sensitive,!romon,!rest-api"
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=ether6
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=sfp-sfpplus1
add bridge=bridge interface=man
/ip neighbor discovery-settings
set discover-interface-list=all
/interface bridge vlan
add bridge=bridge tagged=bridge,sfp-sfpplus1 vlan-ids=10
add bridge=bridge tagged=bridge,sfp-sfpplus1 vlan-ids=30
add bridge=bridge tagged=bridge,sfp-sfpplus1 vlan-ids=50
add bridge=bridge tagged=bridge,sfp-sfpplus1 vlan-ids=100
add bridge=bridge tagged=bridge,sfp-sfpplus1 vlan-ids=1000
/interface list member
add interface=bridge list=LAN
add interface=ether1 list=WAN
add interface=net-cgnat list=WAN
add interface=man list=LAN
add interface=ether8 list=LAN
add interface=net-public-ip list=WAN
/ip address
add address=10.98.30.1/24 interface=iot network=10.98.30.0
add address=10.98.50.1/24 interface=guest network=10.98.50.0
add address=192.168.1.1/24 interface=remote network=192.168.1.0
add address=10.98.20.1/24 interface=bridge network=10.98.20.0
add address=10.98.100.1/24 interface="voip - cash register" network=\
10.98.100.0
/ip dhcp-client
add interface=net-cgnat
add interface=net-public-ip
/ip dhcp-server
add address-pool=guest-pool interface=guest name="Guest Network" \
parent-queue=*FFFFFFFF
add address-pool=masternet-pool interface=bridge name="Master Network" \
parent-queue=*FFFFFFFF
add address-pool=remote-airfiber-pool interface=remote name="Remote Network" \
parent-queue=*FFFFFFFF
add address-pool=voip-cashreg-pool interface="voip - cash register" name=\
"Olenia VoIP/CashReg" parent-queue=*FFFFFFFF
/ip dhcp-server lease
add address=10.98.20.3 client-id=1:18:fd:74:66:9b:a8 mac-address=\
18:FD:74:66:9B:A8 server="Master Network"
add address=10.98.30.10 client-id=1:78:8c:b5:4a:7f:ff mac-address=\
78:8C:B5:4A:7F:FF server="IoT Network"
add address=10.98.30.11 client-id=1:78:8c:b5:4a:84:6a mac-address=\
78:8C:B5:4A:84:6A server="IoT Network"
add address=10.98.30.12 client-id=1:28:ee:52:77:9e:a3 mac-address=\
28:EE:52:77:9E:A3 server="IoT Network"
add address=10.98.30.13 client-id=1:78:8c:b5:94:2c:50 mac-address=\
78:8C:B5:94:2C:50 server="IoT Network"
add address=10.98.20.5 client-id=1:2:25:90:f2:e7:b6 mac-address=\
02:25:90:F2:E7:B6 server="Master Network"
add address=10.98.20.2 client-id=1:18:fd:74:8e:b8:e1 mac-address=\
18:FD:74:8E:B8:E1 server="Master Network"
/ip dhcp-server network
add address=10.98.20.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.98.20.1
add address=10.98.30.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.98.30.1
add address=10.98.50.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.98.50.1
add address=10.98.100.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.98.100.1
add address=192.168.1.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.1.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
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" \
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 disabled=yes hw-offload=yes
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 mangle
add action=mark-routing chain=prerouting comment="Mark for PublicIP" \
connection-mark=no-mark new-routing-mark=public-ip-routing passthrough=\
yes src-address=10.98.20.30
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface-list=WAN
add action=dst-nat chain=dstnat dst-port=9891 in-interface-list=WAN protocol=\
tcp to-addresses=10.98.20.10 to-ports=9891
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=149.210.40.166 \
pref-src="" routing-table=public-ip-routing scope=30 suppress-hw-offload=\
no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.57.3.200 \
pref-src="" routing-table=main scope=30 suppress-hw-offload=no \
target-scope=10
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 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
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute" \
dst-port=33434-33534 protocol=udp
add action=accept chain=input comment=\
"defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\
udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \
protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=input comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
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 packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment=\
"defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=\
500,4500 protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=forward comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
/system clock
set time-zone-name=Europe/Athens
/system note
set show-at-login=no
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
LHG-LTE Config:
# 2024-11-05 20:03:07 by RouterOS 7.14.2
# software id = AT1V-LL54
#
# model = LHGGM
# serial number = HD2088SHTMR
/interface vlan
add interface=ether1 name=man vlan-id=2
add interface=ether1 name=net vlan-id=3
add interface=ether1 name=net-vpn vlan-id=4
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface lte apn
set [ find default=yes ] ip-type=ipv4 name=cg-nat-apn passthrough-interface=\
net passthrough-mac=auto use-network-apn=no
add apn=vpn-internet ip-type=ipv4 name=public-ip-apn passthrough-interface=\
net-vpn passthrough-mac=auto
/interface lte
set [ find default-name=lte1 ] allow-roaming=no apn-profiles=\
cg-nat-apn,public-ip-apn band=1,3,7 name=lte-main network-mode=lte \
sms-read=no
set [ find default-name=lte-vpn ] master=lte-main
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip pool
add name=main_pool ranges=192.168.1.50-192.168.1.250
/ip dhcp-server
add address-pool=main_pool disabled=yes interface=ether1 lease-time=10m name=\
dhcp1
/port
set 0 name=serial0
/routing table
add disabled=no fib name=vpn_table
/ip firewall connection tracking
set udp-timeout=10s
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add interface=ether1 list=LAN
add interface=lte-main list=WAN
add interface=*FFFFFFFF list=LAN
add interface=man list=LAN
add interface=net-vpn list=LAN
/ip arp
add address=192.168.1.21 interface=ether1 mac-address=02:E0:4C:11:F3:FA
/ip dhcp-client
add interface=man
add interface=net-vpn
/ip dhcp-server network
add address=192.168.1.0/24 comment=defconf dns-server=192.168.1.1 gateway=\
192.168.1.1 netmask=24
/ip dns
set allow-remote-requests=yes servers=8.8.8.8
/ip dns static
add address=192.168.1.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
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" \
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 hw-offload=yes
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 mangle
add action=mark-routing chain=prerouting connection-mark=no-mark \
in-interface=net-vpn new-routing-mark=vpn_table passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface=lte-main
add action=masquerade chain=srcnat comment="defconf: masquerade" \
ipsec-policy=out,none out-interface=lte-vpn
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=lte-main pref-src="" \
routing-table=vpn_table scope=30 suppress-hw-offload=no target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway="" routing-table=\
vpn_table suppress-hw-offload=no
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 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
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute" port=\
33434-33534 protocol=udp
add action=accept chain=input comment=\
"defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=\
udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500 \
protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=input comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
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 packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment=\
"defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1" \
hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=\
icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=\
500,4500 protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=\
ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=\
ipsec-esp
add action=accept chain=forward comment=\
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=\
"defconf: drop everything else not coming from LAN" in-interface-list=\
!LAN
/system clock
set time-zone-name=Europe/Athens
/system identity
set name="LTE18 Antenna"
/system note
set show-at-login=no
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
/tool sms
set port=lte-main receive-enabled=yes
rb-conf.rsc (9.77 KB)
lhg-conf.rsc (7.14 KB)