Re: Question abt NATD

From: Peter Pentchev (roam@ringlet.net)
Date: 02/26/02


Date: Tue, 26 Feb 2002 14:12:39 +0200
From: Peter Pentchev <roam@ringlet.net>
To: "Ilya V. Serov" <serov@telecom.lek.ru>


On Tue, Feb 26, 2002 at 01:24:36PM +0300, Ilya V. Serov wrote:
>
> How do You do, guies.
>
> Sorry in advance, if somebody will consider my question stupid.
>
> I have a FreeBSD 4.4-RELEASE box with natd configured to perfom ip
> maquarading. It is extreemly necessary to be able to view the NAT
> translation table. For I guess this info is stored somewhere to let
> the kernel know how to translate addresses, so I think it is possible to
> read this info from there. Have anyone done this "manulay", or maybe a
> standart routine is present to help to do this? I have studied many
> documentation sources, but found no hint on the topic.
> Can anyone help me?

As Tariq Rashid already explained, natd does not store the information
inside the kernel. Several of my machines use NAT via ppp(8)'s built-in
interface to libalias (which is functionally pretty much the same
as natd(8)), and several months ago I wrote up a quick hack to libalias
and ppp(8) to display the list of currently masqueraded connections.
However, it turned out to be not all that useful, since there were some
issues with timing out connections, so I kind of let it rot.

If there is enough interest, I could resurrect it and post it for review
and suggestions for improvement.

G'luck,
Peter

-- 
Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
I am the meaning of this sentence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Relevant Pages

  • FreeBSD Status report for Oct-Dec 2003
    ... Bluetooth stack for FreeBSD ... Not much to report. ... Bluetooth kernel modules appear to be stable. ... concerns and some src committers are willing to commit the patches. ...
    (freebsd-current)
  • FreeBSD Status Report for Oct-Dec 2003
    ... Bluetooth stack for FreeBSD ... Not much to report. ... Bluetooth kernel modules appear to be stable. ... concerns and some src committers are willing to commit the patches. ...
    (freebsd-hackers)
  • FreeBSD Status Report for Oct-Dec 2003
    ... Bluetooth stack for FreeBSD ... Not much to report. ... Bluetooth kernel modules appear to be stable. ... concerns and some src committers are willing to commit the patches. ...
    (freebsd-stable)
  • RE: FreeBSD 4.11 P13 Crash
    ... I do not want to jinx myself, but after back revving to FreeBSD 4.9 + ... think it is related to IPFilter in conjunction with 4 Intel nics and/or ... page fault while in kernel mode ... Okay this time my kernel was recompiled so there are no modules to ...
    (freebsd-hackers)
  • Re: 5.3 interrupt storm (atapicam) and I/O error
    ... attached you will find a copy of my custom kernel ... config which did work without any issue under FreeBSD ... The following hardware configuration *won't* cause ... * harddrive attached to IDE channel #1 ...
    (freebsd-questions)