model = RB4011iGS+5HacQ2HnD
serial number = 1
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk comment=defconf
disable-pmkid=yes mode=dynamic-keys supplicant-identity=MikroTik
/ip cloud
set ddns-enabled=yes ddns-update-interval=10m
/ip dhcp-server network
add address=192.168.50.0/24 dns-none=yes gateway=192.168.50.1
add address=192.168.51.0/24 dns-none=yes gateway=192.168.51.1
add address=192.168.52.0/24 dns-none=yes gateway=192.168.52.1
add address=192.168.88.0/24 comment=defconf dns-server=192.168.88.1 gateway=
192.168.88.1
/ip dns static
add address=192.168.88.1 comment=defconf name=router.lan type=A
/ip firewall address-list
add address=192.168.100.2 list="Wire Guard Lista"
add address=192.168.100.3 list="Wire Guard Lista"
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
add name=dhcp_pool1 ranges=192.168.50.100-192.168.50.150
add name=dhcp_pool2 ranges=192.168.51.150-192.168.51.200
add name=dhcp_pool3 ranges=192.168.52.200-192.168.52.250
/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
/interface bridge
add name=TrunkB-Eth5 vlan-filtering=yes
add admin-mac=78:9A:18:94:97:B1 auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] advertise="10M-baseT-half,10M-baseT-full,100M
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
set [ find default-name=ether2 ] advertise="10M-baseT-half,10M-baseT-full,100M
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
set [ find default-name=ether3 ] advertise="10M-baseT-half,10M-baseT-full,100M
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
set [ find default-name=ether4 ] advertise="10M-baseT-half,10M-baseT-full,100M
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
set [ find default-name=ether5 ] advertise="10M-baseT-half,10M-baseT-full,100M
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
set [ find default-name=ether6 ] advertise="10M-baseT-half,10M-baseT-full,100M
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
set [ find default-name=ether7 ] advertise="10M-baseT-half,10M-baseT-full,100M
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
set [ find default-name=ether8 ] advertise="10M-baseT-half,10M-baseT-full,100M
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
set [ find default-name=ether9 ] advertise="10M-baseT-half,10M-baseT-full,100M
-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
set [ find default-name=ether10 ] advertise="10M-baseT-half,10M-baseT-full,100
M-baseT-half,100M-baseT-full,1G-baseT-half,1G-baseT-full"
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=pppoe-Telekom
use-peer-dns=yes user=user
/interface wireless
set [ find default-name=wlan2 ] band=2ghz-b/g/n channel-width=20/40mhz-XX
disabled=no distance=indoors frequency=auto mode=ap-bridge name=wlan1
ssid=MikroTik-80D82F wireless-protocol=802.11
set [ find default-name=wlan1 ] band=5ghz-a/n/ac channel-width=
20/40/80mhz-XXXX disabled=no distance=indoors frequency=auto mode=
ap-bridge name=wlan2 ssid=MikroTik-80D82F wireless-protocol=802.11
/interface wireguard
add comment="HUB 4011 ruter" listen-port=37169 mtu=1420 name=
WireGuard-HUB4011
add listen-port=13231 mtu=1420 name=Wireguard
/interface vlan
add interface=TrunkB-Eth5 name=VLAN-50 vlan-id=50
add interface=TrunkB-Eth5 name=VLAN-51 vlan-id=51
add interface=TrunkB-Eth5 name=VLAN-52 vlan-id=52
/disk settings
set auto-media-interface=bridge auto-media-sharing=yes auto-smb-sharing=yes
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=pppoe-Telekom list=WAN
/interface wireguard peers
add allowed-address=192.168.100.3/32 comment="laptop podaci" interface=
Wireguard name=peer-lenovo2007 public-key=
"0xwj6g1DwMIz0XbRaKB28iXiHkwoyUH79G/q0QV13W8="
add allowed-address=192.168.100.2/32 comment="Telefon podaci" interface=
Wireguard name=peer-telefon public-key=
"fjo3Rl1tFJpoHHbT0dMforyOO7s0IPAamR7OsoJRySg="
add allowed-address=192.168.100.5/32 !client-listen-port endpoint-address=::
interface=Wireguard name="LapTop kuci" public-key=
"JaWvxkKq6LAKNzHPjnDVtpLpbDw0aPeOCEjjF/zdWxQ=\C2\A0"
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=
192.168.88.0
add address=192.168.100.1/24 comment="WireGuard private IP" interface=
Wireguard network=192.168.100.0
add address=192.168.50.1/24 interface=VLAN-50 network=192.168.50.0
add address=192.168.51.1/24 interface=VLAN-51 network=192.168.51.0
add address=192.168.52.1/24 interface=VLAN-52 network=192.168.52.0
add address=10.0.0.1 interface=WireGuard-HUB4011 network=10.0.0.1
/ip dhcp-server
add address-pool=default-dhcp interface=bridge name=defconf
add address-pool=dhcp_pool1 interface=VLAN-50 name=dhcp1
add address-pool=dhcp_pool2 interface=VLAN-51 name=dhcp2
add address-pool=dhcp_pool3 interface=VLAN-52 name=dhcp3
/ip dns
set allow-remote-requests=yes
/ip firewall filter
add action=drop chain=forward connection-state=established,new dst-address=
192.168.50.0/24 src-address=192.168.51.0/24
add action=drop chain=forward connection-state=established,new dst-address=
192.168.51.0/24 src-address=192.168.50.0/24
add action=accept chain=input comment=
"dopust za menad\C5\BEerisanje rutera na int wireguard" in-interface=
Wireguard
add action=accept chain=input comment="dopust VPN vezama" dst-port=13231
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 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=drop chain=forward comment="defconf: drop invalid"
connection-state=invalid
add action=fasttrack-connection chain=forward comment="defconf: fasttrack"
connection-state=established,related
add action=accept chain=forward comment=
"defconf: accept established,related, untracked" connection-state=
established,related,untracked
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 nat
add action=masquerade chain=srcnat comment="defconf: masquerade"
ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat src-address=192.168.88.0/24
add action=masquerade chain=srcnat src-address=192.168.50.0/24
add action=masquerade chain=srcnat src-address=192.168.51.0/24
add action=masquerade chain=srcnat src-address=192.168.52.0/24
/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=fasttrack-connection chain=forward comment="defconf: fasttrack6"
connection-state=established,related
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/Podgorica
/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 enter-setup-on=delete-key
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
/tool romon
set enabled=yes
/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=TrunkB-Eth5 comment=defconf interface=ether5
add bridge=TrunkB-Eth5 comment=defconf interface=ether6 pvid=50
add bridge=TrunkB-Eth5 comment=defconf interface=ether7 pvid=51
add bridge=TrunkB-Eth5 comment=defconf interface=ether8 pvid=52
add bridge=bridge comment=defconf interface=ether9
add bridge=bridge comment=defconf interface=ether10
add bridge=bridge comment=defconf interface=sfp-sfpplus1
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/interface bridge vlan
add bridge=TrunkB-Eth5 tagged=TrunkB-Eth5,ether5 untagged=ether6 vlan-ids=50
add bridge=TrunkB-Eth5 tagged=TrunkB-Eth5,ether5 untagged=ether7 vlan-ids=51
add bridge=TrunkB-Eth5 tagged=TrunkB-Eth5,ether5 untagged=ether8 vlan-ids=52