Date: Thu, 22 Jun 2000 19:50:07 +0300 From: Ruslan Ermilov <ru@sunbay.com> To: Brian Somers <brian@Awfulhak.org> Cc: Patrick Bihan-Faou <patrick@mindstep.com>, net@FreeBSD.org Subject: Re: "frag-anyways" knob. Message-ID: <20000622195007.C28777@sunbay.com> In-Reply-To: <200006211416.PAA33522@hak.lan.Awfulhak.org>; from brian@Awfulhak.org on Wed, Jun 21, 2000 at 03:16:56PM %2B0100 References: <ru@sunbay.com> <200006211416.PAA33522@hak.lan.Awfulhak.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--lEGEL1/lMxI0MVQ2 Content-Type: text/plain; charset=us-ascii On Wed, Jun 21, 2000 at 03:16:56PM +0100, Brian Somers wrote: > > > I'd tend to agree that a divert(4) daemon would be a far cleaner > > > solution. > > > > > If community wishes I would probably go over it and implement this as > > a divert(4) daemon. > > Cool ! > Here is a standalone daemon which "corrects" the MSS option for outgoing TCP SYN packets based on the supplied MTU value. If run with -v it will stay attached to its controlling terminal and show the changes made: : Script started on Thu Jun 22 19:36:16 2000 : perl# ipfw add 100 divert 1234 tcp from any to any out via rl0 setup : 00100 divert 1234 tcp from any to any out xmit rl0 setup : perl# /usr/local/sbin/tcpmssd -p 1234 -m 1492 -v : MSS: 1460 -> 1452 : ^C : perl# exit : Script done on Thu Jun 22 19:37:03 2000 Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --lEGEL1/lMxI0MVQ2 Content-Type: application/x-tar-gz Content-Disposition: attachment; filename="tcpmssd.tgz" Content-Transfer-Encoding: base64 H4sIAFhDUjkAA+1ZWXPbyBH2K/kr2vTGBmXe1rHRlYJISEJMkQwBWlatt7gQAIoogwALB22v V/nt+XoG4CHJ2icllVpNWcCgp6fv6e6hE3s+i2On/uIJB2039hoNekHU3Ntprr/z0SDaa7a2 t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szWDjlj w+rZ57EQWRBdsX9IRtxiDO0sr51rBF9KlK7Wy3EExmYhLcj2V1mLwnImYisrvExSFhAO0DIk k11zzlIgrPUrPCZzXBsTdhhCMKpk0EIJQbNPf0OrfYznp6C0XFljUMnpS/aF1Vlg+8kzcgde zVvtzZ0P5LRsRyU/TJzfMuwtaYoHCN3mF5LbrHaIjLB2ccVxL97VmUoCYfn7Av1SXfxK1blo Jqk64yvHJ9mxuV+9ROGIuH3+T5Xn8Tyex/N4Hs/jeTyP57Ex/gMN2gMGACgAAA== --lEGEL1/lMxI0MVQ2-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000622195007.C28777>