[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Home network with Debian

On Thu, Dec 28, 2000 at 06:39:46PM -0800, Bob Nielsen wrote:
> On Thu, Dec 28, 2000 at 07:22:23PM -0700, JD Kitch wrote:
> > I've been running Debian Potato\Progeny for some time now, with a
> > single nic attached to cable modem.  I'm also running an ipchains
> > firewall.  I have added a second nic, which I would like to connect
> > the wife's windows machine to, and have my debian box do ip masq'ing
> > for the windows box.
> > 
> > I do already have the additional kernel module loading for the
> > second nic, and both are recognized.  Can anyone tell me how, or point
> > me to a reference on doing all this the Debian way?  I found a
> > pretty in depth howto based on Red Hat, but apparently the systems
> > are quite a bit different, and I could not make the translation.
> > I'm guessing I need to make changes to the files in /etc/network,
> > but I saw indications that these were setup by debian tools and
> > should not be hand edited.  Is there a config tool I can call to do
> > these changes?
> I have a similar setup to yours and edited /etc/network/interfaces to
> add the address, netmask and broadcast address for my second ethernet
> card.  After doing this running (as root) '/etc/init.d/networking
> restart' should initialize the interfaces.  For masquerading, you need
> to make sure your kernel has firewall, ip firewall and ip masquerade
> support included.  I compiled these into the kernel instead of using
> modules, but that should work as well.  If you install the ipchains
> package, it should set up a reasonable set of firewall rules for you.

Is that the only file that needs to be changed?  How do I determin
the IP, netmask, and gateway for eth1, and then for the internal


Reply to: