From owner-freebsd-hackers Wed Jan 22 13:29:29 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA28586 for hackers-outgoing; Wed, 22 Jan 1997 13:29:29 -0800 (PST) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA28553 for ; Wed, 22 Jan 1997 13:28:59 -0800 (PST) Received: from awfulhak.demon.co.uk (localhost.coverform.lan [127.0.0.1]) by awfulhak.demon.co.uk (8.8.4/8.7.3) with ESMTP id VAA09799; Wed, 22 Jan 1997 21:24:42 GMT Message-Id: <199701222124.VAA09799@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: Charles Mott cc: Eivind Eklund , ari.suutari@carel.fi, hackers@freebsd.org Subject: Re: ipdivert & masqd In-reply-to: Your message of "Wed, 22 Jan 1997 13:46:18 MST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 22 Jan 1997 21:24:42 +0000 From: Brian Somers Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Brian, > > I am travelling right now (this is from a university terminal that I > stopped by). Regarding the IP checksum -- in version 1.8, I went > todifferential checksumming which will not work as I see it described > with one cirection of the divert socket. > > Definetly people should try to test Ari's natd, I think. I am still in > 2.1.0-R and therefore too backwrrads to test it. > > Charles Mott The masqd code now works. It passes the packet to PacketAlias{In|Out}() with a potentially zero'd ip_sum (PacketAliasIn() packets) and recomputes a zero sum afterwards. The only other thing needed was a call to SetAliasAddress(). Any feedback from people would be great - the code can be found on www.awfulhak.demon.co.uk. Perhaps it might be a good idea to make an "alias" library out of this stuff, that way, it can be ported to different environments easily. So far, the code written is rather trivial - it screams to be a library ! I'll write again when I've polished the code (and maybe written a man page). I havn't seen the natd code yet - I've seen reports that it's difficult to get to the web page it's on ;( However, I like masqd hugely as it's so simple. -- Brian , Don't _EVER_ lose your sense of humour....