From: "Vinícius Massuchetto" <viniciusandre@gmail.com>
To: netfilter@vger.kernel.org
Subject: Sharing ppp connection with wlan interface
Date: Sun, 20 Sep 2009 18:43:10 -0300 [thread overview]
Message-ID: <4AB6A1EE.1040201@gmail.com> (raw)
Dear all.
I'm on Debian Sid, and I've been trying to serve a
ppp0 internet connection through a wireless
network. I made a small script to be ran when i
want to do that:
ifdown wlan0
iwconfig wlan0 essid "VinaNET" mode Ad-Hoc
ifconfig wlan0 192.168.0.254
echo 1 > /proc/sys/net/ipv4/ip_forward
/etc/init.d/dnsmasq stop
/etc/init.d/dnsmasq start
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
The script goes just fine and the client computer
can see the wireless network but can't connect, it
only keeps trying:
DHCPDISCOVER on ath0 to 255.255.255.255 port 67
interval x
Here's my dnsmasq.conf file:
domain-needed
bogus-priv
interface=wlan0
dhcp-range=192.168.0.1,192.169.0.100,12h
I'm not quite sure if that's an iptables or a
dnsmasq problem.
Thanks!
--
Vinícius Massuchetto
http://vinicius.soylocoporti.org.br
next reply other threads:[~2009-09-20 21:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-20 21:43 Vinícius Massuchetto [this message]
[not found] ` <4AB6A375.2070801@standarduniversal.com.au>
2009-09-20 22:19 ` Sharing ppp connection with wlan interface Vinícius Massuchetto
2009-09-20 23:01 ` I want to connect a PC from Internet to my LAN (Asterisk server) Juan Cardoza
2009-09-21 9:10 ` Richard Horton
[not found] ` <4AB6B3EE.4050100@standarduniversal.com.au>
2009-09-21 2:58 ` Sharing ppp connection with wlan interface Vinícius Massuchetto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AB6A1EE.1040201@gmail.com \
--to=viniciusandre@gmail.com \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox