Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Dec 1997 01:48:45 +0000
From:      Brian Somers <brian@awfulhak.org>
To:        Chris Aubuchon <chrisa@commlet.com>
Cc:        questions@freebsd.org
Subject:   Re: natd/libalias question 
Message-ID:  <199712240148.BAA18064@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Tue, 23 Dec 1997 15:12:58 CST." <9712231512.aa08867@commlet.commlet.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Greetings,
> 
> 	Do the packet aliasing functions in libalias only work with private
> IP addresses?  10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16.

No - any addresses are fair game :-)

> 	I am setting up a firewall for our (as yet undelivered) internet line
> and my predecessors decided to make our interior network 126.0.0.0/24.  I plan
> on changing this but for testing purposes of natd & ipfw I have left these 
> alone.  It appears that libalias is not doing what is says it should.  I have
> natd started with -redirect_address 126.0.0.90 38.156.234.7 which according to
> the man pages for libalias & natd should allow outgoing requests from 126.0.0.90to appear as 38.156.234.7 and incoming requests for 38.156.234.7 to go to
> 126.0.0.90.
> 
> Here is my network setup:
> 
> 	126.0.0.90 Internal machine
> 	38.156.234.5 2.2.5-RELEASE with natd and ipfw running
> 		     ed1 connected to 126.0.0.0/24
> 		     ed0 connected to 38.156.234.0/24
> 	38.156.234.3 2.2.5-RELEASE 
> 
> I run natd like so on 38.156.234.5:
> 	natd -v -redirect_address 126.0.0.90 38.156.234.7 -n ed0
> 
> And I ping 38.156.234.3 from 126.0.0.90.  Ping gets packets from 38.156.234.3 
> but when I look at the output from natd I see:
> 
> Out [ICMP]	126.0.0.90 -> 38.156.234.3 aliased to
> 		38.156.234.5 -> 38.156.234.3
> In  [ICMP]	38.156.234.3 -> 38.156.234.5 aliased to
> 		38.156.234.3 -> 126.0.0.90
> 
> Now according to the manpages, the output above should have .5 replaced with
> .7
> 
> Any ideas?

Maybe the problem is that you're not quoting the argument to 
-redirect_address ?

> Chris Aubuchon
> chrisa@commlet.com
> 		

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712240148.BAA18064>