Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2002 14:19:09 +0200
From:      =?iso-8859-1?Q?Erik_Paulsen_Sk=E5lerud?= <erik@pentadon.com>
To:        <freebsd-questions@freebsd.org>
Subject:   natd + aliased IP's
Message-ID:  <000001c207d4$36ebf610$cea8a1d5@erik>

next in thread | raw e-mail | index | archive | help
I have a server running 4.5-RELEASE-p6, it has two NIC's, fxp0 is the
world and xl0 is the LAN.

[erik@psi:~]$ ifconfig -a
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 213.161.176.118 netmask 0xfffffff0 broadcast
213.161.176.127
        inet 213.161.176.119 netmask 0xffffffff broadcast
213.161.176.119
        ether 00:90:27:1a:73:d4
        media: Ethernet autoselect (10baseT/UTP)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
        ether 00:01:02:a3:6d:83
        media: Ethernet autoselect (10baseT/UTP)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000

[erik@psi:~]$ ps aux | grep natd
root     11813  1.1  0.1   512  248  ??  Rs    1:50PM   0:25.57
/sbin/natd -s -m -a 213.161.176.118

[erik@psi:~]$ netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif
Expire
default            213.161.176.113    UGSc       28   852089   fxp0
127.0.0.1          127.0.0.1          UH          0      925    lo0
192.168.0          link#2             UC          1        0    xl0
192.168.0.10       0:0:e8:ea:c8:e     UHLW        1     5455    xl0
1179
213.161.176.112/28 link#1             UC          2        0   fxp0
213.161.176.113    0:6:d6:7:6a:40     UHLW       28        0   fxp0
106
213.161.176.118    0:90:27:1a:73:d4   UHLW        2     2390    lo0
213.161.176.119    213.161.176.113    UGHS        0       18   fxp0 =>
213.161.176.119/32 link#1             UC          0        0   fxp0

[root@psi:/home/erik]$ ipfw list
00100 divert 8668 ip from any to any via fxp0
65535 allow ip from any to any

With this setup, I cannot use the second IP as an alias
(213.161.176.119). Somehow, it gets back to 213.161.176.118 when I try
to use it. I use auth with inetd, with the default-reply "lan". If I try
to go on IRC with using the host 213.161.176.119, I come up on IRC as
nickname!lan@213.161.176.118. Is there something essential I've missed
here?

Erik.



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?000001c207d4$36ebf610$cea8a1d5>