From owner-freebsd-hackers Wed Nov 15 13:48:55 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ebola.biohz.net (ebola.biohz.net [206.80.1.35]) by hub.freebsd.org (Postfix) with ESMTP id D3F7C37B4C5 for ; Wed, 15 Nov 2000 13:48:50 -0800 (PST) Received: from flu (localhost [127.0.0.1]) by ebola.biohz.net (Postfix) with SMTP id 224FC3A3CB; Wed, 15 Nov 2000 13:48:50 -0800 (PST) Message-ID: <000701c04f4d$d6e9da60$0402010a@biohz.net> From: "Renaud Waldura" To: "Brian Somers" Cc: References: <200011150143.eAF1hQF04103@hak.lan.Awfulhak.org> Subject: Re: PPPoE w/ nat auto fragmentation hack? (use tcpmssd port) Date: Wed, 15 Nov 2000 13:48:49 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 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 ----- Original Message ----- From: Brian Somers To: FengYue Cc: Renaud Waldura ; Ruslan Ermilov ; ; Sent: Tuesday, November 14, 2000 5:43 PM Subject: Re: PPPoE w/ nat auto fragmentation hack? (use tcpmssd port) > > > > On Tue, 14 Nov 2000, Renaud Waldura wrote: > > > > ->Dear hackers, > > -> > > ->> What exactly does not work? > > ->> What does the option -l do? > > -> > > ->When launched automatically by ppp, tcpmssd doesn't get any of the packets > > ->and is useless. When I start it manually from the command line, it works > > ->fine. > > -> > > ->I realize this isn't much in the way of helpful debugging information, and > > ->was hoping to further define this: I implemented that "-l" option to log all > > ->the packets processed by tcpmssd. I'm not even sure this bug applies to > > ->anybody else, which is why I did not seek help or publicize it until now. > > -> > > ->Anyway, I haven't been able to figure out what the problem is (and am > > ->lacking time now). The best I have is this: when launched by ppp, tcpmssd > > ->never seems to return from the main select() call. Ruslan, if you feel like > > ->an account on the machine where I'm using this could help, just let me know > > ->and I will gladly give you one. > > > > It does not work for me either. Start the script in rc.local rather than > > ppp.linkup works fine. > > What are you doing in ppp.linkup ? > > When I add this: > > ! sudo ipfw add 40000 divert 12345 all from any to any via INTERFACE > ! sudo /usr/local/bin/tcpmssd -p 12345 -i INTERFACE > > everything seems to work ok.... > > -- > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message