LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-16-2008, 12:36 AM   #1
r_freeman
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
Question how to start a Linux router for newbie


Dear friends,

I'm new in linux, I don't know anything about linux, and I want to make a linux box router (big jump for me).
what i want exactly from linux router is to limit the bandwitdh of the internet. I have 3 pcs connected to a router.

I have an old box to be act as linux router.

so please assist me from where I can start, should I have to install a linux.

thank you for help
 
Old 11-16-2008, 02:21 AM   #2
claudius753
Member
 
Registered: Jan 2004
Distribution: Mac OS X 10.6.4 "Snow Leopard", Win 7, Ubuntu 10.04
Posts: 322

Rep: Reputation: 31
Well, first you can look at distrowatch to see if any of the firewall-oriented distributions catches your eye. http://distrowatch.com/dwres.php?resource=firewalls

Also, how old of a computer are you looking at as your router? Does it have an optical (cd/dvd) drive or only floppies? How do you plan to connect your 3 systems to the box?
 
Old 11-16-2008, 03:10 AM   #3
r_freeman
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
my old pc is, P4 2Ghz with 512Ram, 80GB HD, DVD Drive.

I have a router Linksys WRT150N connected with a Internet modem.

I'm connecting my desktop wired and laptop wireless.

and I'm giving free my neighbor a wire from the router that I want to limit his bandwidth because he keeps telling me he didn't download big files from the internet and only browsing and chating, but I'm loosing my CAP limit before the end of the month and I know what I downloaded.

thanks for your help.
 
Old 11-16-2008, 10:02 AM   #4
AndrzejL
Member
 
Registered: Jun 2008
Distribution: PCLinuxOS
Posts: 38

Rep: Reputation: 15
Hi Bud.

I am using DELL Latitude D600 With PC Linux OS 2008 MiniMe on it. I am connected to my Nokia N73 phone via bluetooth and dial it up with kppp as a www.three.ie internet provider. I have 4 other laptops in ad-hoc wireless network and all of them are connected to my DELL as to the router/internet gate. All I have to do is use a few commands to change my DELL into the wireless internet router

Commands are:

First of all you have to log yourself as root. To do this type into konsole window:

su

and press enter

then type in roots password and press enter again

flush and delete existing firewall rules.

So flush rules by typing in terminal:

iptables -F
iptables -t nat -F
iptables -t mangle -F

Now delete these chains:

iptables -X
iptables -t nat -X
iptables -t mangle -X

Now it's time to save the iptables rules so type:

service iptables save
service iptables restart

Now all rules and chains have been cleared!

Now open /etc/rc.d/rc.local and insert the line:

echo "1" > /proc/sys/net/ipv4/ip_forward

And then save and close the file.

Now asuming that your internet interface is eth0 and the one that will be uses as a gate is called rausb0, type:

/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth0 -o rausb0 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i rausb0 -o eth0 -j ACCEPT
service iptables save
service iptables restart

Note: check if iptables is set to start during boot up.

Or check the status of your iptables service:

chkconfig –list iptables

If level 5 is on then it's ok othewise start the service at level 5 or level 2345.

I hope I have helped

Andy
 
Old 11-16-2008, 02:24 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,477
Blog Entries: 4

Rep: Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526
Hi,
Quote:
Originally Posted by r_freeman View Post
Dear friends,

I'm new in linux, I don't know anything about linux, and I want to make a linux box router (big jump for me).
what i want exactly from linux router is to limit the bandwitdh of the internet. I have 3 pcs connected to a router.

I have an old box to be act as linux router.

so please assist me from where I can start, should I have to install a linux.

thank you for help
You should look at 'zebra' or 'quagga'.

This link and others are available from 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 11-16-2008, 02:48 PM   #6
AndrzejL
Member
 
Registered: Jun 2008
Distribution: PCLinuxOS
Posts: 38

Rep: Reputation: 15
WOW These are some powerful links bro I think I'm gonna surf and print some of them . Cool.
 
Old 11-16-2008, 03:06 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,477
Blog Entries: 4

Rep: Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526Reputation: 1526
Hi,

Look at the 'Network' section of the 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 11-16-2008, 06:28 PM   #8
r_freeman
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks all of you for help.

I'm now going to read all the links and hope it's going to works,

I'll let you know what happens.

thanks
 
Old 11-17-2008, 11:33 PM   #9
r_freeman
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I think it's difficul to now all these linux stuff.

I got an idea, I bought anothor router so I connect the line to the other router.
 
  


Reply

Tags
linux, router


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 getting linux talking to my router (newbie) neilw Linux - Wireless Networking 3 09-03-2006 08:41 AM
Start a router for a newbie ppp23 Linux - Networking 1 02-22-2005 10:43 AM
newbie needs help setting linux up as a router bobby6k Linux - Networking 1 01-26-2004 01:15 PM


All times are GMT -5. The time now is 04:09 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration