您尚未登录。

#1 2015-03-04 23:52:23

buysome
会员
注册时间: 2015-02-28
帖子: 7

(完成) 笔记本创建wifi热点 手机不能上外网,但android 手机可以和电脑wifi通信

在windown 8.1下用360WIFI 的创建WIFI热点 android手机可以上外网的。

[create_ap]$ sudo ./create_ap --ieee80211n wlan0 eth0 arch abcd1234 -w 2
[sudo] wu 的密码:
对不起,请重试。
[sudo] wu 的密码:
Config dir: /tmp/create_ap.wlan0.conf.PqVrLWsr
PID: 5717
Network Manager found, set wlan0 as unmanaged device... DONE
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.PqVrLWsr/hostapd_ctrl
Configuration file: /tmp/create_ap.wlan0.conf.PqVrLWsr/hostapd.conf
wlan0: interface state UNINITIALIZED->HT_SCAN
Using interface wlan0 with hwaddr 41:51:b3:3e:45:34 and ssid "arch"
wlan0: interface state HT_SCAN->ENABLED
wlan0: AP-ENABLED
wlan0: STA cc:07:ab:22:fd:f9 IEEE 802.11: authenticated
wlan0: STA cc:07:ab:22:fd:f9 IEEE 802.11: associated (aid 1)
wlan0: AP-STA-CONNECTED cc:07:ab:22:fd:f9
wlan0: STA cc:07:ab:22:fd:f9 RADIUS: starting accounting session 54F7A416-00000000
wlan0: STA cc:07:ab:22:fd:f9 WPA: pairwise key handshake completed (RSN)


=================
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.12.1  netmask 255.255.255.0  broadcast 192.168.12.255
        ether 41:51:b3:3e:45:34  txqueuelen 1000  (Ethernet)
        RX packets 21771  bytes 25762572 (24.5 MiB)
        RX errors 0  dropped 7  overruns 0  frame 0
        TX packets 14818  bytes 1475741 (1.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

最近编辑记录 buysome (2015-03-15 20:51:54)

离线

#2 2015-03-05 09:47:55

atmouse
会员
注册时间: 2011-08-24
帖子: 701

Re: (完成) 笔记本创建wifi热点 手机不能上外网,但android 手机可以和电脑wifi通信

你的sysctl 不仅要开转发forward标志
而且iptables防火墙里面还要添加一条转发数据的规则

我是说当ap的那台,你的笔记本

最近编辑记录 atmouse (2015-03-05 09:49:49)

离线

页脚