From owner-freebsd-questions Mon Oct 5 19:01:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA01622 for freebsd-questions-outgoing; Mon, 5 Oct 1998 19:01:10 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA01593 for ; Mon, 5 Oct 1998 19:01:01 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (root@woof.lan.awfulhak.org [172.16.0.7]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id XAA09011; Mon, 5 Oct 1998 23:57:45 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from woof.lan.awfulhak.org (brian@localhost [127.0.0.1]) by woof.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id XAA02999; Mon, 5 Oct 1998 23:56:34 +0100 (BST) (envelope-from brian@woof.lan.awfulhak.org) Message-Id: <199810052256.XAA02999@woof.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: "Alexey V.Vinogradov" cc: freebsd-questions@FreeBSD.ORG Subject: Re: about natd In-reply-to: Your message of "Mon, 05 Oct 1998 19:15:22 +0300." <199810051615.TAA05589@Sun.Farlep.Net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 05 Oct 1998 23:56:33 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello, All. > I have: > __________ > | | > vx0 | | vx1 > -----| |--- > | | > |__________| > > at vx0 i have Internet IP N1.N2.N3.N4/N5 > at vx1 i must do Public Network 192.168.M1.0/M2 > Now i do: > - compile kernel with IPDIVERT & IPFIREWALL > - enable gateway > - ifconfig vx1 192.168.M1.1/24 > - running natd -n vx1 > ...and routing not work ;( > > What i do incorrect? The ``192.168.M1.0'' is a private network - there are no such Internet numbers. You need to run natd -n vx0 (running on the Internet interface, *not* the private one). >From the man page: -n | -interface interface Use interface to determine the alias address. If there is a possibility that the IP number associated with interface may change, the -dynamic flag should also be used. If this op- tion is not specified, the -a or -alias_address flag must be used. The specified interface must be the public network interface. ^^^^^^ > --- > Farlep-Internet. > Alexey V.Vinogradov > System Administator. > e-mail: alexv@farlep.net > phone: +(380)-482-210706 > > AVV5-RIPE -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message