Skip to content

Instantly share code, notes, and snippets.

@xlevus

xlevus/Master Secret

Created November 10, 2015 09:04
Show Gist options
  • Save xlevus/26be54cc138892e71ec6 to your computer and use it in GitHub Desktop.
Save xlevus/26be54cc138892e71ec6 to your computer and use it in GitHub Desktop.
/interface bridge add name=bridge-local
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods=""
management-protection=allowed
mode=dynamic-keys
name=LocalSecurity
supplicant-identity="" \
wpa2-pre-shared-key=*****
/interface wireless
set [ find default-name=wlan1 ]
band=2ghz-b/g/n
channel-width=20/40mhz-Ce
mode=ap-bridge security-profile=LocalSecurity
ssid=KTR
wireless-protocol=802.11
/ip pool
add
name=dhcp-local-pool
ranges=192.168.1.100-192.168.1.199
/ip dhcp-server
add address-pool=dhcp-local-pool
disabled=no
interface=bridge-local
lease-time=1h
name=dhcp-local
/interface bridge port
add bridge=bridge-local interface=ether1-master-local
add bridge=bridge-local interface=ether6-master-local
add bridge=bridge-local interface=wlan1
/ip address
add address=192.168.1.1/24 interface=bridge-local network=192.168.1.0
/ip dhcp-client
add
default-route-distance=0
dhcp-options=hostname,clientid
disabled=no
interface=ether10-wan
use-peer-dns=no
/ip dhcp-server network add address=192.168.1.0/24 gateway=192.168.1.1
/ip dns set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall nat add action=masquerade chain=srcnat out-interface=ether10-wan
/interface bridge add name=bridge-local
/interface wireless security-profiles
set [ find default=yes ]
supplicant-identity=MikroTik
add authentication-types=wpa2-psk
eap-methods=""
management-protection=allowed
mode=dynamic-keys
name=LocalSecurity
supplicant-identity=""
wpa2-pre-shared-key=****
/interface wireless
set [ find default-name=wlan1 ]
band=2ghz-b/g/n
channel-width=20/40mhz-Ce
disabled=no
mode=ap-bridge \
security-profile=LocalSecurity
ssid=MikroTik
/interface bridge port
add bridge=bridge-local interface=ether1-master-local
add bridge=bridge-local interface=ether6-master-local
add bridge=bridge-local interface=wlan1
/ip address
add address=192.168.1.2/24 interface=bridge-local network=192.168.1.0
/ip dns set servers=8.8.8.8,8.8.4.4
/ip route add distance=1 gateway=192.168.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment