Skip to content

Instantly share code, notes, and snippets.

@kyob
Created March 20, 2019 21:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kyob/50348e1c90293eacad22033e2bcd4fcd to your computer and use it in GitHub Desktop.
Save kyob/50348e1c90293eacad22033e2bcd4fcd to your computer and use it in GitHub Desktop.
# jan/16/2019 11:20:26 by RouterOS 6.43.8
# software id = 5S5F-0ISV
#
# model = 951G-2HnD
/interface ethernet
set [ find default-name=ether1 ] comment=UPLINK speed=100Mbps
set [ find default-name=ether2 ] comment=NET speed=100Mbps
set [ find default-name=ether3 ] comment=NET speed=100Mbps
set [ find default-name=ether4 ] comment=TV speed=100Mbps
set [ find default-name=ether5 ] comment=PROBE speed=100Mbps
/interface bridge
add admin-mac=4C:5E:0C:0D:DD:4D auto-mac=no fast-forward=no name=bridge-NET protocol-mode=none
/interface ethernet switch port
set 2 default-vlan-id=227 vlan-header=always-strip vlan-mode=secure
set 3 default-vlan-id=227 vlan-header=always-strip vlan-mode=secure
set 4 vlan-mode=fallback
/interface list
add exclude=dynamic name=discover
add name=mactel
add name=mac-winbox
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" group-ciphers=tkip,aes-ccm management-protection=allowed mode=dynamic-keys name=security supplicant-identity="" unicast-ciphers=tkip,aes-ccm
/interface wireless
set [ find default-name=wlan1 ] adaptive-noise-immunity=ap-and-client-mode band=2ghz-g/n channel-width=20/40mhz-Ce country=poland default-forwarding=no disabled=no frequency=auto frequency-mode=\
regulatory-domain mode=ap-bridge radio-name=kyob security-profile=security ssid=kyob wireless-protocol=802.11
/ip pool
add name=default-dhcp ranges=192.168.1.10-192.168.1.254
/ip dhcp-server
add address-pool=default-dhcp authoritative=after-2sec-delay disabled=no interface=bridge-NET lease-time=1h name=default
/port
set 0 baud-rate=9600 data-bits=8 flow-control=none name=usb1 parity=none stop-bits=1
/interface bridge port
add bridge=bridge-NET interface=wlan1
add bridge=bridge-NET hw=no interface=ether2
add bridge=bridge-NET hw=no interface=ether3
/interface ethernet switch vlan
add independent-learning=no ports=ether1,ether4,ether5 switch=switch1 vlan-id=227
/ip address
add address=192.168.1.1/24 comment="default configuration" interface=bridge-NET network=192.168.1.0
/ip dhcp-client
add comment="default configuration" dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.1.0/24 comment="default configuration" dns-server=1.1.1.1 gateway=192.168.1.1
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add action=accept chain=forward disabled=yes protocol=tcp
add action=accept chain=forward disabled=yes protocol=udp
add action=accept chain=forward disabled=yes protocol=icmp
add action=accept chain=forward disabled=yes protocol=igmp
add action=accept chain=forward disabled=yes protocol=gre
/ip firewall nat
add action=masquerade chain=srcnat comment="default configuration" out-interface=ether1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www port=55555
set api disabled=yes
set api-ssl disabled=yes
/ip socks
set enabled=yes port=4153
/system clock
set time-zone-name=Europe/Warsaw
/system identity
set name=kyob
/system ntp client
set enabled=yes primary-ntp=212.244.36.227 secondary-ntp=212.244.36.228
/tool mac-server
set allowed-interface-list=mactel
/tool mac-server mac-winbox
set allowed-interface-list=mac-winbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment