* [gentoo-user] Can I build a ipv6 access point by hostapd and dnsmasq?
@ 2013-08-24 3:28 东方巽雷
0 siblings, 0 replies; only message in thread
From: 东方巽雷 @ 2013-08-24 3:28 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 689 bytes --]
I have sucessfully build a ipv4 access point ,
1)edit /etc/dnsmasq.conf and add
interface=wlan0
except-interface=lo
dhcp-range=10.0.0.2,10.0.0.9,12h
2)create a file name hostapd.conf:
interface=wlan0
driver=nl80211
ssid=pqy
hw_mode=g
channel=8
wpa=3
wpa_passphrase=pqy55555
3)create a file name ap.sh:
#!/bin/bash
pkill hostapd
pkill dnsmasq
sleep 1
ifconfig wlan0 10.0.0.1 netmask 255.255.255.240
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
hostapd -B hostapd.conf
/etc/init.d/dnsmasq restart
then sudo sh ap.sh
I can connect to this ipv4 network.But I have no idea how to deal with ipv6.
Is it possible to create ipv6 local network?
[-- Attachment #2: Type: text/html, Size: 1030 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-24 3:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-24 3:28 [gentoo-user] Can I build a ipv6 access point by hostapd and dnsmasq? 东方巽雷
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox