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

Re: Cable Modem and Routing



>I helped a couple friends of mine setup a linux box to do this through 
>mediaone.
>From what I remember:
>1: Make sure you have all the necessary routing and masq stuff compiled
>into the kernel. Alos include the fast switching stuff between NICs.

Why do you need the bridging stuff to act as a router?  Or does this (now)
include other functionality as well?

>2: Set your machine up as a gateway. I think you just have to turn it on
>in  linuxconf. Also make sure packet forwarding is turned on.

echo "1" > /proc/sys/net/ipv4/forward

or 

FORWARD_IPV4=yes in /etc/sysconfig/network

>3: Make sure you have a firewall. Email me if you want one, I've got a
>copy  of the one they used. I use it at work to masq a modem connection.

Isn't the box connected to the cable modem acting as a firewall?  I use
"floppyfw" for my DSL connection box, and it's great stuff.  No HD to fail or
get hacked.

>4: Originally we also had it setup as a DHCP server. Optional but nice.
>If  you've got NT as a DHCP server set the router property to the linux
>box's  ip, this will make it the gateway box on the client machines.

DHCP is very cool.  Everyone should use it.  I agree with this recommendation.

You might want to look into Squid too.