freebsd-nq/sbin/natd
Archie Cobbs eed2b804bf When incrementing through a SIOCGIFCONF list, enforce a lower limit of
sizeof(ifr->ifr_addr) for the variable length field ifr->ifr_addr.sa_len.
Otherwise the increment will be wrong in certain cases.

Obtained from:  Whistle source tree
For the record: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> suggests
                SIOCGIFCONF should be dropped in favor of a sysctl mechanism.
1999-06-05 05:55:07 +00:00
..
samples Typo of `same_ports' directive. 1999-04-24 01:42:44 +00:00
HISTORY Upgrade (almost) to natd 2.0b1 1999-03-07 18:23:56 +00:00
icmp.c Upgrade (almost) to natd 2.0b1 1999-03-07 18:23:56 +00:00
Makefile Upgrade (almost) to natd 2.0b1 1999-03-07 18:23:56 +00:00
natd.8 /sbin/natd portrange documentation and bugfix 1999-05-13 16:58:31 +00:00
natd.c When incrementing through a SIOCGIFCONF list, enforce a lower limit of 1999-06-05 05:55:07 +00:00
natd.h Add `const's that I forgot to commit. Not bad - I broke 1999-03-26 07:13:12 +00:00
README - Buffer space problem found by Sergio Lenzi <lenzi@bsi.com.br> 1997-08-10 21:55:52 +00:00

	A Network Address Translation Daemon for FreeBSD


1. WHAT IS NATD ?

	This is a simple daemon based on FreeBSD divert sockets
	which performs network address translation (or masquerading)
	for IP packets (see related RFCs 1631 and 1918).
	It is based on packet aliasing package (see README.alias)
	written by Charles Mott (cmott@srv.net).

	This package works with any network interface (doesn't have
	to be ppp). I run it on a computer having two ethernet cards,
	one connected to internet and the other one to local network.

2. GETTING IT RUNNING

	1) Get FreeBSD 2.2 - I think the divert sockets are
	   not available on earlier versions,

	2) Compile this software by executing "make".

	3) Install the software by executing "make install".

	4) See man natd for further instructions.

3. FTP SITES FOR NATD

	This package is available at ftp://ftp.suutari.iki.fi/pub/natd.

4. AUTHORS

	This program is the result of the efforts of many people
	at different times:

	Archie Cobbs <archie@whistle.com>	Divert sockets
	Charles Mott <cmott@srv.net>		Packet aliasing engine
	Eivind Eklund <eivind@dimaga.com>	Packet aliasing engine
	Ari Suutari <suutari@iki.fi>		Natd
	Brian Somers <brian@awfulhak.org>	Manual page, glue and
						bunch of good ideas.
				
	The original package written by Charles Mott 
	is available at http://www.srv.net/~cmott.
	It is described in README.alias.

	Happy Networking - comments and fixes are welcome!

	Ari S.	(suutari@iki.fi)