Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Apr 2002 15:00:53 +0200
From:      "Bob Kersten" <bob@fellownet.org>
To:        <stable@freebsd.org>
Subject:   natd problems
Message-ID:  <000801c1d97e$389cee80$0200000a@bavaria>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801c1d97e$389cee80$0200000a>