create_ap

create a nat-ed wifi ap
git clone git://git.2f30.org/create_ap
Log | Files | Refs | README | LICENSE

commit 6c56e81148c469d8c5495a3ae0fa53b80c9885b8
parent 5ff7503e015433cbc86f026d76585b929566fffa
Author: oblique <psyberbits@gmail.com>
Date:   Tue,  9 Sep 2014 23:13:39 +0300

Specify listen-address in dnsmasq instead of listen-interface

Ubuntu has a bit different setup than other distributions and because
of this dnsmasq was failing to retrieve the results of a DNS lookup.
This can be fixed if we specify that the listen-address is the gateway
instead of binding all the addresses of the WIFI_IFACE.

Fix #46

Diffstat:
Mcreate_ap | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/create_ap b/create_ap @@ -728,7 +728,7 @@ else DNSMASQ_BIND=bind-dynamic fi cat << EOF > $CONFDIR/dnsmasq.conf -interface=${WIFI_IFACE} +listen-address=${GATEWAY} ${DNSMASQ_BIND} dhcp-range=${GATEWAY%.*}.1,${GATEWAY%.*}.254,255.255.255.0,24h dhcp-option=option:router,${GATEWAY}