Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 May 1997 21:00:56 +0200
From:      =?iso-8859-1?Q?=C5ge_R=F8bekk?= <aagero@aage.priv.no>
To:        freebsd-questions@freebsd.org
Subject:   IPDIVERT and natd in FreeBSD-2.2.1
Message-ID:  <19970518210056.35179@aage.priv.no>

next in thread | raw e-mail | index | archive | help
Has anyone got natd in ports from -current working on FreeBSD 2.2.1,
using IPDIVERT and IPFIREWALL in the kernel? I've been trying every
possible approach to this problem but to no avail. This host is on an
ethernet with two ethernet cards, 3c950 and 3c905.  The sole purpose
with this configuration is to allow hosts on the inside network to
connect to the outside network.

I've added IPDIVERT and IPFIREWALL as options i the kernel config
file, and configured ipfw to divert incoming traffic to a chosen port
and run natd on that particular port.

natd -verbose doesn't say anything either, but inspecting the divert
rule accounting figures with ``ipfw -a l'' after some time shows that
the kernel diverting mechanisms really are working.

I made a small program which basically did

  sock = socket(...,IPPROTO_DIVERT);
  bind(sock, ...);
  read(sock, buff, BUFSIZ);

but no data was ever read from the socket.  IP firewall divert rules
were present.

-aage



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970518210056.35179>