Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # feb/23/2020 20:14:34 by RouterOS 6.46.3
- # software id = xxx
- #
- # model = RB962UiGS-5HacT2HnT
- # serial number = xxx
- /interface bridge
- add admin-mac=xxx:BB:0F:6F auto-mac=no name=br0 protocol-mode=none
- /interface vlan
- add interface=br0 name=vlan2 vlan-id=2
- add interface=br0 name=vlan100 vlan-id=100
- /interface ethernet switch port
- set 0 vlan-mode=secure
- set 1 default-vlan-id=2 vlan-header=always-strip vlan-mode=secure
- set 2 default-vlan-id=2 vlan-header=always-strip vlan-mode=secure
- set 3 default-vlan-id=2 vlan-header=always-strip vlan-mode=secure
- set 4 default-vlan-id=2 vlan-header=always-strip vlan-mode=secure
- set 5 vlan-mode=secure
- /interface list
- add comment=defconf name=WAN
- add comment=defconf name=LAN
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- add authentication-types=wpa2-psk name=wpa2 supplicant-identity=MikroTik wpa2-pre-shared-key=xxx
- add authentication-types=wpa2-psk name=wifi-iot supplicant-identity=MikroTik wpa2-pre-shared-key=\
- xxx
- /interface wireless
- set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX disabled=no distance=indoors \
- frequency=auto installation=indoor mode=ap-bridge name=wlan0 security-profile=wpa2 ssid=photon-2.4 vlan-id=2 \
- vlan-mode=use-tag wireless-protocol=802.11
- set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-XX disabled=no distance=indoors frequency=\
- auto installation=indoor mode=ap-bridge security-profile=wpa2 ssid=photon vlan-id=2 vlan-mode=use-tag \
- wireless-protocol=802.11
- add mac-address=76:4D:28:BB:0F:75 master-interface=wlan0 name=wlan2 security-profile=wifi-iot ssid=photon-service \
- vlan-id=10 vlan-mode=use-tag wps-mode=disabled
- /ip pool
- add name=pool-vlan2 ranges=192.168.2.31-192.168.2.254
- /ip dhcp-server
- add address-pool=pool-vlan2 disabled=no interface=vlan2 lease-time=1h name=dhcp1
- /interface bridge port
- add bridge=br0 interface=ether1
- add bridge=br0 interface=ether2
- add bridge=br0 interface=ether3
- add bridge=br0 interface=ether4
- add bridge=br0 interface=wlan0
- add bridge=br0 interface=wlan1
- /ip neighbor discovery-settings
- set discover-interface-list=LAN
- /interface bridge vlan
- add bridge=br0 tagged=ether1 untagged=wlan0,wlan1,ether2,ether3,ether4,ether5 vlan-ids=2
- add bridge=br0 tagged=ether1 vlan-ids=100
- /interface ethernet switch vlan
- add independent-learning=yes ports=ether1,switch1-cpu switch=switch1 vlan-id=100
- add independent-learning=yes ports=ether1,ether2,ether3,ether4,switch1-cpu switch=switch1 vlan-id=2
- add independent-learning=yes ports=ether1,switch1-cpu switch=switch1 vlan-id=10
- /interface list member
- add comment=defconf interface=ether1 list=WAN
- add interface=vlan2 list=LAN
- add interface=vlan100 list=WAN
- /ip address
- add address=192.168.2.1/24 interface=vlan2 network=192.168.2.0
- /ip dhcp-client
- add disabled=no interface=vlan100
- /ip dhcp-server network
- add address=192.168.2.0/24 gateway=192.168.2.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
- 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 nat
- add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
- /ip ssh
- set strong-crypto=yes
- /system clock
- set time-zone-name=Europe/Moscow
- /system identity
- set name=photon
- /tool mac-server
- set allowed-interface-list=LAN
- /tool mac-server mac-winbox
- set allowed-interface-list=LAN
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement