Stand-a-lone NAT PGM

Matthew Emmerton matt at compar.com
Tue Jul 1 15:50:28 PDT 2003


> I have been looking for NAT program which is not part of some other
> program like NATD is part of IPFW or IPNAT is part of IPFILTER or
> NAT of user ppp. I can not find any NAT program in the FBSD ports
> collection unless I mis-understood some description.  If anybody
> knows of one please let me know. Yes I know that I can set firewall
> rule to pass all packets just to use NAT function, but I don't want
> overhead of firewall logic, just simple NAT like PPP NAT function
> with out the PPP stuff.

The reason you can't find a NAT program in the ports collection is because
such a program exists in the base system.
natd(8) is a front-end to the libalias(3) library, which implements generic
packet aliasing and masqerading functions (aka NAT).

> I was wondering if the NAT logic code from user ppp could be copied
> and made into stand-a-lone NAT program. My programming ability is
> not great so I am asking for opinions  on weather this is technical
> possible?  Thanks

Both ppp(8) and natd(8) use the libalias(3) library for NAT functionality.

--
Matt Emmerton



More information about the freebsd-questions mailing list