<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
 Hurst wrote:
<blockquote TYPE=CITE>Tim Young wrote:
<br>> Woah.  We have two different understandings here.  Most
of the guys on this list
<br>> have been assuming that you were going to route through the Linux
box.  The Windows
<br>> chap you mentioned assumes you are going to have the XP box connected
directly to
<br>> the Internet via DSL or something (PPoE).
<p>Well, I had to compare notes. That was his advice, and if it's wrong
<br>I'll have to explain to him why. He's trying to learn BSD and Linux,
but
<br>has little time for it.</blockquote>

<p><br>Ok.  The quick bit of argument for it is that the Linux box
handles all the packet forwarding and the connection to the Internet. 
All the windows XP box needs is regular tcp/ip set up on it.  The
Linux box will handle the rest of it.
<br> 
<blockquote TYPE=CITE> 
<br>> The DHCP server would allow you to add multiple computers simply,
but it is not
<br>> imperative to have.
<p>Good, because it's a whole 'nother animal for me.
<p>> What you need:
<br>> 1) The unix box connecting to the Internet, dialing, etc.
<br>> 2) IP address assigned to the unix box.
<br>> 3) IP address assigned to the XP box.
<br>> 4) the Unix box set up to "route packets"
<br>> 5) a masquerading rule so that packets going from the XP box are
natted.
<br>> 6) I am assuming you have some firewalling on the unix box already...
<p>#1 - check
<br>#2 - Internally or dynamically from the ISP?</blockquote>
    The unix box will have two of them.  The one you
currently have via the dial-up which is dynamic.  The other on the
network card which is static (you assign it) On the webpage: <A HREF="http://www.lugbe.ch/lostfound/contrib/freebsd_router/">http://www.lugbe.ch/lostfound/contrib/freebsd_router/</A>
<br>this seems to be done with the following line in /etc/rc.conf:
<br><i>ifconfig_ep1="inet 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255</i>
<br> 
<blockquote TYPE=CITE> 
<br>#3 - Internally, I assume?</blockquote>
    That is correct.  The above line from the page
I gave you sets you up with an IP address 192.168.<b>1</b>.1.  Microsoft
windows uses 192.168.0.1 instead of 192.168.1.1.  I actually think
that following the directions as given is a good thing.  It is actually
benefitial to not have the same internal IP address as the rest of the
world.
<p>Your XP box should have a number that is close to the one on the unix
box.  192.168.1.2 woud work fine (or 192.168.0.2 if you go the MS
numbering route.)
<br> 
<p>#4 - I'm studying that right now.
<br>Seems to be done in the same file with:
<br>    <i># enable IP forwarding</i>
<br><i>    gateway_enable="YES"</i>
<br><i>    # enable firewall</i>
<br><i>    firewall_enable="YES"</i>
<blockquote TYPE=CITE> 
<br>#5 - Very simple on FreeBSD.</blockquote>
Good.
<blockquote TYPE=CITE> 
<br>#6 is quite true, and I'm using native IPFW for it.
<br> </blockquote>
Good stuff!  Looks like you should be up before long.
<br> 
<blockquote TYPE=CITE> 
<br>> (ARRRGGGG!!! I just did a lookup on the Internet to find what you
need.  People
<br>> seem to agree you will need a kernel recompile...  Yuck!)
<p>That's really an insignificant chore on FreeBSD.</blockquote>
It is fairly simple on Linux also, but most find it intimidating. 
I guess what is difficult about it is simply knowing how to do it, and
knowing what options to change.  So long as rebuilding the kernel
gives you the option to drop back to your old kernel, just in case, go
for it!
<p>Blessings,
<p>    - Tim Young</html>