Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Oct 1998 19:50:14 -0400
From:      Chris Johnson <cjohnson@palomine.net>
To:        freebsd-small@FreeBSD.ORG
Subject:   PicoBSD router/natd/ipfw
Message-ID:  <19981012195014.A28161@palomine.net>

next in thread | raw e-mail | index | archive | help

I've got the router version of PicoBSD running, and I've configured de0 and
de1. What I'm trying to do is run natd to masquerade my private LAN over my
public IP address.

This is my first experience with natd (I currently use Linux masquerading).
Here's what I did:

natd -n de0 (de0 is the interface connected to the outside world).
ipfw -f flush
ipfw add divert natd ip from any to any via ed0

The last line results in:
ipfw: setsockopt(IP_FW_ADD): Invalid argument

I'm reasonably certain that my divert command was correct, so I suspect that
there may be a problem with ipfw in PicoBSD 0.41 (not built from the same
source as the kernel?).

Can someone confirm these results, or can someone prove me wrong and tell me
what mistake I'm making?

Thanks!

Chris

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



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