This commit is contained in:
light
2018-01-24 01:10:43 +08:00
parent c76e301127
commit 6858440e48
49 changed files with 29 additions and 2 deletions
Regular → Executable
View File
Regular → Executable
+28 -1
View File
@@ -50,4 +50,31 @@ sudo nano /etc/sysctl.conf
``` bash
net ipv4.ip_forward = 1 #去掉注释
```
```
## create_ap
``` bash
git clone https://github.com/oblique/create_ap.git
cd create_ap
sudo make install
sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq
sudo create_ap wlan0 eth0 热点名 密码
```
rc.local
``` bash
screen -dmS wlanpa create_ap wlanpa wlansrc hellolight 1234567890
wpa_cli -iwlansrc enable_network 0
```
## wpa_cli 设置
wpa_cli -iwlan0 set_network 0 ssid '"wlan"'
wpa_cli -iwlan0 set_network 0 key_mgmt WPA-EAP
wpa_cli -iwlan0 set_network 0 pairwise TKIP(CCMP)
wpa_cli -iwlan0 set_network 0 group TKIP(CCMP)
wpa_cli -iwlan0 set_network 0 eap PEAP
wpa_cli -iwlan0 set_network 0 identity '"username"'
wpa_cli -iwlan0 set_network 0 password '"password"'
Regular → Executable
View File
Regular → Executable
View File