Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################ap-start.sh################
- #!/bin/sh
- ifconfig wlan0 172.16.0.1
- service dnsmasq restart
- sysctl net.ipv4.ip_forward=1
- iptables -t nat -A POSTROUTING -j SNAT -s 172.16.0.0/24 -d 0.0.0.0/0 --to aaa.bbb.ccc.ddd # IP, на который подменяем (адрес выходной сетевухи.)
- # Starting WIFI hotSpot
- hostapd /etc/hostapd/hostapd.conf
- ################hostapd.conf################
- #Name:Default
- #Type:Hostapd
- interface=wlan0
- driver=nl80211
- ssid=ololo.wifi
- country_code=BO
- hw_mode=g
- channel=6
- logger_syslog=-1
- logger_syslog_level=2
- logger_stdout=-1
- logger_stdout_level=2
- debug=0
- macaddr_acl=0
- ignore_broadcast_ssid=2
- wpa=3
- wpa_key_mgmt=WPA-PSK
- wpa_pairwise=TKIP CCMP
- wpa_passphrase=$up3r$3crEtM3gAP@ssw0rD # ;-)
- ################dnsmasq.conf################
- #Name:Default
- #Type:DNSMASQ
- interface=wlan0
- dhcp-range=172.16.0.2,172.16.0.254,8h
- domain-needed
- bogus-priv
- interface=eth0
- server=8.8.8.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement