WiFi и создание собственной сети(точка доступа)
Demontager 1 января, 2011 - 04:02
У меня не получается создать собственную сеть ad-hoc или infrastructure. В лаптопе есть встроенный wifi- Intel 5100, а также я подключаю через USB- Awus 036H. При чём, не получается создать не на том, ни том адаптере. Использую GUI NetworkManagera- Create New Wireless Network. Там выбираю адаптер, задаю имя сети и шифрование. Сеть создаётся, но сам адаптер потом к ней подключиться не может. И самое интересное что, NetworkManager запускает зачем-то iptables, вот лог с dmesg:
Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol udp --destination-port 53 --jump ACCEPT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol tcp --destination-port 67 --jump ACCEPT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol udp --destination-port 67 --jump ACCEPT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --insert FORWARD --in-interface wlan0 --jump REJECT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --insert FORWARD --out-interface wlan0 --jump REJECT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --insert FORWARD --in-interface wlan0 --out-interface wlan0 --jump ACCEPT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --insert FORWARD --source 10.42.43.0/255.255.255.0 --in-interface wlan0 --jump ACCEPT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --insert FORWARD --destination 10.42.43.0/255.255.255.0 --out-interface wlan0 --match state --state ESTABLISHED,RELATED --jump ACCEPT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table nat --insert POSTROUTING --source 10.42.43.0/255.255.255.0 --destination ! 10.42.43.0/255.255.255.0 --jump MASQUERADE Jan 1 00:52:07 gateway NetworkManager: <WARN> start_sharing(): (wlan0/wlan0): failed to start dnsmasq: Could not find dnsmasq binary. Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table nat --delete POSTROUTING --source 10.42.43.0/255.255.255.0 --destination ! 10.42.43.0/255.255.255.0 --jump MASQUERADE Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --delete FORWARD --destination 10.42.43.0/255.255.255.0 --out-interface wlan0 --match state --state ESTABLISHED,RELATED --jump ACCEPT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --delete FORWARD --source 10.42.43.0/255.255.255.0 --in-interface wlan0 --jump ACCEPT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --delete FORWARD --in-interface wlan0 --out-interface wlan0 --jump ACCEPT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --delete FORWARD --out-interface wlan0 --jump REJECT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --delete FORWARD --in-interface wlan0 --jump REJECT Jan 1 00:52:07 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --delete INPUT --in-interface wlan0 --protocol udp --destination-port 67 --jump ACCEPT Jan 1 00:52:08 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --delete INPUT --in-interface wlan0 --protocol tcp --destination-port 67 --jump ACCEPT Jan 1 00:52:08 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --delete INPUT --in-interface wlan0 --protocol udp --destination-port 53 --jump ACCEPT Jan 1 00:52:08 gateway NetworkManager: <info> Executing: /sbin/iptables --table filter --delete INPUT --in-interface wlan0 --protocol tcp --destination-port 53 --jump ACCEPT Jan 1 00:52:08 gateway NetworkManager: <WARN> nm_device_activate_stage5_ip_config_commit(): Activation (wlan0) Stage 5 of 5 (IP Configure Commit) start sharing failed. Jan 1 00:52:08 gateway NetworkManager: <info> (wlan0): device state change: 7 -> 9 (reason 18) Jan 1 00:52:08 gateway NetworkManager: <info> Activation (wlan0) failed for access point (LOCAL) Jan 1 00:52:08 gateway NetworkManager: <info> Marking connection 'LOCAL' invalid. Jan 1 00:52:08 gateway NetworkManager: <info> Activation (wlan0) failed. Jan 1 00:52:08 gateway NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete. Jan 1 00:52:08 gateway NetworkManager: <info> (wlan0): device state change: 9 -> 3 (reason 0) Jan 1 00:52:08 gateway NetworkManager: <info> (wlan0): deactivating device (reason: 0). Jan 1 00:52:08 gateway NetworkManager: <info> Clearing nscd hosts cache. Jan 1 00:52:08 gateway kernel: iwlagn 0000:04:00.0: failed to remove IBSS station 00:00:00:00:00:00 Jan 1 00:52:08 gateway NetworkManager: <WARN> nm_device_wifi_set_mode(): error setting card wlan0 to mode 2: Device or resource busy
ps. Я пытался создать сеть "LOCAL"
»
- Для комментирования войдите или зарегистрируйтесь
Jan 1 00:52:07 gateway
Jan 1 00:52:07 gateway NetworkManager: start_sharing(): (wlan0/wlan0): failed to start dnsmasq: Could not find dnsmasq binary.
* net-dns/dnsmasq
Latest version available: 2.52
Latest version installed: 2.52
Size of files: 297 kB
Homepage: http://www.thekelleys.org.uk/dnsmasq/
Description: Small forwarding DNS server
License: GPL-2
Спасибо, с intel 5100
Спасибо, с intel 5100 получилось создать ad-hoc сеть, но с AWUS 036H, не хочет: "wlan1: link timed out".
http://pastebin.com/2e5dDYDB
И вопрос тогда ещё такой, вот ad-hoc создалась сеть, а если я инфраструктуру хочу, то так быть ? Вроде hostapd это делает, но судя по описанию, он для Atheros карт:
* net-wireless/hostapd
Available versions: 0.6.9 (~)0.7.3 {debug ipv6 logwatch madwifi +ssl +wps}
Homepage: http://hostap.epitest.fi
Description: IEEE 802.11 wireless LAN Host AP daemon