From owner-freebsd-isdn Thu Nov 8 0:13:19 2001 Delivered-To: freebsd-isdn@freebsd.org Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by hub.freebsd.org (Postfix) with SMTP id 1F95637B419 for ; Thu, 8 Nov 2001 00:13:14 -0800 (PST) Received: (qmail 31452 invoked by uid 0); 8 Nov 2001 08:13:09 -0000 Received: from p3ee2161e.dip.t-dialin.net (HELO mail.gsinet.sittig.org) (62.226.22.30) by mail.gmx.net (mp010-rz3) with SMTP; 8 Nov 2001 08:13:09 -0000 Received: (qmail 85409 invoked from network); 7 Nov 2001 19:10:21 -0000 Received: from shell.gsinet.sittig.org (192.168.11.153) by mail.gsinet.sittig.org with SMTP; 7 Nov 2001 19:10:21 -0000 Received: (from sittig@localhost) by shell.gsinet.sittig.org (8.11.3/8.11.3) id fA7JAEj85342 for freebsd-isdn@freebsd.org; Wed, 7 Nov 2001 20:10:14 +0100 (CET) (envelope-from sittig) Date: Wed, 7 Nov 2001 20:10:14 +0100 From: Gerhard Sittig To: freebsd-isdn@freebsd.org Subject: Re: OT: pppoe Message-ID: <20011107201013.C39804@shell.gsinet.sittig.org> Mail-Followup-To: freebsd-isdn@freebsd.org References: <200111061334.fA6DYSQ10139@gilberto.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200111061334.fA6DYSQ10139@gilberto.physik.rwth-aachen.de>; from kuku@gilberto.physik.rwth-aachen.de on Tue, Nov 06, 2001 at 02:34:28PM +0100 Organization: System Defenestrators Inc. Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org [ the question is OT for -isdn, but the answer is mostly for the record :) ] On Tue, Nov 06, 2001 at 14:34 +0100, Christoph Kukulies wrote: > > Anyone using T-DSL under FreeBSD yet? > [ ... ] > I also have learnt that I need pppoe (PPP over Ethernet). Does anyone know > if that's working under FreeBSD? Yes, I'm using FreeBSD to connect to T-Online via T-DSL. And PPPoE support has been in FreeBSD's ppp(8) since 3.4. Although there are some things to watch out for: ----- `uname -a` ------------------------------------------------ FreeBSD dura.gsinet.sittig.org 4.3-STABLE FreeBSD 4.3-STABLE #1: Sun Jun 3 12:01:49 CEST 2001 root@dura.gsinet.sittig.org:/usr/obj/usr/src/sys/DURA i386 ----------------------------------------------------------------- ----- /etc/ppp/ppp.conf ----------------------------------------- # totally written anew, based on www.freebsd.de/handbook/pppoe.html # and the /usr/share/examples/ppp files # to avoid a warning default: allow users admin set device /dev/cuaa1 set server /var/run/ppp.server "" 0007 set log Phase set log +tun +command # set log +xxx ... # T-ISDN dsl in general tisdndsl: load default set device PPPoE:rl1 set server /var/run/ppp.tisdndsl "" 0007 mv tdsllink set mru 1492 set mtu 1492 set dial set login set hangup set ifaddr 10.0.1.1/0 10.0.1.2/0 255.255.255.252 0.0.0.0 add default HISADDR !bg /sbin/ipf -y set timeout 60 110 # set filter dial ... # set filter alive ... # T-Online speed in special tolspeed: load tisdndsl set authname "nnnnnnnnnnnnNNNNNNNNNNN#nnnn@t-online.de" set authkey "xxxxxxxx" ----- E O F ----------------------------------------------------- I introduced the sections to easier add more dialup accounts while reducing redundancy (before DSL I had several ISDN dialup connections). Maybe you want to think of them like you think of OO programming? Notice that all you have to do for your 1&1 setup is to add another section "derived" from tisdndsl and set your authname and authkey (and of course pass this account's name to ppp upon startup). # ----- /etc/ppp/ppp.linkup ------------------------------------- tolspeed: iface clear !bg /bin/sh -c "echo '...' > /dev/speaker" !bg /usr/bin/logger -t I4B-subsys "tol speed went up" !bg /root/bin/onlinetime tolspeed up # ----- E O F --------------------------------------------------- # ----- /etc/ppp/ppp.linkdown ----------------------------------- tolspeed: set ifaddr 10.0.1.1/0 10.0.1.2/0 iface clear !bg /bin/sh -c "echo '...' > /dev/speaker" !bg /usr/bin/logger -t I4B-subsys "tol speed went down" !bg /root/bin/onlinetime tolspeed down # ----- E O F --------------------------------------------------- $ grep ppp /etc/rc.conf ppp_enable="YES" ppp_mode="auto" ppp_nat="YES" ppp_profile="tolspeed" You want to read the ppp(8) manpage (no matter if you use my config as a template), doing "man -k pppoe" and looking at the "SEE ALSO" section had saved you from asking your question in the first place. And you might have asked the handbook first before bothering public lists. Things to tune further are the dial/alive filter rules, timeouts, maybe NAT mode but definitely log categories. Maybe you need some "ipf -y" in your /etc/ppp/ppp.link{up,down} scripts (see the recent discussion about this in the freebsd- mailing lists). virtually yours 82D1 9B9C 01DC 4FB4 D7B4 61BE 3F49 4F77 72DE DA76 Gerhard Sittig true | mail -s "get gpg key" Gerhard.Sittig@gmx.net -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message