Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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
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 ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.