Re: Avoiding natd overhead



At 03:58 AM 10/21/2006, Matthew D. Fuller wrote:

Paolo Pisati's 2005 SoC work on integrating libalias into ipfw might
fit here. It should move the NAT'ing into the kernel and save all the
context switches and copies, and (what has me more interested) make it
much easier to change port forwarding and other rules.

That would be excellent. NAT really belongs in the kernel, with a
userland control and monitoring utility similar to the ones that manage
kernel PPP in many UNIX-like OSes.

The worst
thing about natd for me isn't performance, it's that I have to blow
away all the state to change anything.

Agreed. Also, more than once I've locked myself out of a machine when
trying to restart NAT with a different configuration; it would be
nice to be able to change just the parameters I needed to change.
I'd love to be able to look at the translations that are generated on
the fly in the same way that one can look at other dynamic rules.
This is especially true for some of the more arcane forms of NAT
(e.g. PPTP passthrough, in which PPTP session numbers are mapped
to avoid collisions) which can be hard to debug when something goes
worng.

--Brett

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: [Going nuts] Cant share the connection to the Internet
    ... Have you configured and re-compiled your FreeBSD kernel to support NAT? ... Kernel configuration is covered in chapter 8 of the FreeBSD Handbook ...
    (comp.unix.bsd.freebsd.misc)
  • Re: nat and firewall
    ... This is two different ways to do NAT. ... kernel vs daemon. ... I found the reason for that might be the following CVS commit message: ... which got commited to RELENG_7 and HEAD only (explains why it doesn't ...
    (freebsd-questions)
  • Re: [Going nuts] Cant share the connection to the Internet
    ... > Have you configured and re-compiled your FreeBSD kernel to support NAT? ... What you are trying to do is have your LAN on the NAT network ...
    (comp.unix.bsd.freebsd.misc)
  • RE: Question abt NATD
    ... natd does not use the kernel for NAT - it is a user land process and uses ... Subject: Question abt NATD ... It is extreemly necessary to be able to view the NAT ... with "unsubscribe freebsd-security" in the body of the message ...
    (FreeBSD-Security)
  • Re: FreeBSD firewall, nat, kernel
    ... On 6/13/06, fbsd wrote: ... To get NAT functionality from IPFW you need to add 'option divert' to your ... kernel configuration file and recompile. ... The handbook Firewall chapter indicates to compile Firewall if you ...
    (freebsd-questions)