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

Firewall or router



Hi. I've just got a laptop computer. I already have a two-computer
network running with a FreeBSD box doing NAT and firewalling, and a
Debian box behind it. I need to obtain means of connecting my notebook
to the 'net.

Because I'm too cheap to buy a hub, and also because I have a bunch of
networking cards lying around (that don't match), I put an extra NIC
into the Debian box and connected the laptop to it. The network works
fine. Laptop has IP 192.168.2.2, Debian box has IPs 192.168.2.1 (to
the laptop), and 192.168.1.2 (to the firewall). The FreeBSD box has an
IP of 192.168.1.1 on the inside, and a real IP on the outside.

My question is: what do I want to do with my Debian box so that the
laptop could talk to the 'net? As far as I understand, I just need to
configure it a router (to route all traffict from 192.168.2.2 through
192.168.1.1), correct?

Also, will I need to modify anything on my firewall? Do I need to add
a routing entry for 192.168.2 network? I'm afraid it would try to look
for it in the outside...

FWIW, the laptop runs Slackware.

Thanks for any comments, suggestions, etc.!
-- 
Arcady Genkin                                 http://www.thpoon.com
Nostalgia isn't what it used to be.


Reply to: