On 12/09/03  Oliver Lange wrote:

> Hi everyone,
> 
> On the gentoo documentation page, i'm missing a guide about
> pppoe. The x86 installation guide coverage is very short there..
> 
> If anyone would like to write a pppoe guide, it should cover
> at least the following topics. I can only talk about the
> setup I intend to use, but i guess it might be useful
> for many other users, too.
> 
> Let's assume that I'm using eth0 for the LAN and eth1 for
> the DSL modem.
> 
> The x86 installation guide describes how to connect to the
> internet using adsl-setup / adsl-start, which worked fine
> so far, but:
> 
> 1. after booting the fresh installed gentoo box (which shall
>     act as router/gateway), exactly which packages do i need
>     to emerge ?

The only thing you need is rp-pppoe, which should be installed before
you reboot or you won't have a network connection.

> 2. As far as i understood, i need *not* to add eth1 to the default
>     runlevel using 'rc-update eth1 default' because pppoe will
>     do everything for me ?

correct.

> 3. What's the name of the config file which i need to setup
>     the MTU for eth1 to 1500, and how do i setup the MTU on all
>     other hosts in my LAN to 1452 ? I need the name of the
>     config files and the right parameter descriptions.
>     What about the MTU value for eth0 on the router ?

/etc/ppp/pppoe.conf, it has comments explaining all settings.

> 4. My current provider sucks (German t-online), it drops the
> connection
>     each 24 hours, so i need an automatic re-connection cron script
>     which checks if the connection is still up, and re-connects
>     if my provider pulled the plug again.

rp-pppoe does that itself, no need for a cronjob.

> 5. After each new connection, i need to execute a script for
>     updating my dyndns aliases (i've got a dynamic ip), and
>     probably I also need to restart ntpd. So: howto exec a
>     post-connect script ?

again no need for that, most dyndns clients monitor the connection and
update the DNS entry when the IP adress was changed.

> 6. Which packages do i need to emerge for setting up my router
>     as a router ? Then, how to configure simple routing ?

net-firewall/iptables, see docs at www.netfilter.org.

> 7. Firewalling is a different topic; I think one can use one of
>     the guides at tldp.org, which also covers advanced routing
>     techniques, like traffic limiting/shaping for smoother browsing
>     (while some host is downloading at full speed), etc.
>     So the pppoe guide would not have to cover these topics,
>     but it should at least cover questions 1-6 in detail.

I don't see the need for an extra guide, installing rp-pppoe and running
adsl-setup should cover everything necessary for the network connection.
Installing and configuring ddclient (or another dyndns client) and NAT
routing are also very basic steps, so the whole guide would only be one
or two paragraphs.

MfG Marius

-- 
Public Key at http://www.genone.de/info/gpg-key.pub

In the beginning, there was nothing. And God said, 'Let there be
Light.' And there was still nothing, but you could see a bit better.

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to