network/camper.rsc
2026-05-08 17:47:42 -05:00

156 lines
6.8 KiB
Text

# 2025-11-27 17:39:07 by RouterOS 7.20.4
# software id = DM48-6FY7
#
# model = RB4011iGS+5HacQ2HnD
# serial number = A2820A548561
/interface bridge
add admin-mac=74:4D:28:1A:67:09 auto-mac=no comment=defconf name=bridgeLocal
add name=dockers
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-g/n mode=ap-bridge ssid=camper \
wireless-protocol=802.11
/interface ethernet
set [ find default-name=ether2 ] name=ether2-starlink
set [ find default-name=ether3 ] name=ether3-tmobile
/interface veth
add address=172.17.0.2/16 dhcp=no gateway=172.17.0.1 gateway6="" name=veth1
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk mode=\
dynamic-keys supplicant-identity=MikroTik
add authentication-types=wpa-psk,wpa2-psk mode=dynamic-keys name=\
wlan2-profile supplicant-identity=MikroTik
/interface wireless
set [ find default-name=wlan2 ] band=5ghz-n/ac disabled=no mode=ap-bridge \
security-profile=wlan2-profile ssid=camper wireless-protocol=802.11 \
wps-mode=disabled
/ip pool
add name=dhcp ranges=10.0.20.1-10.0.20.249
/ip dhcp-server
add address-pool=dhcp interface=bridgeLocal name=dhcp1
/port
set 0 name=serial0
set 1 name=serial1
/interface bridge port
add bridge=bridgeLocal comment=defconf interface=ether4
add bridge=bridgeLocal comment=defconf interface=ether5
add bridge=bridgeLocal comment=defconf interface=ether6
add bridge=bridgeLocal comment=defconf interface=ether7
add bridge=bridgeLocal comment=defconf interface=ether8
add bridge=bridgeLocal comment=defconf interface=ether9
add bridge=bridgeLocal comment=defconf interface=ether10
add bridge=bridgeLocal comment=defconf interface=sfp-sfpplus1
add bridge=bridgeLocal interface=wlan2
add bridge=bridgeLocal interface=wlan1
add bridge=dockers interface=veth1
/interface detect-internet
set lan-interface-list=LAN wan-interface-list=dynamic
/interface list member
add interface=ether2-starlink list=WAN
add interface=ether3-tmobile list=WAN
add interface=bridgeLocal list=LAN
/interface wireless cap
set bridge=bridgeLocal discovery-interfaces=bridgeLocal interfaces=\
wlan1,wlan2
/ip address
add address=10.0.20.254/24 interface=bridgeLocal network=10.0.20.0
add address=172.17.0.1/16 interface=dockers network=172.17.0.0
/ip dhcp-client
add comment=tmobile default-route-distance=1 interface=ether3-tmobile
# Interface not active
add comment=defconf default-route-distance=2 interface=ether2-starlink
/ip dhcp-server lease
add address=10.0.20.251 client-id=1:2:a6:41:99:eb:4a mac-address=\
02:A6:41:99:EB:4A server=dhcp1
add address=10.0.20.252 client-id=\
ff:7e:7c:b4:ba:0:2:0:0:ab:11:20:5d:5:17:27:4d:31:d5 mac-address=\
BC:24:11:24:87:16 server=dhcp1
add address=10.0.20.249 client-id=\
ff:11:c3:76:34:0:1:0:1:30:a2:27:b8:bc:24:11:c3:76:34 mac-address=\
BC:24:11:C3:76:34 server=dhcp1
add address=10.0.20.253 mac-address=BC:24:11:E1:EA:98 server=dhcp1
/ip dhcp-server network
add address=10.0.20.0/24 dns-server=10.0.20.253,9.9.9.9,149.112.112.112 \
gateway=10.0.20.254 netmask=24
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN
/ip route
add comment=starlink disabled=no dst-address=192.168.100.1/32 gateway=\
192.168.1.1 routing-table=main suppress-hw-offload=no
add dst-address=100.64.0.0/10 gateway=172.17.0.2
/ip upnp
set enabled=yes
/ip upnp interfaces
add interface=bridgeLocal type=internal
add interface=ether1 type=external
/ipv6 address
# address pool error: pool not found: starlink-v6 (4)
add address=::2 from-pool=starlink-v6 interface=bridgeLocal
/ipv6 dhcp-client
add interface=ether2-starlink pool-name=starlink-v6 rapid-commit=no request=\
prefix use-interface-duid=yes
/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=fe80::/10 list=prefix_delegation
add address=2605:59c8:4700:5c61::1/128 comment="dhcp6 client server value" \
list=prefix_delegation
/ipv6 firewall filter
add action=accept chain=input dst-port=5678 protocol=udp
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-list=prefix_delegation
add action=drop chain=input comment=\
"defconf: drop everything else not coming from LAN" in-interface=\
!bridgeLocal
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=drop chain=forward comment=\
"defconf: drop everything else not coming from LAN" in-interface=\
!bridgeLocal
/ipv6 nd
set [ find default=yes ] advertise-dns=no hop-limit=64 \
managed-address-configuration=yes mtu=1280 other-configuration=yes \
ra-interval=3m20s-8m20s
/ipv6 nd prefix default
set preferred-lifetime=10m valid-lifetime=15m
/system clock
set time-zone-name=America/Chicago
/system identity
set name=camper
/system leds
add interface=wlan1 leds="wlan1_signal1-led,wlan1_signal2-led,wlan1_signal3-le\
d,wlan1_signal4-led,wlan1_signal5-led" type=wireless-signal-strength
add interface=wlan1 leds=wlan1_tx-led type=interface-transmit
add interface=wlan1 leds=wlan1_rx-led type=interface-receive
/system routerboard settings
set auto-upgrade=yes