Donnerstag, 19. März 2015

VIDEO: Live-Demo Part 2 - How to convert 32GB Raspberry Pi 2 - whezzy - into a standalone WiFi Hotspot (REALTEK / EDIMAX)

This is Part 2: Making the AP (15 Min) - We use a fresh 32GB card with whezzy installed on..

Those steps are done there:

sudo apt-get install isc-dhcp-server
sudo apt-get autoremove hostapd
tar -zxvf v2.0.tar.gz
cd RTL8188-hostapd-2.0/hostapd
sudo make
sudo make install
sudo service hostapd restart
sudo nano /etc/dhcp/dhcpd.conf
#option domain-name "";
#option domain-name-servers,;
subnet netmask
option broadcast-address;
option routers;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local-network";
option domain-name-servers,;
sudo nano /etc/default/isc-dhcp-server
--> we forgott something.. look Part III. Such things happen in real life :)
sudo nano /etc/sysctl.conf
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
sudo ifup wlan0
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
sudo service isc-dhcp-server start
sudo service hostapd start
sudo update-rc.d hostapd enable
sudo update-rc.d isc-dhcp-server enable
sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
sudo nano /etc/network/interfaces
up iptables-restore < /etc/iptables.ipv4.nat
sudo nano /etc/rc.local
sleep 10 && service hostapd restart
sudo reboot

Keine Kommentare:

Kommentar veröffentlichen

comments are moderated, to prevent spam and trolls: