Last active
August 25, 2017 05:15
-
-
Save gladiopeace/4b859c41291a5c92bedf129c5c3c65ed to your computer and use it in GitHub Desktop.
mikrotik virual ap config wi psk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create the security profile | |
/interface wireless security-profiles add authentication-types=wpa-psk,wpa2-psk eap-methods="" mode=dynamic-keys name=evilPSK wpa-pre-shared-key=evilsecret wpa2-pre-shared-key=evilsecret | |
#create the virtual interface | |
/int wireless add master-interface=wlan1 disabled=no name=virtual1 security-profile=evilPSK ssid=evil | |
#create the dhcp-server | |
/ip pool add name=other-pool ranges=192.168.200.2-192.168.200.254 | |
/ip address add address=192.168.200.1/24 interface=virtual1 network=192.168.200.0 | |
/ip dhcp-server add address-pool=other-pool disabled=no interface=ether2 name=other-dhcp | |
/ip dhcp-server network add address=192.168.200.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.200.1 | |
#setup the firewall | |
/ip firewall nat add action=masquerade chain=srcnat comment="the other network" out-interface=ether1 src-address=192.168.200.0/24 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment