Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am a beginner with Linux and am wondering how to set up internet quota for my home ADSL. There are 8 users using the internet and I would like to be able to restrict their internet usage (by creating usernames with corresponding passwords and individual internet download quota per month for each person). I have been looking around and it looks like the best way to do it is to run/install Linux on a computer as an internet gateway, then use another program (preferable free) to set up the internet quota system.
If possible, each user should be able to see their usage status through their browser and have the option to change their password if they want.
The overall idea is that the ADSL modem will be pugged into the 'Linux gateway', and then from the Linux gateway to the internet plug on my router. Each computer will be able to connect to the router and access the network and also internet. Except this time they will be restricted on their internet usage.
Does anyone have any ideas, "Beginner" (and easy to understand) tutorials or ways to do this.
Thanks Mickza, you've helped me make a huge step in my progress in this project.
Now, which Linux would be best for this setup (remembering that I am a beginner to Linux and really have no experience)?
Also, is there a process that I need to go though to setup up Linux so that is it can operate as an internet gateway with IPcop and the TCAR addon? I fyou know of any websites or tutorials for beginners that would be great.
I recommend a minimum of a PIII/500Mhz CPU with at least 256Mb memory & 10Gb HDD for your proposed setup, a monitor & keyboard will be required for the initial installation. Try to choose a quiet box as you will be living with it 24/7.
Important - IPCop will overwrite ALL existing data on the hard disk.
Read & understand the following for a overview of the installation process and have the required setup info to hand before you start. You will be using a RED GREEN network setup:
I have now installed IPcop. I can connect to green with my computer. I can also access the web GUI. However I can't get any internet.
I think I may be missing something or have not set something up right.
Have you got any ideas?
See attached examples of a ADSL setup with a variable ISP assigned IP address - not Static, note that your modem must be in Bridged mode for this example to work (supply modem type & model if you need help).
Use IPCop GUI>NETWORK>Dialup to create, save & select profiles (ISP setups).
Use IPCop GUI>SYSTEM>Home to connect & disconnect.
Use IPCop GUI>LOGS>System Logs for info on what's happening when you try to connect.
If needed you can change the RED address settings by ssh'ing (PuTTY on Windows) using port 222 into your IPCop box as user root and running setup from the command line.
I don't know how or where to plug in the green interface of IPcop to my router (Netgear, Wireless, 4 LAN ports and one Internet/Modem port). Do I plug green into the Internet/Modem port or one of the LAN ports? I have tried putting it in the Internet/Modem port but then I can't access the GUI via my web browser.
I have an ADSL modem router of the brand 'BILLION', model: BiPAC 7300RA. I'm not too sure of how to set it in 'bridged mode'.
From a browser enable SSH access on the IPCop GUI HOME>SSH Access
Start WinSCP using the ipcop IP (port 222 not 22) user root and the password you defined for root when you set IPCop up
Expand the / folder
Select the tmp folder
Copy & paste the .gz files you downloaded into the tmp folder (paste is under the File tab on WinSCP)
Using Putty login to the ipcop IP (port 222) as root and the password previously mentioned.
Check the .gz files have copied correctly:
root@ipcop: ls /tmp
addons-2.3-CLI-b2.tar.gz sendEmail-v1.54.tar.gz TrafficControlAndReport-1.1-GUI-b2.tar.gz
Installing the addon server:
root@ipcop: tar -zxvf /tmp/addons*.gz -C /tmp/
root@ipcop: /tmp/addons/setup -i
Close & reopen the IPCop GUI - you should have an extra tab on the far right - ADDONS
Under Control & Report system parameters complete Admin's email:(eg email@example.com) and SMTP server host:(eg smtp.your.isp).
Tick enabled and click the SAVE button. TCAR is now active and controlling access to the RED interface. Try a google search from your PC to prove it's blocked.
Now from LOGS>FIREWALL LOGS identify your blocked PC IP address & MAC address(if required, prevents spoofing).
Back to SERVICES>TRAFFIC CONTROL&REPORT
Under Add new user complete:
User nameeg my laptop IP Address- required MAC Address- optional Interface- green should be the only option User email- required, need not be valid 1Mb cost- required enter "1" for starters Currency - required enter "cents" for starters * Max incoming to user traffic (Mb)- optional Enabled: - should be ticked
Click the Add button to save
Finally scroll to the top of the screen and click the Accept Changes button.
*Warning - there are 2 enabled check boxes, the first is on the Max traffic line which if ticked and Max traffic has no value entered will block RED access according to the rule limit incoming traffic to 0Mb
Once you have some PCs controlled you can click on Users info (Downloaded traffic, blocked status) at the top of the screen for statistics.