LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-23-2007, 12:37 AM   #1
ChochoD
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Rep: Reputation: 0
Question routing-how to?


Hi. I'm a newbie for both linux and the forum.
Here's my question.

I have a PC and installed debian (latest stable release).
It has 2 NICs ( eth0 and eth1)
I want to make the PC a router ( to get internet from eth0 and be able to share, stop and shape the internet to the other PCs from my eth1)

As I said- I'm a newbie, so plz tell me a link to(or explain me here) complete step by step user guide how to do that.

10x in advance.
 
Old 11-23-2007, 01:28 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
There are a lot of ways to configure Linux to be a router, but based on your description, it sounds like you want to set up IP Masquerading (e.g. Network Address Translation and routing). The best guide to this I've found is this HOWTO but it may be a little advanced for a newbie. Feel free to ask questions back here if you get stuck.
 
Old 11-23-2007, 01:52 AM   #3
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
See http://www.debian-administration.org/articles/23 for a tutorial.
 
Old 11-23-2007, 01:56 AM   #4
ChochoD
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Original Poster
Rep: Reputation: 0
10x guys, I'll read them and I'll try it.
But what about shaping the speed of the users ?
I want to be able to do that by ip and mac adress....

Last edited by ChochoD; 11-23-2007 at 01:59 AM.
 
Old 11-23-2007, 02:57 AM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
There are ways to use iptables to handle traffic shaping. I don't have much of any experience with this, but Googling for Linux traffic shaping should help. For example, I found this Web page with some basic information.
 
Old 11-23-2007, 05:39 AM   #6
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Well you can setup Iptables which has already been suggested, or you could turn the system into a firewall. I have a pIII setup with three nic's running Smoothwall-firewall. After setup it's a headless system, so you don't need a monitor. If you have more than one pc going to be connected to it, you will need a switch (preferred) or hub.

You can do everything you asked about and a lot more, portforwarding, filtering, you can set a time limit on when and how long you want a specific pc to have access to the internet.

I tried version 2.0 it worked fine on a pII but it lacked some of the features in 3.0. But if you use 3.0 you will need at least a pIII. Or should I say I never had any luck installing 3.0 on a PII.

Edit: I should note the reason I have three nics, one will go to my wireless router.

Last edited by mrrangerman; 11-23-2007 at 05:43 AM. Reason: added info
 
Old 11-26-2007, 09:36 AM   #7
ChochoD
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Original Poster
Rep: Reputation: 0
OK, a lot of suggestions, but as I said I need a "step by step" guidance how exactly to do everything.
So be more specific plz. what software and how to install it. how to configure ip tables (examples plz) e.g. What and how to do first, then next ...

P.S. I'm a complete Newbie for linux...
 
Old 11-28-2007, 08:11 AM   #8
ChochoD
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I guess noone seems to be helpful enough to write how to do all in steps and examples...
 
  


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
Routing........... Dasha Linux - Networking 3 05-10-2005 01:03 PM
routing metallica1973 Linux - Networking 8 04-25-2005 01:48 PM
Ip Routing alanfullmer Linux - Networking 1 03-18-2005 12:20 PM
Routing ? LAR12345 Linux - Networking 2 02-12-2005 02:22 PM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 PM.

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
Open Source Consulting | Domain Registration