Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
#!/bin/bash# Start# Configure IP address for WLANsudo ifconfig wlan0 192.168.150.1# Start DHCP/DNS serversudo service dnsmasq restart# Enable routingsudo sysctl net.ipv4.ip_forward=1# Enable NATsudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE# Run access point daemonsudo hostapd /etc/hostapd.conf# Stop# Disable NATsudo iptables -D POSTROUTING -t nat -o eth0 -j MASQUERADE# Disable routingsudo sysctl net.ipv4.ip_forward=0# Disable DHCP/DNS serversudo service dnsmasq stop
sudo touch /etc/init.d/start-wifi.shsudo chmod +x /etc/init.d/start-wifi.shsudo update-rc.d start-wifi.sh defaults 99sudo gedit /etc/init.d/start-wifi.sh
#!/bin/bashif [ "$1" == "start" ];then# Start# Configure IP address for WLANifconfig wlan0 192.168.150.1# Start DHCP/DNS serverservice dnsmasq restart# Enable routingsysctl net.ipv4.ip_forward=1# Enable NATiptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE# Run access point daemonhostapd /etc/hostapd.conffiif [ "$1" == "stop" ];then# Stop# Disable NATiptables -D POSTROUTING -t nat -o eth0 -j MASQUERADE# Disable routingsysctl net.ipv4.ip_forward=0# Disable DHCP/DNS serverservice dnsmasq stopfi
Страница сгенерирована за 0.016 секунд. Запросов: 22.