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

Re: Debian as a router.



Cordazer Calvin Broadus wrote:

> Instead of buying a router I thought that I would hook up my PC
> that has two NICs as a router.

> I am trying to sift through the networking howtos from www.tldp.org
> but that is slow going.

Not too difficult. Make sure you enable IP forwarding on the router box
(edit /etc/network/options), and use the FORWARD IPTables chain to control
traffic going through the box. Lock down access to the box from the
Internet (allowing maybe SSH at most).

Be sure to make good use of IPTables' state matching. Makes writing secure
rulesets simple and easy - just allow any existing or related connections,
set rules for new connections, and block everything else.

Adam



Reply to: