From owner-freebsd-questions Thu May 30 5:20:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from inord.no (oluf.et-n.no [213.161.160.12]) by hub.freebsd.org (Postfix) with ESMTP id E53F737B406 for ; Thu, 30 May 2002 05:19:53 -0700 (PDT) Received: from erik [213.161.168.206] by inord.no with ESMTP (SMTPD32-7.06) id A7E9BB601B2; Thu, 30 May 2002 14:15:37 +0200 From: =?iso-8859-1?Q?Erik_Paulsen_Sk=E5lerud?= To: Subject: natd + aliased IP's Date: Thu, 30 May 2002 14:19:09 +0200 Message-ID: <000001c207d4$36ebf610$cea8a1d5@erik> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 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 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 mtu 1500 options=3 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 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