PPPoE with Red Hat 9

cHaRlLoS

Member
Joined
May 13, 2004
Messages
14
Reaction score
0
Location
South Africa.
Hi.

I'm running Red Hat 9 with My Wireless through the PPPoE.
The Linux box can get to the net, but the rest of my network not.

What's wrong? I've checked some post and tried what worked for other people but it doesn't work at all. If I ping the ppp0 from my eth0/ eth1
(ping google.com -I eth0) it doesn't work. My guess is that somewhere there's some routing not activated.

Any ideas.
Thanx

Pass the duchie to the lefthand side?
 
Turn on CLAMPMSS in the roaring penguin client....

Have a look over the forums - it's been discussed at length.

Rig

************************************************************
The views expressed on this site are my own and NOT those of my employer.
 
Make sure your IP forward is enabled, with this:
cat /proc/sys/net/ipv4/ipforward
This should display a 1 to you. If not you can enable it with something like this:
cat 1 > /proc/sys/net/ipv4/ipforward
 
You will not only have to do the ipforward bit, but you will also have to setup some NAT rules for the machines on the local network, so that their internal IP adresses will get translated to the external ppp0 address.

iptables -A POSTROUTING -t nat -o ppp0 -i eth0 -j MASQUERADE

should do the trick, as a start. That basically means, after routing decisions have been made, to take any incoming traffic on eth0, push it out on ppp0, and to masquearade (NAT) the connections on the outbound interface.

It is also not strictly necessary to use the roaring penguin PPPoE MSS clamping option. You can do that with IPTables too.

iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu

This will solve the problem if you find that your internal PC's can ping the outside world, but have problems connecting to certain websites, or only get half their pages downloaded.

<center><h5><font color="red">Oo. MyWireless <s>Hacks</s> Tweaks & Tech Info.oO </font id="red"></h5><h6>Have you checked the fawking FAQ?</h6></center>
 
Hi.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by TheRoDent</i>
iptables -A POSTROUTING -t nat -o ppp0 -i eth0 -j MASQUERADE
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
When I try this it tells me I can't use "-i" with POSTROUTING. ???

The rest of my network can't access the net at all. Is it really this difficult to setup the linux box or am I just missing something?

My Setup:
eth0 -&gt; connected to MyWireless; IP: DHCP thus no IP? although when I ping it comes from 192.168.0.1
eth1 -&gt; connected to switch. IP : 192.168.0.1 MASK:255.255.255.0
ppp0 -&gt; IP: dialup
Forwarding ON

With the command "ping google.com -I eth1" I get destination host unreachable.

Thanx

Pass the duchie to the lefthand side?
 
Me feel silly.

I had of course pre-supposed all the NATting had been done ;-)

[:D][:D][:D]

Oh well, silly me

R

************************************************************
The views expressed on this site are my own and NOT those of my employer.
 
Top
Sign up to the MyBroadband newsletter
X