LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-24-2005, 12:26 PM   #1
LordFett
Member
 
Registered: Sep 2005
Location: Fredneck MD
Distribution: SUSE 11 & Win 7 Pro
Posts: 45

Rep: Reputation: 15
Using a Linux box as a residential gateway on my LAN


I have an older pc (AMD K6 500mhz with 368megs of ram) that I would like to use as a gateway for my LAN (I think thats what its called, modem --> linux box --> router --> rest of the network).

Right now I have Fedora Core 4 on the machine (tried SuSe 10.0 but it wouldn't install and Slackware (not sure of the version one of the newer) asked for the floppy boot disk to be inserted but I never had a floppy, the computer doesn't even have a floppy drive). If anyone has a suggestion for a distro to use, maybe an older version of SuSe? Since I have SuSe on the rest of my linux machines.

The PC i'm wanting to use at the gateway does have two nics installed and working. But when I hook it up to the modem and then the other nic to the router the rest of my pcs go off the internet.

I looked for a tutorial for this but couldn't find one. If tehre is already one can someone point me in the right direction?

Thanks
 
Old 11-24-2005, 02:34 PM   #2
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
You need to look into IP Masquerading(Or NAT, network address translation). I'm assuming this is on a home network, where you only have one external IP address. If you have more than one external IP address(i.e. a business), I think you can just configure your other machines to use the IP of the machine you're trying to network access through as their gateway address. THis site has a good introduction to iptables(what is used for NAT), as well as some scripts that can be used. http://iptables-tutorial.frozentux.net/

Hope this helps
 
Old 11-24-2005, 03:27 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 84
You might want to take a look into Smoothwall, which is designed to do exactly what you describe
 
Old 11-24-2005, 03:51 PM   #4
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
That's true, smoothwall is a specialized distribution that will aid in configuration and so forth, the url is www.smoothwall.org.
 
Old 11-24-2005, 07:16 PM   #5
Netizen
Member
 
Registered: Sep 2003
Location: Texas
Distribution: Slackware and Ubuntu
Posts: 355

Rep: Reputation: 30
Look at IPCop. www.ipcop.org
 
Old 11-24-2005, 08:45 PM   #6
LordFett
Member
 
Registered: Sep 2005
Location: Fredneck MD
Distribution: SUSE 11 & Win 7 Pro
Posts: 45

Original Poster
Rep: Reputation: 15
Is smothwall a program to run within a linux distro? Or a distro of linux?
 
Old 11-24-2005, 09:12 PM   #7
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
smoothwall is a linux distribution. If you're looking for a program inside of <your distribution of choice>, your going to need to look in to NAT/IP Masquerading.
 
Old 12-21-2005, 02:04 PM   #8
xavistyles
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
can smoothwall work for home use via T-lan
 
Old 12-21-2005, 03:15 PM   #9
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 31
Have a look at http://projectfiles.com/firewall/

I use their script for doing pretty much what you want.
Run the script then service iptables save so that the rules are 'loaded' at each boot.
 
Old 12-21-2005, 05:20 PM   #10
floppywhopper
Member
 
Registered: Aug 2004
Location: Albany, Western Australia
Distribution: Mageia 4, Debian 8, SME 9, IP Fire, PCLinuxOS, LinuxMX
Posts: 629
Blog Entries: 2

Rep: Reputation: 114Reputation: 114
A number of Linux and BSD distros will do what you want
Smoothwall and IP Cop have been mentioned
and they are very good
IMO smoothwall is better
but IP Cop easier to set-up

however there are others

pfSense ( BSD based )
http://www.pfsense.org/

Astaro
http://www.astaro.com/

Devil Linux
http://www.devil-linux.org/home/index.php

Trustix
http://www.trustix.org/

Monowall ( BSD Based )
http://m0n0.ch/wall/

Note
they will all take over the whole system and delete any existing data, if you have anything on the HDD you want to keep, move it or lose it.

For a newbie I would recommend IP-Cop and then later if you decide you want something different you will have the experience.

READ the Manual first of any distro you choose !
VERY CAREFULLY
PRINT IT OFF and READ

here is the IP Cop manual
http://www.ipcop.org/1.4.0/en/install/html/index.html

cheers
floppy
 
  


Reply


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
VPN gateway with linux BOX jobbe314 Linux - Networking 5 08-02-2005 09:43 PM
Linux box as a gateway/router dooda5555 Linux - Networking 2 04-29-2005 01:06 PM
XP Box won't take DHCP information or an IP from Linux gateway Diademed Linux - Newbie 2 10-22-2004 05:47 PM
Linux as Gateway in a LAN out of 20 PCs stormblast Linux - Newbie 2 04-30-2004 12:22 AM
Connecting Linux box to Internet through Windowx XP box over LAN pcd007 Linux - Networking 1 03-14-2004 09:02 AM


All times are GMT -5. The time now is 03:17 AM.

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