OpenWrt Forum Archive

Topic: PPPoE passthrough on OpenWRT

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,

I've got a Linksys WRT54GL (OpenWRT Rc0.9) connecting in client(bridged) mode to a Netgear DG...

The Netgear router connects to the internet using its internal pppoe and everything works great. Got 2 clients connected to the Linksys and its all working wonderfully. You might wonder why I'm posting then and here is the crunch. I want to dial up on a seperate pppoe account from the clients. I know this is possible as I've done it before through a wired link to a Planet router. We had the router connected on a local-only account and the clients connecting themselves on a different account.

So it is possible but whenever I try to dial the connection from within Windows it fails on the "Connecting through WAN minport" message. I'm trying to check if the Netgear itself doesn't allow external pppoe connections through it but from the few posts trying to do this sort of thing it looks like OpenWRT doesn't support pppoe passthru by default. Does anyone know what packages I need or what configuration I should do to get this to work?

P.S. Tried RASPPPOE (no joy) and I'd rather not setup the pppoe on the Linksys itself as I still want the wireless interface to bridge like a normal network. My understanding is that setting up pppoe on the wifi interface means it can't work as a normal interface.

Thanks in advance

bump

FluffyRabbit wrote:

bump

I am not sure about others, but a network ( ascii ) diagram will certainly help.
Too many words and too difficult to understand.

Cheers.

Thanks for the response.

Here's a quick diagram

          Wired                                                    Wireless                           
PCs ----------------Client Mode Bridge(OpenWRT)----------------AP(OpenWRT)-----------------NetGear (modem)

The AP creates a pppoe connection through the netgear with no problems but I need to setup a seperate pppoe connection terminated on the clients (PCs).

Since I posted I've got pppoe-relay working passing packets from the bridge to the AP.
On the AP  someting funny happens as pppoe-relay won't relay the packets onto the wan interface.
Not sure if you can relay twice like that.

At the moment might consider setting up 2 pppoe connections on the AP and just do some selective iptables routing.

Ta

FluffyRabbit wrote:

Here's a quick diagram

          Wired                                                    Wireless                           
PCs ----------------Client Mode Bridge(OpenWRT)----------------AP(OpenWRT)-----------------NetGear (modem)

If I understand correctly, you have a bridge bridging the wired network ( on the PC side ) and the wireless network.

However on the AP, you will still have two distinct interfaces, ie the wireless LAN and the WAN interface and therefore packets will be routed ( instead of bridged ). PPPOE will not pass through.

Did you also bridge the wireless LAN to the WAN interface on the AP ?

Cheers.

Hi,

You're right. The WAN and Lan segments on the AP are not bridged at the moment.

The bridging actually still doesn't repeat pppoe packets. I'm not sure why but
I had to get pppoe-relay running on the Bridge router before I could get them to the AP.

I tried to use pppoe-relay again on the AP but couldn't get any packets to show on the wan interface.

At the moment I'm trying to tackle it from a slightly different approach. Setting up 2 ppp connections on the
AP and then just routing according the ips but I'd still like to know why this isn't working.

I think that pppoe-relay doesn't allow multiple relays or maybe a normal modem won't recognise pppoe-relay packets
as some additional info is added to the packet header.

On another Note:
The 2 pppoe connection setup isn't going that well either smile I don't really understand the structure of the ifup.pppoe file so I don't know how to make it setup 2 different connections with different settings. Tried just repeating the call to pppd at the bottom of the file but no joy.

FluffyRabbit wrote:

The bridging actually still doesn't repeat pppoe packets. I'm not sure why but
I had to get pppoe-relay running on the Bridge router before I could get them to the AP.

Really ? That's new to me. Any reason why it should not go through ? Did you load the pppoe kernel module ? It's my understanding the you should be able to bridge pppoe packets over a bridge.

FluffyRabiit wrote:

I tried to use pppoe-relay again on the AP but couldn't get any packets to show on the wan interface.

How did you arrive at this conclusion ? Did you do traffic sniffing ? Did the PPPOE packet arrive at the incoming interface at all ?

Maybe just for the sake of getting to the bottom of things, you might want to stop the original PPPOE session on the AP. It's my understanding that some modem only allow single PPPOE session. Try to find out if it is possible to get one PPPOE session from the PC, bridged and then pppoe-relayed into the WAN.

mctiew wrote:

Really ? That's new to me. Any reason why it should not go through ? Did you load the pppoe kernel module ? It's my understanding the you should be able to bridge pppoe packets over a bridge.

I also thought it was odd. As for loading the pppoe kernel module I'm running Russian 0.9 and pppoe is installed by default from what I can tell.

mctiew wrote:

How did you arrive at this conclusion ? Did you do traffic sniffing ? Did the PPPOE packet arrive at the incoming interface at all ?

I have been using tcpdump to pick up the PADI packets. Until I setup pppoe-relay on the bridge they didn't appear on the eth1 interface of the AP. However, when using pppoe-relay on the AP to pass them to the wan interface they didn't appear at all. Fiddled with a whole bunch of different configurations but that was the closest I got. I think pppoe-relay doesn't work when its done 2 to the same packets.

mctiew wrote:

Maybe just for the sake of getting to the bottom of things, you might want to stop the original PPPOE session on the AP. It's my understanding that some modem only allow single PPPOE session. Try to find out if it is possible to get one PPPOE session from the PC, bridged and then pppoe-relayed into the WAN.

That might be the case but until the packets are being sent out on the wan interface from the AP the modem has nothing to do with it yet. I might try it just to be sure but if that is the case it doesn't help me as I still need the AP to create its own pppoe session.

As I mentioned in my previous message I'm now setting up the AP to create 2 seperate pppoe connections itself and then route the traffic from the client through the second pppoe connection (ppp1).

Any ideas on how to configure the scripts to initiate 2 sessions like that.

Thanks for your help by the way.

The right way to do this is to split the wifi part from the bridge, then use pppoe-relay (from raspppoe) to relay traffic between the intefaces. Wifi will have to join the AP in client mode and all will work properly.

The reason why wet does not work is because wet on the broadcom platform is implemented via proxy-arp and this will "nat" all ethernet addresses behind the bridge. This is ok for IP traffic but very bad for pppoe.

Now... if someone could make a pppoe-relay ipk :-)

The discussion might have continued from here.