ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Суббота
20 апреля
728167 Топик полностью
Vit (14.01.2017 22:17 - 22:25, просмотров: 414) ответил Гудвин на Виталий, ты вроде встроенный WiFi заставил работать точкой доступа? Не подскажешь волшебные заклинания?
Подскажу. https://forum.armbian.com/index.php/topic/1605-wifi-access-point-problems-with-orange-pi-lite/
https://habrahabr.ru/post/188274/
# apt-get install dnsmasq # apt-get install hostapd # apt-get install iptables iproute2 procps haveged wireless-tools bridge-utils не уверен, что весь этот мусор нужен, но так было, и такое ставят со скриптом create_ap (у меня он не завелся - не стал сильно упираться) # groupadd -r dnsmasq && useradd -r -g dnsmasq dnsmasq # service dnsmasq stop прочищаем (можно забэкапить где-то) и редактируем раздатчик dhcp # echo "">/etc/dnsmasq.conf && nano /etc/dnsmasq.conf user=dnsmasq group=dnsmasq port=53 cache-size=100 domain-needed bogus-priv interface=wlan0 except-interface=ppp0 dhcp-range=10.0.0.2,10.0.0.10,12h dhcp-authoritative # service dnsmasq start # reboot раскомметнируем/поправим ссылку на конфиг тулзы точки доступа # nano /etc/default/hostapd #DAEMON_CONF="/etc/hostapd.conf" # before DAEMON_CONF="/etc/hostapd/hostapd.conf" # after Собственно вбиваем конфиг # nano /etc/hostapd/hostapd.conf interface=wlan0 driver=nl80211 ssid=OPIZeroWiFi hw_mode=g #ieee80211n=1 #uncomment for enable mode n #ht_capab=[HT40-][SHORT-GI-40] #uncomment for enable mode n channel=6 wpa=2 wpa_passphrase=SuperDuperPassword wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP rsn_pairwise=CCMP auth_algs=1 macaddr_acl=0 Далее правим запуск сетки # nano /etc/network/interfaces # Wired adapter #1 allow-hotplug eth0 no-auto-down eth0 iface eth0 inet dhcp #address 192.168.0.100 #netmask 255.255.255.0 #gateway 192.168.0.1 #dns-nameservers 8.8.8.8 8.8.4.4 # hwaddress ether # if you want to set MAC manually # pre-up /sbin/ifconfig eth0 mtu 3838 # setting MTU for DHCP, static just: mtu 3838 # Wireless adapter #1 # Armbian ships with network-manager installed by default. To save you time # and hassles consider using 'sudo nmtui' instead of configuring Wi-Fi settings # manually. The below lines are only meant as an example how configuration could # be done in an anachronistic way: # #allow-hotplug wlan0 #iface wlan0 inet dhcp #address 192.168.0.100 #netmask 255.255.255.0 #gateway 192.168.0.1 #dns-nameservers 8.8.8.8 8.8.4.4 # wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf # Disable power saving on compatible chipsets (prevents SSH/connection dropouts over WiFi) #wireless-mode Managed #wireless-power off allow-hotplug wlan0 iface wlan0 inet static address 192.168.1.1 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 pre-up /sbin/ip link set wlan0 up post-up /sbin/iptables -t nat -A POSTROUTING -j MASQUERADE && /bin/sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward" # Local loopback auto lo iface lo inet loopback # reboot Строчку с post-up можно переработать по примеру http://innerlife.i …i-plus-pppoe-iptables/ Ещё ссылки http://innerlife.i …-pi-plus-wifi-hostapd/