Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2001 23:21:9 -0800
From:      Tao Huang <m0th@dcs.shef.ac.uk>
To:        freebsd-questions@freebsd.org <freebsd-questions@freebsd.org>
Subject:   Anybody try to use ipnat on two alias IP of one adaptor card???
Message-ID:  <3573F7B56BC@broadstone.shef.ac.uk>

next in thread | raw e-mail | index | archive | help
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




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