自作ルータ
hostapdをつかうかNetworkManagerで作れる
hostapdが
code:log
-- The job identifier is 6798.
Aug 22 09:39:36 raspberrypi hostapd3342: Configuration file: /etc/hostapd/hostapd.conf Aug 22 09:39:36 raspberrypi hostapd3342: rfkill: WLAN soft blocked Aug 22 09:39:36 raspberrypi hostapd3342: wlan0: Could not connect to kernel driver Aug 22 09:39:36 raspberrypi hostapd3342: Using interface wlan0 with hwaddr dc:a6:32:91:35:3e and ssid "experiment-wpa2" Aug 22 09:39:36 raspberrypi hostapd3342: Failed to set beacon parameters Aug 22 09:39:36 raspberrypi hostapd3342: wlan0: Could not connect to kernel driver Aug 22 09:39:36 raspberrypi hostapd3342: Interface initialization failed Aug 22 09:39:36 raspberrypi hostapd3342: wlan0: interface state UNINITIALIZED->DISABLED Aug 22 09:39:36 raspberrypi hostapd3342: wlan0: AP-DISABLED Aug 22 09:39:36 raspberrypi hostapd3342: wlan0: Unable to setup interface. Aug 22 09:39:36 raspberrypi hostapd3342: wlan0: interface state DISABLED->DISABLED Aug 22 09:39:36 raspberrypi hostapd3342: wlan0: AP-DISABLED Aug 22 09:39:36 raspberrypi hostapd3342: wlan0: CTRL-EVENT-TERMINATING Aug 22 09:39:36 raspberrypi hostapd3342: hostapd_free_hapd_data: Interface wlan0 wasn't started Aug 22 09:39:36 raspberrypi hostapd3342: nl80211: deinit ifname=wlan0 disabled_11b_rates=0 Aug 22 09:39:36 raspberrypi systemd1: hostapd.service: Control process exited, code=exited, status=1/FAILURE code:sh
rfkill list all
rfkill unblock wlan
なんか治る
WEP
パスワードは64bitであれば5文字らしいが、hexで認識するとかなんとかで、10文字必要
code: /etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=experiment-wep
hw_mode=g
channel=1
auth_algs=1
ignore_broadcast_ssid=0
# default_key1にしたらとweb_keyを0と1を用意する必要がある多分
wep_default_key=0
macaddr_acl=0
wep_key0=abcdeabcde
wep_key_len_broadcast="5"
wep_key_len_unicast="5"
wep_rekey_period=300
これだと
wep_default_key=1
macaddr_acl=0
wep_key0=abcdeabcde
wep_key1=1234512345
こんなのが必要らしい
WAP2
code: /etc/hostapd/hostapd.conf
interface=wlan0
driver=nl80211
ssid=experiment-wpa2
hw_mode=g
channel=5
wmm_enabled=0
macaddr_acl=0
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=hoge&HOGEpassword
driver=nl80211
ssid=experiment-wpa2
hw_mode=g
channel=5
wmm_enabled=0
macaddr_acl=0
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=hoge&HOGEpasswor