Net/wifi/AP
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#topicpath
- Wifi AP を Linux で構築する
/////////////////////////////////////////////////////////...
* 目次 [#contents]
#contents();
/////////////////////////////////////////////////////////...
* Wifi AP にする [#wi-fi-ap]
- ノート PC に付いている Wifi を、APに繋ぎに行くものでは...
//=======================================================...
** Wifi interface の設定 [#g28e16c9]
- interface: wlan0
- IP: 192.168.126.1
# ifconfig wlan0 down
# ifconfig wlan0 192.168.126.1 netmask 255.255.255.0
# ifconfig wlan0 up
//=======================================================...
** dhcpd の設定 [#k734f1be]
- dhcpd がなければインストールする。debian の場合は isc-d...
# aptitude install isc-dhcp-server
- 設定 /etc/dhcp/dhcpd.conf
設定内容:
INTERFACES="wlan0";
subnet 192.168.126.0 netmask 255.255.255.0 {
range 192.168.126.10 192.168.126.254;
option domain-name-servers 8.8.8.8;
option routers 192.168.126.1;
default-lease-time 600;
max-lease-time 7200;
}
- 設定 /etc/default/isc-dhcp-server
-- /etc/init.d/isc-dhcp-server のデフォルトの挙動から変更...
- 起動
# /etc/init.d/isc-dhcp-server start
//=======================================================...
** hostapd の設定 [#hostapd]
- hostapd をインストールする
# aptitude install hostapd
- 設定 /etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=${SSID}
hw_mode=g
channel=11
wpa=2
wpa_passphrase=${PASSPHRASE}
wpa_key_mgmt=WPA-PSK
-- ssid, wpa_passphrase は、適切に設定する
-- driver は、AP に対応するドライバのことらしい。
--- [[ソフトウェアアクセスポイント>https://wiki.archlinux...
--- [[About nl80211>https://wireless.wiki.kernel.org/en/d...
- 起動
# /etc/init.d/hostapd start
//=======================================================...
** bridge の設定 [#bridge]
- ルータとして機能させるため、kernel の IP foward 機能を...
# sysctl -w net.ipv4.ip_forward=1
-- sysctl は、 /proc/sys 配下のファイルへアクセスすること...
- iptables で設定する
# iptables -t nat -A POSTROUTING -s 192.168.126.0/24 -o ...
-- 上記では、 wlan0 にぶら下がるクライアントのネットワー...
/////////////////////////////////////////////////////////...
* 参考リンク [#links]
- [[Ubuntuで無線LANルーターを構築する>http://netbuffalo.d...
- [[Debianで無線APを作る(2)Add Star>http://d.hatena.ne.jp...
- [[hostapd 本家>http://hostap.epitest.fi/hostapd/]]
- [[hostapd を用いた無線 LAN アクセスポイントの構築>http:...
- [[Ubuntuで無線LANアクセスポイントを構築 [Hostapd で無...
- [[How To: Create an 802.11n AP (Access Point) w/ Debian...
- [[HostAPD, Linux and the iPhone>http://www.redshiftwire...
終了行:
#topicpath
- Wifi AP を Linux で構築する
/////////////////////////////////////////////////////////...
* 目次 [#contents]
#contents();
/////////////////////////////////////////////////////////...
* Wifi AP にする [#wi-fi-ap]
- ノート PC に付いている Wifi を、APに繋ぎに行くものでは...
//=======================================================...
** Wifi interface の設定 [#g28e16c9]
- interface: wlan0
- IP: 192.168.126.1
# ifconfig wlan0 down
# ifconfig wlan0 192.168.126.1 netmask 255.255.255.0
# ifconfig wlan0 up
//=======================================================...
** dhcpd の設定 [#k734f1be]
- dhcpd がなければインストールする。debian の場合は isc-d...
# aptitude install isc-dhcp-server
- 設定 /etc/dhcp/dhcpd.conf
設定内容:
INTERFACES="wlan0";
subnet 192.168.126.0 netmask 255.255.255.0 {
range 192.168.126.10 192.168.126.254;
option domain-name-servers 8.8.8.8;
option routers 192.168.126.1;
default-lease-time 600;
max-lease-time 7200;
}
- 設定 /etc/default/isc-dhcp-server
-- /etc/init.d/isc-dhcp-server のデフォルトの挙動から変更...
- 起動
# /etc/init.d/isc-dhcp-server start
//=======================================================...
** hostapd の設定 [#hostapd]
- hostapd をインストールする
# aptitude install hostapd
- 設定 /etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=${SSID}
hw_mode=g
channel=11
wpa=2
wpa_passphrase=${PASSPHRASE}
wpa_key_mgmt=WPA-PSK
-- ssid, wpa_passphrase は、適切に設定する
-- driver は、AP に対応するドライバのことらしい。
--- [[ソフトウェアアクセスポイント>https://wiki.archlinux...
--- [[About nl80211>https://wireless.wiki.kernel.org/en/d...
- 起動
# /etc/init.d/hostapd start
//=======================================================...
** bridge の設定 [#bridge]
- ルータとして機能させるため、kernel の IP foward 機能を...
# sysctl -w net.ipv4.ip_forward=1
-- sysctl は、 /proc/sys 配下のファイルへアクセスすること...
- iptables で設定する
# iptables -t nat -A POSTROUTING -s 192.168.126.0/24 -o ...
-- 上記では、 wlan0 にぶら下がるクライアントのネットワー...
/////////////////////////////////////////////////////////...
* 参考リンク [#links]
- [[Ubuntuで無線LANルーターを構築する>http://netbuffalo.d...
- [[Debianで無線APを作る(2)Add Star>http://d.hatena.ne.jp...
- [[hostapd 本家>http://hostap.epitest.fi/hostapd/]]
- [[hostapd を用いた無線 LAN アクセスポイントの構築>http:...
- [[Ubuntuで無線LANアクセスポイントを構築 [Hostapd で無...
- [[How To: Create an 802.11n AP (Access Point) w/ Debian...
- [[HostAPD, Linux and the iPhone>http://www.redshiftwire...
ページ名: