Networking :: Limiting Bandwidth Per IP In Ubuntu

Apr 12, 2010

You may have seen some other posts by me about my final year college project. Im implementing a web based network management website. Iv got a lot of the functionality working at this stage but one part is allocating bandwidth.

Iv got an eircom 3mb broadband connection and I want to be able to split this between users. At the moment I only have my desktop and laptop on the network. Im looking for advice on how i can allocate bandwidth with iptables and/or the tc tool in ubuntu.

My website is on an ubuntu virtual machine and written in php. Whatever about running the iptables and tc commands from php I still need to figure out the actual commands i need to use in the first place.

View 14 Replies


ADVERTISEMENT

Server :: Bandwidth Limiting Per User?

Aug 27, 2010

So: On the VPS / Dedicated Server Linux wich 3 users created. How can I limit bandwidth each in a separate? For example first user speed 1 MB. 5 MB second and third 10 MB. Expect some clear answers. Regards, Silviu!

View 5 Replies View Related

Server :: Limiting A Sub-user's Bandwidth?

Jan 27, 2011

I run Debian 64-bit. I host GameServers on my machine. Yesterday, some corrupt files or error in configurations of one of the game-servers caused my whole system to destabilize. On checking, I saw one of the Gameserver's console giving Net_sendpacket spam errors. I disabled that server and things were fine then. It used up more than 100GB of my bandwidth in just 12 hours.

I deleted the server and copied all the files over again to fix that error. Now I want a prevention to this, if just in case it happens again. I want to limit a sub-user's bandwidth in Linux. Like if I want a user only to use 10GB bandwidth per month + not more than 5MB/second. Is there any way to do it?

View 2 Replies View Related

Fedora Servers :: Limiting - One Person Doesn't Use All The Bandwidth?

Jan 22, 2009

I have a fedora 9 server. It is used purely as a dedicated server. Until recently I never came close to my allowed bandwidth of 1 TB but I expect that may change in the near future because I will be adding many files for downloading. I have Apache 2.2.9, PHP 5.2.6, mySQL 5.0.51 and Webmin 1.441.

The most critical thing is monitoring total bandwidth and then doing a job, probably using Cron to change a folder's name, to stop downloads before a critical point is reached and my sites shut down. I would also probably eventually like to limit member downloads so all members of the sites get a chance to download and one person doesn't use all the bandwidth. I expect that would be possible using php. to log the bandwidth used by members. I know php but I don't know how to get the bandwidth using php.

View 1 Replies View Related

Fedora Networking :: Finding The Upcoming Bandwidth And Specify The Bandwidth Rateto Classes

Nov 18, 2010

I created a the class like this for shaping the packets with a specified bandwidth rate.....

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 15
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 750kbit ceil 750kbit
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 600kbit ceil 750kbit prio 0

For Our Requirement:-

I dont want to specify the bandwidth rate strictly like this rate750kbit ceil 750kbit,based on whatever speed is coming which should allocate the bandwidth rate for particular class...I need one application for finding the upcoming bandwidth & Is any other method is there for specify the bandwidth rate in a classes.

View 1 Replies View Related

Networking :: Control Bandwidth Access With Squid - Allow Certain IPs To Have Higher Bandwidth Access?

May 27, 2009

We have a sipmle office network set up that we also use use to connect to the internet, however of late the number of users has increased thus slowing internet access. Bandwidth upgrade is not an option thus i have to do bandwidth shaping on our linux router. The question is how do set the squid configs to allow certain IP's range a certain percentage bandwidtheg 60% and furthe divide the rest. Alternatively how can allow certain IPs to have higher bandwidth access.

View 1 Replies View Related

Ubuntu Networking :: Limiting When The Internet Can Be Accessed

Nov 30, 2010

I have a teenage daughter that understands Ubuntu, but not so much the terminal, and she does not know the superuser password. Unfortunately, she regularly goes on the Internet during the nighttime and in the early morning. What I am attempting to do is prevent anyone from going onto the Internet during the night (11 PM - 5:30 AM) unless they know the superuser password or a fair bit about the terminal.

I have already tried some commands, however all of them can be bypassed by restarting the computer. ex. sudo ifconfig eth0 down

For additional information on my Internet:

My Internet connection is relatively slow, so I would prefer if the solution does not hinder it any further. It is slow because there is no high-speed in my area, and I am forced to use Xplorenet -> "Fixed Wireless". I do not have a router.

View 9 Replies View Related

Networking :: Limiting Bandwith From 2 ISP With Using One Server

Feb 21, 2011

I have 2 ISP where give me IP Public with ISP A (/29) and ISP B (/28). So, I connect this two ISP to unmanaged switch. And from that switch, I take one cable connected to eth0 on the server. (Note : My server have 2 dev ethernet, eth0 and eth1). eth1 will go to the Switch which will go to the LAN.

My Question is : 1. Is this possible to make bandwith control on the gateway server with mode separating International bandwith and local bandwith (my country bandwith)? ie, for my Mail Server I will give the "intl bandwith" only 512 kpbs and for local bandwith with 1Mbps. What a software can I use for this model ?

2. Which model I should to used, with NAT or with Bridging router? That's all for now..

View 5 Replies View Related

Networking :: DHCP Offers Not Being Limiting To Specified Vlan Interface On Debian?

Jun 25, 2010

I have configured dhcp3-server on my debian box and I'm wanting to offer dhcp on one of the vlan interfaces. The dhcp is functioning but when I test applying it to a different vlan, the original PC can still get an IP. For example: eth1 has vlan100 and vlan200. Our managed switch has the ports configured such the pc1 is on vlan100 and pc2 is on vlan2. This works fine and I can inter-route between vlans with static IPs. Our dhcp config is currently set as:

ping-check true;
ddns-update-style none;
default-lease-time 21600;
max-lease-time 86400;
INTERFACES="vlan100";
authoritative;

[code]....

View 2 Replies View Related

Networking :: Limiting Sshfs Access To Specific Directory / Tunneling Nfs Over Ssh

Jan 22, 2010

I have a server with a /data/ directory, everything in the /data/ folder has "-rwxrw-rw- 1 root root" permissions.all works fine, multiple users are mounting this over a lan and everyone is able to modify files. However I would like to be able to access the /data/music/ directory from the internet.

Is it possible to configure sshfs to only accept logins from a user restricted to reading the /data/music directory, or would it be possible to tunnel nfs over ssh in such a way that everyone on the lan 192.168.0.xxx has unrestricted access to the data directory, but something coming from outside only has read access to the music directory. Although is one were tunneling nfs over ssh, the nfs mount request would appear to come from the server itself. The router is at 192.168.0.1 and the server is at 192.168.0.3.This Seems very much like what I want to do, however I'm having a bit of trouble getting this to work well with other users mounting with full rights over the lan too.

View 5 Replies View Related

Networking :: Packets Limiting - Blocks The Whole Port Instead Of Blocking Certain Hosts

Jun 13, 2010

I am currently having problems with my server. Its being DDOSed. I have a vps with Centos 64bit. The attack I want to block is udp flood. I was trying to do something like this: iptables -I INPUT -p udp --dport 123 -m limit --limit 40/s -j DROP but instead of blocking certain hosts it blocks the whole port and during the attack its unreachable. How to limit packets per host or any other way to protect from udp flood.

View 11 Replies View Related

Networking :: Iptables Rate Limiting For Bridged Connection ( Kvm Created Bridge )?

Oct 27, 2010

I have a bridged network setup ifconfig -a gives following output

Code:
br0 Link encap:Ethernet HWaddr 00:26:b9:82:42:38
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::226:b9ff:fe82:4238/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:150779 errors:0 dropped:0 overruns:0 frame:0

[Code]...

3) What are these vmnet1,vmnet2,vmnet3,vmne4 which I see above. I used kvm and virt-manager to create a bridged setup.

View 1 Replies View Related

Fedora Networking :: Netem Rate Limiting (token Bucket Filter) Not Supported?

Apr 3, 2010

I've been trying for a couple days now to get netem rate limiting to work on a Fedora 12 i686 virtual machine (both on VMware Fusion and KVM), and have had no success.In order to do outbound rate limiting, I want to use the netem token bucket filter (TBF), as described here:[URL]Unfortunately, attempting to use the TBF results in this error:

Code:
[root@f12-build ~]# tc qdisc add dev eth1 parent 1:1 handle 10: tbf rate 256kbit buffer 1600 limit 3000

[code]...

View 1 Replies View Related

Ubuntu Networking :: Eats Up Bandwidth When Downloading

May 3, 2010

Hey when i am downloading any thing using firefox or torrent, the downloading application eats up all the bandwidth, meaning i cannot browse the web simultaneously downloading anything , even Gwibber does not get updated...

View 4 Replies View Related

Ubuntu Networking :: Monitoring Bandwidth Usage On Lan?

Jul 6, 2011

Since this is my number 1 place for asking questions, I figured I would go here first. So I live in New Zealand where good internet doesn't exist yet, and I'm in a flat with 3 other people and we get 40gb a month which hasn't been lasting more than 2 weeks. It is somewhat of a mystery where all our data has gone, so I need a way to monitor usage. We use a variety of operating systems including linux, xp & windows 7 on my pc, and xbox 360. Is there any kind of integrated solution I can use to monitor everything with password protection so it can't be disabled? I have tried looking in the router, but it doesn't give me many statistics, and I think it combines lan with wan usage. At this stage I don't have the money to make a linux box to put between the router and the switch that can monitor everything, but if it comes to it, I will shell out for one.

View 3 Replies View Related

Ubuntu :: Bandwidth Sharing - Networking Commands Available ?

Jan 12, 2010

What are the commands available in ubuntu to share & divide the incoming Bandwidth in Ubuntu? I am developing a Network management application for ubuntu in java. I am going to use it in server.Also I want to know about the networking commands available in Ubuntu.

View 3 Replies View Related

Networking :: Settings Up IpTables To Log Bandwidth On Ubuntu

Mar 1, 2010

I would like to set up a logging system for rtorrent, the only way that i could think of this would be to set up bandwidth moniters in the ip tables but im not sure how to go around this.

View 1 Replies View Related

Networking :: Bandwidth Monitoring Using SSH

Oct 5, 2009

I am renting a VPS from[URL].They do not supply a webhosting panel for restarting/shutting down or for seeing monthly bandwidth consumtion. I am running CentOS 5.3. I was wondering if theres any programs that you can install to view monthly/daily bandwidth consumption on our server?

View 2 Replies View Related

Ubuntu Networking :: Share Bandwidth By Means Of Commands?

Jan 18, 2010

How to share bandwidth by means of commands in Ubuntu Linux?

View 3 Replies View Related

Ubuntu Networking :: Setting Up PC As Router - Bandwidth Usage

Jan 28, 2010

I wish to setup my spare PC as a router. I was wondering what programs, in ubuntu, I can use to monitor and change settings concerning bandwidth usage. I want to throttle down a computer in my network so what program would be good for this?

View 1 Replies View Related

Ubuntu Networking :: Set The Client Bandwidth Limitation Using Squid?

Mar 6, 2010

I'm having problems with squid, and i don't know how to solve them because I'm new to linux. a. Why squid in my computer often does not work? The process has already started (using the command sudo squid start), but the Internet on client computers can not connect. This can be be resolved if the proxy server computer is restarted. Anybody know why is this happen?

b. How do I set the client bandwidth limitation using squid? I want the client computers can only use maximum 60-70 KB / s. Do I need another additional software package?

View 1 Replies View Related

Ubuntu Networking :: Internet Bandwidth Does Not Share Effectively?

May 16, 2011

I have an Ubuntu box, and there are two another PCs with Windows XP at my home.There is a TP-Link WR340GD wireless broadband router, and a Motorola SB5101E cable modem. Maximum download speed of the Internet connection is about 6 Mbit/sec.While I'm starting some download processes on the Ubuntu box, the other two PCs get only small bandwidth according to their users, although download speed on my computer does not often exceed its maximum.

More precisely: I usually download files at approx. 1 Mbit. The other users complain about that I slow down the Internet connection at their computers, and tell me to stop using the Internet.Is it possible to improve the usage of internet bandwidth, and share the connection fairly between computers

View 1 Replies View Related

Ubuntu Networking :: Machine Sucks Up Bandwidth Simply By Being On

Jun 10, 2011

