Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2001 10:55:17 -0500 (CDT)
From:      Nick Rogness <nick@rogness.net>
To:        Peter & Shannon <munchkin@lks.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Routed and Natd
Message-ID:  <Pine.BSF.4.21.0104301037470.77575-100000@cody.jharris.com>
In-Reply-To: <00fe01c0d178$6ad50540$7a493ad8@lee>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <nick@rogness.net>
 - 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0104301037470.77575-100000>