LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-01-2005, 08:44 PM   #1
tnadenichek
LQ Newbie
 
Registered: May 2005
Distribution: ubuntu
Posts: 2

Rep: Reputation: 0
Post ubuntu box as router


Hi. i'm trying to set up an old gatway laptop from college as the router for my household since the box i'm using now (an old dell winXP box with a noisy/dying hd) is on it's last legs.

so, i did a little research and decided that i wanted to try ubuntu. (distrowatch dot com) well, it's great. i downloaded the iso, burned a disk, ran the installer no prob, let it simmer through the auto updater, and logged in to good resoluction, sound, trackpad support, internet (good old firefox!) and generally anything that you might want to start the day off with in a computer.

now i've done a half dozen searches on how to set up a ubunto box as a router/bridge/firewall and the most helpful one i've seen basically pointed out how cheap it would be to buy a little dedicated router unit from newegg.

can anyone give me any pointers? are instructions i find for debian going to work just as well for me? i want to learn more about the process than just paste in a couple (dozen?) commands, but i'm not sure where to begin...

thanks.
 
Old 05-02-2005, 02:15 AM   #2
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
There are a number of options with this kind of deployment. My first comment is that you don't need a full Ubuntu install as it is a waste and an X environment is not good in a secure environment. You just need a basic linux install with a firewall and internet sharing. A really good package is IPCop. If you have an ailing hard drive an excellent setup that runs off a floppy is Coyote (http://www.coyotelinux.com/). You ideally need to just install a base system and admin it via an ftp connection through either linux or M$.

Last edited by TigerOC; 05-02-2005 at 02:16 AM.
 
Old 05-02-2005, 06:08 AM   #3
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
You may also want to have a look at the IP-Masquerade-HOWTO. It's what I used to get my router/firewall running.

I do, however, agree with TigerOC's remark about X. You don't need it. I actually have it installed on my server but it's not running. It only gets activated when I want to mess around with the server locally - as opposed to through ssh which is what I usually do.
 
Old 05-06-2005, 03:22 PM   #4
tnadenichek
LQ Newbie
 
Registered: May 2005
Distribution: ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
firestarter on ubuntu as router

first off, thanks for the advice. i haven't had much time this week to work on this, but your comments have given me a couple more directions to google during spare moments at work.

so what's the concensus on firestarter as an option?

i'm definitely going to look at the ip masquerade page, but i'm still (two weeks into my linux experience) more comfortable with the gui, hold-your-hand, approach that i'm seeing in the firestarter installer.

i'm currently shying away from the much easier coyote approach primarily because a buddy with an extra hard drive wants the dell and i want to be able to mess around with linux on the laptop - if i can get everything i need on a day to day basis to work on it, ultimately i'd like to get to a 90/10 linux/windows situation.

if i can get it up and working as the router, would simply logging out of x help the secureness concerns?
 
Old 05-06-2005, 03:33 PM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You can still work in gui environment but on another box. This is how i manage my server. I use kde and have KBear installed which is a sftp/ftp client. I connect to the server via ssh (sftp) and am then in a gui environment and can edit files, browse directories, etc from my main system. It is all seamless and feels like your own system in most respects.
 
Old 05-08-2005, 07:06 PM   #6
jgams
Member
 
Registered: Nov 2004
Location: Victoria, BC
Distribution: Slackware 10.2 , Ubuntu 5.04
Posts: 45

Rep: Reputation: 15
firestarter - eth0 is not ready

i am also trying to use my ubuntu box as a firewall/router.
my roommate just got a new ibook and we'd both like to be able to use the net at the same time. i happened to have a spare network card and ethernet cable so i figured i'd try to get this running without paying for a new router.

I'm having a few problems with Firestarter:

1. i am not able to "Enable DHCP for Local Network" via the setup wizard
2. after saving the options Firestarter tells me
"Failed to start the firewall
The device eth0 is not ready.
Please check your network device settings and make sure your connection is active."

eth0 is ready and active... i'm using it right now..
any help with this problem would be great. (please don't tell me to buy a router)
thanks
Josh
 
Old 05-09-2005, 02:33 AM   #7
jgams
Member
 
Registered: Nov 2004
Location: Victoria, BC
Distribution: Slackware 10.2 , Ubuntu 5.04
Posts: 45

Rep: Reputation: 15
f*** firestarter

http://www.cs.camosun.bc.ca/tb186/hp...g/272lab6.html

follow the instructions on that page.. you may have to change a few small things according to your system (like which eth forwards to the other)
and of course it's mandrake... so don't bother looking for /etc/rc.d/init.d because it doesn't
exist in ubuntu... you'll want /etc/init.d

make sure you read the IP Masquerading HOWTO

in /etc/network/options change ip-forward to "yes"

also follow the instructions on this page:
http://www.ubuntulinux.org/wiki/UbuntuBootupHowto

sorry if this info is fragmented... i've collected the info from my madly drawn notes and it's quite late.

hope this helps

Josh
 
  


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
Help setting up Apache2 on Ubuntu box BoardinBum Linux - Software 16 05-15-2006 03:45 PM
Problem installing rlbackup server on ubuntu box beercz Linux - Software 0 10-19-2005 09:11 AM
How to login to a LINI PC Ubuntu Debian box? bdiscoe Debian 3 09-13-2005 09:25 PM
Can ping box to box thru router - good sign? toastermaker Linux - Networking 15 12-07-2003 12:00 AM
Fwall/Router Network Appliance vs. stock mdk9 Fwall/Router box jqpdev Linux - Networking 2 02-28-2003 07:19 AM


All times are GMT -5. The time now is 08:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration