From owner-freebsd-stable Mon Apr 1 5: 7:58 2002 Delivered-To: freebsd-stable@freebsd.org Received: from www.fellownet.org (cp184099-a.venra1.lb.nl.home.com [213.51.186.212]) by hub.freebsd.org (Postfix) with ESMTP id DA3E137B41C for ; Mon, 1 Apr 2002 05:07:48 -0800 (PST) Received: from bavaria (bavaria.fellownet.org [10.0.0.2]) by www.fellownet.org (8.11.6/8.11.6) with SMTP id g31D7kY00126 for ; Mon, 1 Apr 2002 15:07:47 +0200 (CEST) (envelope-from bob@fellownet.org) Message-ID: <000801c1d97e$389cee80$0200000a@bavaria> From: "Bob Kersten" To: Subject: natd problems Date: Mon, 1 Apr 2002 15:00:53 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have a problem getting natd to work. This is the situation: i have a freebsd machine with one network interface card which is connected to the internet through a hub. I have a second machine with one network interface card which runs xp and i want to get on the internet with this xp machine through the freebsd machine. I can get on the internet on the freebsd machine, so that works as it should. Now i want to assign a second IP adres (10.0.0.1) to the FreeBSD machine. The XP machine has 10.0.0.2 and i want it to use 10.0.0.1 as gateway, but that doesn't seem to work. I can't ping 10.0.0.1 on the xp machine. Here's my rc.conf: defaultrouter="213.51.184.1" gateway_enable="YES" hostname="buffy.fellownet.org" ifconfig_de0="inet 213.51.186.212 netmask 255.255.252.0" ifconfig_de0="alias 10.0.0.1 netmask 255.255.255.0" firewall_enable="YES" firewall_type="OPEN" natd_enable="YES" natd_interface="de0" natd_flags="-redirect_address 213.51.186.212 0.0.0.0" inetd_enable="YES" named_enable="YES" kern_securelevel_enable="NO" nfs_reserved_port_only="YES" sendmail_enable="YES" sshd_enable="YES" With this rc.conf it isn't even possible to get on the internet on the FreeBSD machine, because it says that it is routing all packages to 10.0.0.1, but it should route all packages to 213.51.186.212. If I reverse the two ifconfig statements: ifconfig_de0="inet 10.0.0.1 netmask 255.255.255.0" ifconfig_de0="alias 213.51.186.212 netmask 255.255.252.0" Than i CAN get on the internet on the FreeBSD machine, because it is routing all packages to 213.51.186.212. But then 10.0.0.1 is unreachable from the XP machine. What am I doing wrong here? Thnx, Bob. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message