[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sharing ppp connection with wlan interface



On Sun, 20 Sep 2009 10:49:35 -0300
Vinícius Massuchetto <viniciusandre@gmail.com> wrote:

> Dear all.
> 
> 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

I'm not sure that I understand exactly what you're trying to do here.
If you want the box in question to serve as a wireless AP / router
(i.e., the ppp connection is from the box, and clients connect
wirelessly to the box), then you should be configuring it with 'mode
master', or, more likely these days, using hostapd.  If you have a
separate wireless AP, and you just want the box to be a dns server /
ppp host, then the mode should be 'managed', and the AP should be
configured to forward traffic to the box.

Please explain more clearly your network topology.

Celejar
-- 
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


Reply to: