Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-21-2006, 01:00 PM   #1
LQ Newbie
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
Question Linux LAN Gateway

I've been using linux off and on for over a year now and I am wanting to turn an old computer into a gateway for my LAN to replace my router. The machine has 2 NICs, one which will connect to the Broadband modem, the other will connect to a switch.

From what I've seen, it looks like Debian is my best choice for this computer, features I desire:
-DNS Server (I know how to configure Bind, I think...)
-DHCP Server (looking for a good tutorial on this that is relevant for my setup)
-Advanced Firewall with port forwarding control (no idea where to start on this)
-2 of the machines on the LAN are Windows machines and 2 are Linux machines, do I need to install a Samba server for all machines to be able to use this server as a file server?
-Web Server with Mono (I've configured IIS a number of times but never actually used any other web server)
-FTP Server (easy)
-SSH Server (easy)
-One printer is directly attached to this computer via a Parallel Connection, do I need to install a Printer Server for other machines to use this?

I have googled numerous times for relevant articles, but constantly seem to find articles that are out of date, incomplete, or conflicting and just confuse me. If anyone knows of any up-to-date, accurate articles for any of the above topics or has experience doing this, I could use a push in the right direction.

Old 03-21-2006, 01:52 PM   #2
Registered: Oct 2003
Location: New York
Distribution: Debian Sid
Posts: 185

Rep: Reputation: 30
You might want to look at dnsmasq instead of a complex bind setup. Shorewall is a great configuration file managed firewall that can do port forwarding; Guidedog / Guarddog are a pair of GUIs for firewalling / port forwarding; and see also Firestarter. The website has great articles on this sort of thing; e.g. and

Last edited by celejar; 03-21-2006 at 01:54 PM.
Old 03-21-2006, 05:53 PM   #3
Registered: Feb 2006
Location: oregon
Distribution: PIII fedora2 | P4 fedora2 | Thinkpad fedora2
Posts: 54

Rep: Reputation: 15
I use Gentoo and I highly recommend it mostly because of their documentation.

The base install for a gentoo install is very basic: command line only, no extra daemons running around cluttering things. Perfect for a simple router. Useful stuff can be added as needed.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a Linux box as a residential gateway on my LAN LordFett Linux - Newbie 9 12-21-2005 05:20 PM
Obtaining IP LAN gateway in C under Linux executive Programming 2 04-13-2005 11:21 AM
Linux gateway on a LAN and the rest of the boxes are XP MR_UNO Linux - Networking 12 12-02-2004 02:20 AM
Control over IP adress in LAN via Linux Gateway pin_bk Linux - Networking 3 10-15-2004 03:41 AM
Linux as Gateway in a LAN out of 20 PCs stormblast Linux - Newbie 2 04-30-2004 12:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration