1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PPPoE-relay

Discussion in 'Tomato Firmware' started by js.rossouw, Mar 21, 2008.

  1. js.rossouw

    js.rossouw LI Guru Member

    Hi,

    I'm from South Africa, and we've just woken up to this internet thing. Bandwidth is still quite expensive, and one of the ways in which to optimise costs, is to buy a seperate account that only caters for local traffic (around 10 times cheaper than international traffic).

    It's a pain to switch accounts every time I want to suft the net, and then switch back to continue my local downloads, so I've got something set up on my PC that can direct traffic to the seperate accounts based on destination IP.

    The problem is, the scheme uses the PPPoE WAN Miniport thing in Windows, which contains the account details. This info needs to pass through my router to my modem with each connection. I use a minimum of two such accounts concurrently, so authenticating in the modem or router itself will not work.

    I've tried everything I could, and spent a week learning how to recover a bricked router, in the process.

    I've read about the PPPoE-relay feature in the special edition of DD-WRT, making me think that it's a special feature not normally included in routers. Can I get Tomato to do it?

    Thanks for the help!
    J
     
  2. js.rossouw

    js.rossouw LI Guru Member

  3. js.rossouw

    js.rossouw LI Guru Member

    Basically, I need to pass PPPoE account details through the router. Normally, the account details are entered into the router itself, under PPPoE internet connection.

    I need to not do that, and allow Windows to sign in from the PC, throught the router and modem, and to the ISP.

    All the firmware I've tried to use so far drop all PPPoE packets, and do not forward it to my ISP.

    I know it's possible to do, because my main router is a Billion 7300MA, and the default firmware allows you to do this.

    I bought the Linksys WRT54GL because I've heard such great things about the opensource firmware, but I never considered that this feature is so hard to come by.

    Can anyone help?
     
  4. mstombs

    mstombs Network Guru Member

    There's an opensource userspace program for pppoe relay, but you'd have to compile this yourself (from OpenWrt source?). But it seems as though you don't need the NAT router functionality of the WRT54GL, so what happens if you change it from "Gateway" mode to "Router" mode?
     
  5. js.rossouw

    js.rossouw LI Guru Member

    YOU ARE A FRIGGIN' GENIUS!!!

    I can now authenticate over the wireless link! Can you give me a quick rundown of what the differences are between router and gateway? Wikipedia is great at telling me what they are used for, but not so great at telling me what they are NOT good for.

    My original plan was to put my modem/router in bridge mode, and use a second Linksys router as the main router for my home. Would this router/gateway thing still work if there is then no "gateway" in the network?

    I may have to draw a picture for this...

    My main problems are sorted though, so thanks a lot!
     
  6. mstombs

    mstombs Network Guru Member

    I always have think these names are the wrong way around, but there is some sense...

    In "Gateway" mode the router is a NAT router, keeps WAN and LAN separate, tracks all connections and appears as a single "gateway" device from the outside world. This is implemented using the Linux netfilter package configured using iptables commands.

    In "Router" mode, the router simply routes and does no nat translation (leaves source and destination addresses alone). It is easy to see how directed packets can just be passed on, broadcast messages such as dhcp often need proxy/relay services.

    Tomato seems to disable the iptables/netfilter firewall completely in Router mode. There are other threads suggesting some firewall ability would be useful, and certainly could be added.

    You need a nat router if you want to share a single internet connection amongst a number of clients. I don't know how multiple pppoe accounts work - do they all get a different IP address? I know some ADSL routers have the ability to make up to 8 pppoe connections (or is it pvcs?) and there was a user over on Routertech asking about using the adsl router to do route selection for specific hosts in a similar manner to that you describe

    http://www.routertech.org/viewtopic.php?t=1148
    http://www.routertech.org/viewtopic.php?t=1394
     
  7. js.rossouw

    js.rossouw LI Guru Member

    Very interesting. I'll try to follow what he did, but it doesn't look like he posted his results...

    Just for the heck of it, I'm uploading what I want my home setup to be. Currently, I'm using the Billion as both the modem and router at the main PC. With your help, I've now got the remote PC to connect over the wireless link.

    The next step would be to add another Linksys (as per the picture). The idea behind that would be to add another layer of seperation between me and the internet (and also between the risk of lightning strikes on the telco line and my PC).

    But from what you've described, if I put the Linksys in, I'd have to run the main router in router mode as well, and that would actually DECREASE my protection, right?

    Hmmm... not sure if further tinkering is going to be very fruitful. From your experienced background, would you say a properly configured router/modem unit is adequate, or would you prefer to seperate them?
     

    Attached Files:

  8. js.rossouw

    js.rossouw LI Guru Member

    And, yes, I get a different IP with every connection. Even if I use the same account to login at the same time from the two PCs (the ISP allows a limited number of simultaneous connections).

    J
     

Share This Page