LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-26-2010, 06:12 PM   #1
simbini
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Rep: Reputation: 0
PPPOE server access the internet clients fail to access the internet


Forumites,

Please assist. I have a linux box (fedora) with two ethernet cards eth1 and eth2. On eth1 I successfully configured a PPPOE internet connection. Such that from the server I can browse the internet.
On eth2 I wired it to a wireless router essentially to provide the wireless cloud. On eth2 I also configured dhcp, such that the Linux box is both PPPOE and DHCP server.
However my clients on the LAN cannot access the Internet.

On passing the routing command I get
Destination Gateway Iface
196.44.x.y 0.0.0.0 ppp0
192.168.1.0 0.0.0.0 eth2 (my subnet)
0.0.0.0 0.0.0.0 ppp0.
The router (functioning as a wireless access point mainly) has a fixed IP address of 192.168.1.2 and eth2 has IP address 192.168.1.1. The dhcp file running on Linux has been set with option router (Gateway) 192.168.1.1. I cannot figure out how to correctly set the routing table such that my clients on wireless can access the internet cloud. I googled and googled but no solid solution. Any suggestions?

Simbini
 
Old 08-28-2010, 04:33 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
You can share internet connection using iptables. If you just want internet sharing, you can just MASQUERADE the outgoing connections on eth2.

iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE

or something similar. This is a crude example that might work. But change it to suit your requirements. And if you are looking for something like caching the internet data, you can use squid proxy.
 
Old 08-30-2010, 10:11 AM   #3
simbini
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Great. This is quite useful. I managed to use iptables and do a MASQUERADE and it worked like a charm. I will have to look at internet caching next.

Thanks
 
Old 08-31-2010, 12:37 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
Its nice to hear that it worked. For internet caching, you need squid proxy server or similar package. Squid is the one of the most preferred caching servers.
 
  


Reply


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
Can`t access the Internet? PPPoE over Wireless! sudo troyan Ubuntu 2 06-01-2010 03:38 AM
[SOLVED] Cannot access internet even PPPoE is up after configuring Samba ethereal1m Linux - Newbie 2 03-31-2010 08:18 AM
internet access for dhcp clients djekovic.dejan Linux - Server 8 11-26-2009 08:42 AM
how to access internet on linux clients By our Squid Proxy server farrukhndm Linux - Server 2 03-07-2009 06:22 AM
Clients can't access internet through server Lenard Spencer Linux - Networking 1 09-02-2006 03:57 PM


All times are GMT -5. The time now is 03:52 AM.

Main Menu
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