From owner-freebsd-questions Mon Apr 30 7:45:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 0D4D237B423 for ; Mon, 30 Apr 2001 07:45:38 -0700 (PDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f3UFtIR77894; Mon, 30 Apr 2001 10:55:18 -0500 (CDT) (envelope-from nick@rogness.net) Date: Mon, 30 Apr 2001 10:55:17 -0500 (CDT) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Peter & Shannon Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Routed and Natd In-Reply-To: <00fe01c0d178$6ad50540$7a493ad8@lee> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 30 Apr 2001, Peter & Shannon wrote: > > The other problem I am getting is that any IP assigned to LINK1, with > the exception of the first address added from rc.conf, will not get > passed to the internal machine to which it is intended. I do not get > any LOG_DENY messages for requests sent to this address. In other > words, any ALIASed IP will not have it's packets forwarded to the > correct machine, but will instead be intercepted by the gateway. Are you seeing these packets come across your machine? Is your ISP routing these networks to your 1 public IP? > > 111.22.33 is the network belonging to the ISP, with an assigned IP of > 111.22.33.15 for this gateway. 111.22.44 is the Class C assigned to > the gateway. 111.22.43 is another network which I would like to set up > as a redundancy for routing and named, with an assigned IP of > 111.22.43.26 for this gateway. All networks are on the local ethernet. > 192.168.1.1 is the IP of the private interface (LINK2), with hosts > 192.168.1.10 and 192.168.1.30. Did you tell it what public address/port points to which private address/port in nat? It is appears below that you have it setup for use of the 1 public address of xl0, 11.22.44.2. > > Any help on this would be greatly appreciated. Below are the configs > and printouts from netstat -rn. I have changed all the real IPs to > fake ones, but the network layout remains the same. > > Running natd, routed, gatd and named with the following configurations: > %cat natd.conf > interface xl0 > #Redirect Traffic webserver > redirect_port tcp 192.168.1.10:23 xxx23 > redirect_port tcp 192.168.1.10:21 21 > redirect_port tcp 192.168.1.10:80 80 > redirect_port tcp 192.168.1.10:443 443 Tell it which address to use, eg: redirect_port tcp 192.168.1.10:80 111.22.33.15:80 > > %cat rc.conf > # This file now contains just the overrides from /etc/defaults/rc.conf > # please make all changes to this file. > gateway_enable="YES" > hostname="host.example.com" > defaultrouter="111.22.33.1" > ifconfig_xl0="inet 111.22.44.2 netmask 255.255.255.0 broadcast 111.22.33.15" Is this a typo or is the broadcast address really this? Nick Rogness - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message