LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 09-20-2009, 10:14 PM   #1
viniciusandre
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
Sharing ppp connection with wlan interface


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:

Code:
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:

Code:
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval x
Here's my dnsmasq.conf file:

Code:
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!
 
Old 10-01-2009, 11:35 AM   #2
theprofessor
LQ Newbie
 
Registered: Aug 2007
Location: San Antonio, TX
Distribution: FC6, UBUNTU
Posts: 1

Rep: Reputation: 0
Is your Wifi access point running a DHCP Server on it that would be conflicting with your server?
 
  


Reply

Tags
network, ppp, share, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NetworkManager & gprs/ppp DNS: after using wlan/eth0, DNS for ppp doesn't work mtess Linux - Networking 3 03-12-2008 04:31 PM
ppp interface... culin Linux - Networking 4 04-13-2007 04:49 PM
waiting for the PPP interface ertz Linux - Networking 2 05-17-2004 05:25 PM
Why don't file and print sharing of Samba pass throgh PPP connection? ritsasa Linux - Networking 1 03-08-2004 08:35 AM
Internet Connection Sharing via ppp l0f33t Linux - Networking 4 05-22-2003 06:01 PM


All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration