Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-03-2001, 06:56 PM   #1
LQ Newbie
Registered: Jul 2001
Posts: 1

Rep: Reputation: 0
Linux box as router

How can I set up my linux box to act as a router for my cable modem so my win box can access the internet and all ports as usual?
Old 07-03-2001, 07:29 PM   #2
Registered: May 2001
Posts: 125

Rep: Reputation: 15
there are a lot of ways. you can set up ip masquerading. to do that check out the ipmasq how to at

Or, you can do what i did and download a distrobution that sets it all up for you. i use freesco ( Its really easy to set up and you don't even need a hard drive.
Old 07-03-2001, 09:46 PM   #3
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
I'd suggest that you do as Mr. Fightclub recommends and printout the ipmasquerading documentation and follow it page by page. It describes in detail how to set up masquerading and forwarding, and you probably can have it all running in one evening. One thing the document does not provide is a good set of rules for the firewall. An easy way to do this is to search for a good script as a starting point and modify it from there.
Building and configuring it your self will help you learn linux much more in the long run as apposed to using a fully functioning Linux firewall release. You will probably have to rebuild the kernel; insert modules; mess around with the init scripts and more. It's a lot of fun. You will be a linux guru before you know it.

One thing to remember, if you are using kernel version 2.2.x or less you will be using ipchains as your IP packet filter. For kernels 2.4.x or greater, iptables is the packed filter.

Old 07-03-2001, 10:03 PM   #4
Registered: Apr 2001
Location: South of Atlanta
Distribution: Mandrake 8.1, Suse 7.0
Posts: 207

Rep: Reputation: 30

Ahh the movie that changed my life...

At any rate, you were saying that you dont have to have a hard drive to be able to do that on the slave machine... is that correct??
Old 07-03-2001, 10:27 PM   #5
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Yes, I think there is a Linux firewall distro that fits on a floppy. I guess that is secure and a power saver as well. ~3 watts?
Old 07-04-2001, 06:50 AM   #6
Registered: Jun 2001
Location: Northern Ohio
Distribution: RedHat, Engarde and LFS
Posts: 237

Rep: Reputation: 30
and are both floppy based firewalls


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
linux box as a router cambie Linux - Networking 4 11-21-2004 10:01 AM
linux box as router cambie Linux - Networking 10 11-16-2004 12:20 AM
Using Linux Box as a Router wasabi Linux - Networking 5 09-04-2003 05:08 PM
Linux box as a router dumpa Linux - Newbie 8 08-08-2003 04:05 PM
Linux box as router AkumaLoka Linux - Networking 3 10-14-2002 04:57 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:23 PM.

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