From owner-freebsd-questions Tue Dec 23 20:01:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id UAA07486 for questions-outgoing; Tue, 23 Dec 1997 20:01:09 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id UAA07479 for ; Tue, 23 Dec 1997 20:00:58 -0800 (PST) (envelope-from brian@awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.7/8.8.7) with ESMTP id BAA18064; Wed, 24 Dec 1997 01:48:45 GMT (envelope-from brian@gate.lan.awfulhak.org) Message-Id: <199712240148.BAA18064@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Chris Aubuchon cc: questions@freebsd.org Subject: Re: natd/libalias question In-reply-to: Your message of "Tue, 23 Dec 1997 15:12:58 CST." <9712231512.aa08867@commlet.commlet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 24 Dec 1997 01:48:45 +0000 From: Brian Somers Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > 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 , , Don't _EVER_ lose your sense of humour....