From owner-freebsd-hackers Wed Dec 4 07:42:06 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA16754 for hackers-outgoing; Wed, 4 Dec 1996 07:42:06 -0800 (PST) Received: from smtp-gw01.ny.us.ibm.net (smtp-gw01.ny.us.ibm.net [165.87.194.252]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id HAA16723 for ; Wed, 4 Dec 1996 07:42:02 -0800 (PST) Received: (from uucp@localhost) by smtp-gw01.ny.us.ibm.net (8.6.9/8.6.9) id PAA107009 for ; Wed, 4 Dec 1996 15:41:56 GMT Message-Id: <199612041541.PAA107009@smtp-gw01.ny.us.ibm.net> Received: from slip166-72-229-228.va.us.ibm.net(166.72.229.228) by smtp-gw01.ny.us.ibm.net via smap (V1.3mjr) id smasrsC92; Wed Dec 4 15:41:41 1996 Reply-To: From: "Steve Sims" To: Subject: Userland PPP - IP Aliasing Date: Wed, 4 Dec 1996 10:41:32 -0500 X-MSMail-Priority: Normal X-Priority: 3 X-Mailer: Microsoft Internet Mail 4.70.1155 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.Org X-Loop: FreeBSD.org Precedence: bulk Some time back, Charles Mott posted some changes to iij-ppp that provides IP-Address masquerading to permit a dial-up PPP client to act as a neutered gateway for other locally-connected nodes to connect through the dial-out line. His changes were based on 2.1.5 code and I contacted him to determine if these changes were ever rolled into the -CURRENT code base. My note to him: ===== Steve Sims wrote: > Charles, > > I've stumbled into your PPP masquerading patches and I am intrigued > by what I see. > > (I haven't actually built the userland ppp with the changes, since I'll have > to grok the differences between your patches, the 2.1.5 base code and the 3.0 > code I've got.) > > I'm running -CURRENT and I notice that this (welcome) hack has not been > merged with the tree. Before I hurl a potential Molotov Cocktail into > -hackers, I wonder if it has already been discussed unto death about mapping > the masquerading functions into the -RELEASE || -CURRENT trees. > > Anyway, any word on adding your changes to the src tree? > And his reply: ===== Charles Mott penned: > Hi, Steve, > > I am new to the FreeBSD community, and I have not added my opinions as to > whether the code I have written should be added to the source tree. From > looking at the newsgroup postings, I would suggest that it be done in such > a way that packet aliasing (IP masquerading) is enabled by a "-alias" in > the command line. That way, the same ppp.conf file can be used with or > without masquerading. > > You will find that the packet aliasing software (in alias.c, alias_db.c > and alias_ftp.c) hooks into the main code with three primary function > calls: initialization, incoming packet aliasing, and outgoing packet > aliasing. It should be fairly simple to link into the 3.0 code. > Differencing the base 2.1.5 code and my revised code will show that > merging is fairly simple. > > I certainly do not mind if you add the code to the source tree. There is > quite a demand for this function, and I have tried to make a sound > implementation. > > Charles Mott ======= I've taken a stab at rolling his changes into the -CURRENT code base and actually have a 3.0-CURRENT iij-ppp that works, masquerading and all. I haven't delved into adding this feature as a command-line option to ppp (i.e.: `ppp -alias [system name]` but it doesn't seem too hard to do so. So, my question is this: With whom should I work to have this added into the tree? I've been on the consumer side of FreeBSD for a LONG time, I guess it's time to contribute something back - now how to proceed? I have DIFF's of the 3.0 code base before- and after- making the aliasing changes, but I don't know what to do with them (except use 'em ;-). ...sjs...