From owner-freebsd-hackers Wed Nov 15 16:34: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from Awfulhak.org (tun.AwfulHak.org [194.242.139.173]) by hub.freebsd.org (Postfix) with ESMTP id 1214E37B4C5 for ; Wed, 15 Nov 2000 16:34:02 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.1/8.11.1) with ESMTP id eAG0WVF23430; Thu, 16 Nov 2000 00:32:31 GMT (envelope-from brian@hak.lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.1/8.11.1) with ESMTP id eAG0Ws526758; Thu, 16 Nov 2000 00:32:54 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200011160032.eAG0Ws526758@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: "Renaud Waldura" Cc: "Brian Somers" , hackers@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: PPPoE w/ nat auto fragmentation hack? (use tcpmssd port) In-Reply-To: Message from "Renaud Waldura" of "Wed, 15 Nov 2000 13:48:49 PST." <000701c04f4d$d6e9da60$0402010a@biohz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 16 Nov 2000 00:32:54 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Maybe I'm just being boneheaded, but... > > > ! sudo ipfw add 40000 divert 12345 all from any to any via INTERFACE > > ! sudo /usr/local/bin/tcpmssd -p 12345 -i INTERFACE > > I was under the (tested & confirmed) impression that programs executed by > ppp are run under uid 0. Eg. I don't use "sudo" but the ipfw rule is added > anyway, and tcpmssd is run as root. > > But maybe a sudo environment brings something else? That could explain a lot > right there. > > --Renaud ppp will run programs as the user id that invoked ppp rather than using the effective user id (ie, it runs things as *you*, not *root*). AFAIK, sudo will not muck about with your environment.... A good ``first step'' is to run ! sh -c "/usr/local/bin/tcpmssd -p 12345 -i INTERFACE >/tmp/log 2>&1" so that you can get to see any error messages - ppp redirects I/O to /dev/null by default. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message