Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Apr 1999 10:37:20 -0400
From:      "Steven Vetzal" <svetzal@icom.ca>
To:        "'Que Hongyu'" <qhy@hw.ia.ac.cn>
Cc:        <freebsd-net@freebsd.org>
Subject:   RE: NAT help
Message-ID:  <000001be835f$a46a1520$7ffea8c0@blazer.pr1.on.wave.home.com>
In-Reply-To: <Pine.BSF.4.05.9904102138260.5394-100000@freebsd.hanwang.com.cn>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Greetings,

I've never used natd with an alias - does this work?

I always make sure I've got some bpf's in the kernel:

pseudo-device bpfilter 4

make sure you've got natd in your /etc/services

natd	8668/divert

make sure you've started natd (8^)

And you've got additional firewall rules like

$fwcmd add 100 pass all from any to any via lo0
$fwcmd add 200 deny all from any to 127.0.0.0/8
$fwcmd add 65000 pass all from any to any

Of course, this is basic nat stuff, and you probably know all this
already... I'd be interested to see if you can make this work with an alias.

Steve


-----Original Message-----
From: owner-freebsd-net@FreeBSD.ORG
[mailto:owner-freebsd-net@FreeBSD.ORG]On Behalf Of Que Hongyu
Sent: April 10, 1999 9:44 AM
To: net@FreeBSD.ORG
Subject: NAT help


Hi, I am using 3.1-RELEASE and want to use NAT.
here is my situation:
I have only one net card with primiary IP: 159.226.21.172/255.255.255.192
  I add alias to it, 10.1.1.1/24.
  then I want to NAT 10.1.1.0/24 to outside internet.

After reading some document, I have tried add
options IPFIREWALL
options IPDIRVERT
options IPFIREWALL_DEFAULT_TO_ACCEPT

plus,

ipfw add divert all from any to any via ed1

But It does not work , can anyone give me some hints?

Thanks

Que Hongyu





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



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




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?000001be835f$a46a1520$7ffea8c0>