From owner-freebsd-questions Wed Jul 11 15:11:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailhub1.shef.ac.uk (mailhub1.shef.ac.uk [143.167.1.9]) by hub.freebsd.org (Postfix) with ESMTP id 452D237B406 for ; Wed, 11 Jul 2001 15:11:34 -0700 (PDT) (envelope-from m0th@dcs.shef.ac.uk) Received: from broadstone.shef.ac.uk ([143.167.23.251]) by mailhub1.shef.ac.uk with esmtp (Exim 3.22 #4) id 15KSCj-00016q-00 for freebsd-questions@freebsd.org; Wed, 11 Jul 2001 23:11:33 +0100 Received: from BROADSTONE/SpoolDir by broadstone.shef.ac.uk (Mercury 1.48); 11 Jul 01 23:11:32 +0100 Received: from SpoolDir by BROADSTONE (Mercury 1.48); 11 Jul 01 23:11:20 +0100 Received: from smip (143.167.251.194) by broadstone.shef.ac.uk (Mercury 1.48); 11 Jul 01 23:11:18 +0100 Date: Wed, 11 Jul 2001 23:21:9 -0800 From: Tao Huang Reply-To: m0th@dcs.shef.ac.uk To: freebsd-questions@freebsd.org Subject: Anybody try to use ipnat on two alias IP of one adaptor card??? X-mailer: FoxMail 3.1 [eg] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <3573F7B56BC@broadstone.shef.ac.uk> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have one adaptor card xl0 which's ip address is: 143.x.x.100/24 Then I use alias to add one more IP address to xl0 by: ifconfig xl0 inet 143.x.x.101 netmask 255.255.255.255 alias then I use IPNAT to creat a NAT between 100 and 101by: echo "bimap xl0 143.x.x.100/32 -> 143.x.x.101/32" | ipnat -f - and then when I telnet to another computer I can find that I am using 143.x.x.101and when I use ipnat -l to check the active NAT list, there is a active list for 100 <--> 101 which means the application "telnet" use 143.x.x.100 to send the packet and then the packet is changed by IPNAT to 143.x.x.101. In this case, everything is ok. But there are something wrong in the case below........ 1. Look 143.x.x.100 as the external interface and 101 as the internal interface. so the command for IPNAT is: echo "bimap xl0 143.x.x.101/32 -> 143.x.x.100/32" | ipnat -f - When I creat this NAT mapping, I can ping to other computer such 143.x.x.1 but can't telnet to it. when I check the active NAT mapping, there is a active mapping for 143.x.x.101 <--> 143.x.x.100. But the application such telnet or ftp still can't success..............WHAT'S THE MATTER WITH IT??? And also, if I alias a IP address which is in the different subnet with 143.x.x.100, such as: ifconfig xl0 inet 202.x.x.101 netmask 255.255.255.0 alias and then do the same test for the IPNAT, also PING is ok but TELNET or FTP isn't success....... Anybody can give me some advise????????????? Cheers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message