From owner-freebsd-questions Sun Aug 31 04:13:47 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA01491 for questions-outgoing; Sun, 31 Aug 1997 04:13:47 -0700 (PDT) Received: from groa.uct.ac.za (groa.uct.ac.za [137.158.128.7]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id EAA01468 for ; Sun, 31 Aug 1997 04:13:33 -0700 (PDT) Received: from rv by groa.uct.ac.za with local (Exim 1.70 #1) id 0x57wg-00064Q-00; Sun, 31 Aug 1997 13:13:30 +0200 Subject: Problem with packet alias/natd To: freebsd-questions@freebsd.org Date: Sun, 31 Aug 1997 13:13:30 +0200 (SAT) X-Mailer: ELM [version 2.4 PL25] Content-Type: text Message-Id: From: Russell Vincent Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I am seeing an anomoly when using natd to do address translation. On a host (137.158.128.10): # ipfw a 88 divert 8888 tcp from 137.158.128.1 to 137.158.128.10 23 00089 divert 8888 tcp from 137.158.128.1 to 137.158.128.10 23 # natd -v -p 8888 -a 137.158.128.10 redirect_address 137.158.128.7 0.0.0.0 I read that as anything received from host 137.158.128.1 to 137.158.128.10:23 is diverted to natd, which translates the source address to 137.158.128.10 (the aliasing machine) and destination address to 137.158.128.7. The natd output after a telnet from 137.158.128.1 to 137.158.128.10: In [TCP] 137.158.128.1:1096 -> 137.158.128.10:23 aliased to 137.158.128.1:1096 -> 137.158.128.10:23 [ Repeated until I stop natd ] Try a different tactic by picking up the alias address from the interface (de): # natd -v -p 8888 -n de0 -redirect_address 137.158.128.7 0.0.0.0 In [TCP] 137.158.128.1:1100 -> 137.158.128.10:23 aliased to 137.158.128.1:1100 -> 137.158.128.7:23 Hmmm ... the interface address for de0 is the same as the '-a' address above (137.158.128.10). i.e: Neither of the above works, but I get different results. Am I doing something wrong or perhaps expecting too much from natd? Thanks -Russell