Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2004 14:32:46 -0700
From:      "Darren Pilgrim" <dmp@bitfreak.org>
To:        "'freebsder'" <freebsder51@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Freebsd 5.1 <-> Win XP Networking problems
Message-ID:  <001001c46920$f347b790$152a15ac@spud>
In-Reply-To: <20040713200422.36735.qmail@web52502.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: freebsder [mailto:freebsder51@yahoo.com] 
> 
> Hi Dave,
> 
> I've changed the rc.conf as per you suggestion see
> below.
> Do I also need to change the
> natd_flags="redirect_port tcp 192.168.0.3:80 80"
> to
> natd_flags="redirect_port tcp 192.168.1.0:80 80"
> ??

See below.  You need to correctly renumber your LAN first.  The
redirect_port option is going to be the IP address you assign to the
internal interface of myserver.

> Are there any other similar modifications that need to
> be made somewhere?

That depends on what you changed and what you have running on myserver and
how you configured them.  Any configuration setting that has an IP address
of one of your machines will need to be changed.

> 	ifconfig_ed0="inet 192.168.1.0/24  netmask 255.255.0.0"
> 	ifconfig_vr0="inet 192.168.0.0/24  netmask 255.255.0.0"

192.168.1.0/24 and 192.168.0.0/24 are blocks of addresses in CIDR notation,
not the actual addresses to be fed to ifconfig.  You need to pick addresses
within the netblock to use for myserver and all the other machines on your
network.  Since myserver can reach the internet just fine, you should keep
the IP address for vr0 the same, just lengthen the netmask to allow the use
of 192.168.1.0/24 on the LAN.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001001c46920$f347b790$152a15ac>