I have an ubuntu machine connected to my network which is used as a Minecraft server, storage, and a subsonic server for music. For the most part, the only person using these services, especially during downtime, is just me at home. Which is why I'm surprised that 2-days ago I detected that my network was being slowed to a crawl. There I found that the ip connected to my ubuntu was moving around 170,000 kb on my Netlimiter 3 program.

I have no idea why that is, I closed my ports that were forward for the ubuntu servers, but the bandwidth keeps leaking. Disconnecting the network from the ubuntu computer or turning off the computer stops the odd downloading and uploading. If anybody would have any information of what I can check or shut down in Ubuntu, please let me know. I'm fairly a beginner to the OS, but haven't been able to find a similar problem on this forum.

View 6 Replies View Related

Ubuntu Networking :: Detect The Softwares Which Are Using Internet Bandwidth?

Aug 3, 2011

very slow internet connection with a download speed of only five kbps and my problem is i have many softwares installed which startup during my boot and i can see network activity in the system monitor that some software is using my internet speed and all other important downloads run slow...Can anybody tell me some softwares which tell me which software is using my internet bandwidth, I tried iftop and it shows only the connection between client and server with ip address ...I need softwares which tell the software using the internet bandwidth

View 2 Replies View Related

Networking :: Which Program For Bandwidth Monitoring

Dec 18, 2009

Im looking for a program to monitor the ammount of bandwidth usage per network. Ex: I have lots of networks connected to one server, and i would like to know for example how much is the average bandwitdh usage for network 172.16.2.0/24 and 172.16.5.0/24 for one hour, for example.

View 1 Replies View Related

Networking :: Changing Bandwidth During A Simulation?

Mar 22, 2010

I'm doing some simulations (using Iperf) to obtain throughputs values of a link between two gigabit ethernet cards for different delays and different drop probability (using netem) .... Now I have to do a 3minute long simulation in which during the firstnute the bandwidth is 1000Mbit/s, 500Mbit/s during the second minute and 1000Mbit/s during ththird one....Does anybody know how can i do this type simulation

View 4 Replies View Related

Networking :: Throttling Bandwidth With Iptables And Tc

May 14, 2010

I am trying to limit bandwidth of certain ip addresses on my server. I have been doing hours of reading and not getting very far...

So far I believe the iptables command is:

And now I just need the tc command to read those marks and limit bandwidth, I have a gigabit connection and would like to limit each of these ip addresses to 10mbit in and out.

View 1 Replies View Related

Networking :: Possible To Get The Available Bandwidth Run App In Client Side

Nov 26, 2010

Calculating the available bandwidth methods IGI/PTR,PATHLOAD,SLOPS,PACKET PAIR...

I gone through above methodogies ,when i finish one methods(IGI/PTR) i came to know,one application should run in client side and another application should run in server side (i.e,) Internet Service Provider side,

In IGI/PTR method ./ptr-client.c & ./ptr-server.c is there .,if we want available bandwidth,I Should run ./ptr-client.c (in myside)correspondingly ./ptr-server.c then only we wil get a availble bandwidth...

My need is without run any application on the server side ./ptr-server.c like that,but I should develop the application only on client side (in my routerside based on linux)..

1:whether it is possible to get the available bandwidth run application in client side only?.if possible. how i implement the code in client side( only )for getting the available bandwidth ...whether any source code is available?...

I dont want to test the speedtest.in (in GUI )

View 1 Replies View Related

Networking :: Bandwidth Management Between Different Departments?

Sep 25, 2010

I am Network Administrator in a Degree College managing around 2500 Comps. My ISP has terminated its Internet link (15 Mbps) to our Linux Server (Installed 2 NIC) from where Internet connection is extended to rest of the machines in network. I am supposed to send different bandwidth to different departments say 5 Mbps to Hostel, 2 Mbps to Staff room etc. I am new to linux and don't know anything about Bandwidth Management in linux.

View 2 Replies View Related

Networking :: Bandwidth Monitoring For Computers With Different OS?

May 1, 2010

I am connected with LAN. We have many computers with different OS viz.linux, windows etc. Now I want to know the bandwidth every computer is getting and using. Is there any Ubuntu packages to monitor this?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved