Navigation

dhcp

Linux WIFI hotspot

eth1 - internet
wlan1 - internal network

 

Install programs:

 apt-get install dhcp3-server hostapd iptables

 

Set wlan1 IP

ip link set dev wlan1 up
ip addr add 10.10.0.1/24 brd + dev wlan1

 

/etc/hostapd/hostapd.conf

interface=wlan1
bridge=br0
driver=nl80211
ssid=APname
hw_mode=b
channel=1
wpa=2
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
wpa_ptk_rekey=600

 

/etc/default/dhcp3-server

Subscribe to dhcp