From owner-freebsd-questions@FreeBSD.ORG Mon Jul 12 01:54:10 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45E7516A4CE for ; Mon, 12 Jul 2004 01:54:10 +0000 (GMT) Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0916E43D58 for ; Mon, 12 Jul 2004 01:54:10 +0000 (GMT) (envelope-from infofarmer@mail.ru) Received: from [83.237.13.35] (port=8275 helo=SATPC) by mx2.mail.ru with smtp id 1Bjq1A-0007bn-00 for freebsd-questions@freebsd.org; Mon, 12 Jul 2004 05:54:08 +0400 Message-ID: <000e01c467b3$b07bd950$0111a8c0@SATPC> From: "Andrew" To: Date: Mon, 12 Jul 2004 05:58:12 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Kernel-level PPPoE server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2004 01:54:10 -0000 Hi! I'm fighting my way through manuals and mailing-list archives and I hope you won't mind a dumb question. I run FreeBSD4.10-Release and I want to set up a kernel-level PPPoE server. The problem is I can't find a way to make pppd work with pppoed. As you know, pppoed executes "exec /usr/sbin/ppp -direct label" by default, but it can be passed any other line to execute. Pppoed(8) says: "The child process will have standard input and standard output attached to the same netgraph(4) data socket (see ng_socket(4)) when started." Unfortunately, pppd has no analog of "direct" option for ppp. If we execute pppd without any tty_name, then it assumes "/dev/tty" and, as expected, exits after an error: "Failed to open /dev/tty: Device not configured". Since pppoed can execute any line, we can run any script or program before we invoke pppd. So, is there any way to open a pseudo-terminal that would connect to current standart input and standart output? Pppoed opens a pppoe connection via ng_pppoe and ng_socket, all we need for pppd to work is a device (tty) representing the data socket. Is there any other way to get pppd and pppoed working together? Is there any other way to set up a fast pppoe server under FreeBSD? Thanks, Andrew