From owner-freebsd-net Sat Apr 10 7:37: 5 1999 Delivered-To: freebsd-net@freebsd.org Received: from mail.dynamixweb.com (host01.dynamixweb.com [209.47.109.194]) by hub.freebsd.org (Postfix) with ESMTP id 17F141508F for ; Sat, 10 Apr 1999 07:37:01 -0700 (PDT) (envelope-from svetzal@icom.ca) Received: from blazer (cr609409-a.pr1.on.wave.home.com [24.112.98.34]) by mail.dynamixweb.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2232.9) id 2G6LC0GH; Sat, 10 Apr 1999 10:38:00 -0400 From: "Steven Vetzal" To: "'Que Hongyu'" Cc: Subject: RE: NAT help Date: Sat, 10 Apr 1999 10:37:20 -0400 Message-ID: <000001be835f$a46a1520$7ffea8c0@blazer.pr1.on.wave.home.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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