General :: Temporarily Throttle Internet Connection For Testing Purposes?
Mar 16, 2009
I would like to know if it is possible (and, if so, how I would go about doing so) to temporarily limit my Internet connection on a Linux box.
I am developing some new features for one of my Web sites, and I want to see how it performs when using a slower Internet connection. Although it's great for most aspects of my job to have a lightning-fast connection (around 25000-30000 kbps download and 20000-25000 kbps upload speeds), it really makes it difficult to know even what average users might experience when using some of the aspects of our Web site.
I have Linux Mint installed in VirtualBox on my computer, and I'd like to find some way to potentially temporarily "trick" that installation into using a much slower connection to the Internet for testing purposes.
Is there any way to temporarily "switch off (and back on)" the internet connection on a system (that runs linux)? The following methods are not allowed:Turning off the router. That would lead to a lot of angry young individuals. This method must be particular to my workstation.Use root privileges (coz I do not have them). Yank the ethernet cable from the system.Why: Sometimes the internet proves to be a distraction.I am using the following system: Fedora release 11 (Leonidas), linux kernel 2.6.30 and GNOME 2.26.3
I have about 5 computers on my network that get their internet connection from a Linux NAT server.
192.168.12.02 is a Linux server that has a NAT set up to share the internet connection. 192.168.12.03 is a download server that is almost always downloading 192.168.12.05 - 192.168.12.20 is assigned by DHCP to users.
I want to make it so that the download server runs at full speed but is throttled only when someone from the user IP addresses range tries to use the NAT server.I think I'm looking for some way to set the download server's packets to have a lower priority than the client's packets. Is there a way to set this in the Linux server?
AMD 64 Upgrade to testing last night killed my internet connection. The lan works, I can ping the dns server from my IP, however no mail, browser possible. Is something in testing broken again?
Currently I use openSUSE but the 6 months release cycle is starting to bug me a bit so yesterday I have tried Debian Testing daily snapshot created on 20-11-2010, using KDE desktop (I am a KDE fun). All goes well until I try to make a pppoe using KDE's module network manager.
I created the pppoe connection with user and password but I got 2 problems: - After I have created the connection it doesn't appear along with "Auto eth0" above the button manage connections. - The pppoe connection is not established (both password and username are correct).
I know that I could use pppoeconf or ceni for that matter, but I am new to debian as I where new to openSUSE 4 years ago and I am still learning, so please don't tell to use them I just want to know if there's a way to use network manager from kde 4.4.5 to establish a pppoe connection (you could name it the GUI way, no worries I like using the console as well). Under openSUSE I have a program called qinternet that helps me with pppoe connection is there something similar under Debian?
Using ubuntu 9.10 Karmic 64 bit Firefox version: 3.6.9 Mozilla Firefox for Ubuntu canonical - 1.0 about:config is default Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.9) Gecko/20100825 Ubuntu/9.10 (karmic) Firefox/3.6.9
When I access some websites, especially certain forums or atempt to post, the tab seems to be loading but doesn't do anything. If I then exit firefox I cannot ping anything (IP or address) in terminal. If I then open Epiphany it fixes everything until firefox next does this. This is happening from 1 - 10 times an hour and is starting to get to me.
For some reason my mail server (Postfix) seems to have stopped delivering mail.
The error in the mail logs is "status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused) against all mails.
I have researched to try and find an answer, most information on this problem seems to point to a malfunction in the Anti Virus and Spam Filtering solution.
I have checked that Amavisd and Clamd are both operating and have restarted Postfix but all to no avail, squirrelmail is not working either.. ie not even producing a login page.
I have not changed anything in the config and am just wondering if anyone has experienced similar and could point me in the right direction of a solution.
I would like to have all traffic from the ethernet connection out through the wireless (basically using the box as a router) however I am having some trouble doing this.
I have done this before on Windows however I am having some trouble doing this on linux, I have tried using Squid Proxy however I am having some trouble using configuring/using it.
I am using Yellow Dog Linux however I am willing to change to any other distro as long as it is compatable with PS3 (as this is what im using linux on)
How can I create a domain name for local purposes? for example I have a local web application environment in [URL] but I would like to have it in [URL] instead. I am using Ubuntu 10.04
I am running Ubuntu 10.10, and I would like to use my computer to share the internet connection from an ethernet port. For example, I would like to set up my computer as a wireless access point so I can create a network that other computers can connect to for internet.
My program is working. However, I would like to add in some features. Let see my code first
Code:
if (returnresult<=0) { printf("Connecting.... ");
[code]....
When the ethernet network connected, it will go into the else loop at line no. 13. The system will send status and display the status at control panel screen. If at this point, the ethernet disconnected, it will go back to the if loop at line 1. The system will keep trying to connect to the network and keep loop the if loop until it is connected.
Question now is I need the system to test the connection too after going into the operation loop that is start from the line no. 47. If the system went into the for (int c=0;c<cCOL;c++), it will need to do all the operations as indicated by cCOL times before it exit that loop and go into the previous loop.
I need the system to detect connection everytime an operation is going to happen or ended and if there is no connection, it will trying to connect. Before it is connected, it will not continue the operations. I tried to put the function "Connect (szPort, szAddress)" into each loop. Yes, the operation stop everytime the network disconnected. However, it shows on control panel screen "New Connection...." everytime it execute the statement. In fact, the network never disconnected.
I tried to look at the Connect function code, it is as below, I cannot figure out any statement that can stop the appearance of that "New Connection...". It may be hidden at the library source code, it is too hard for a beginner to modify the library code.
Code:
int Connect (char *szPort, char *szAddress) { /* Set the remote port */ int port; /* port number */
I have installed libapache2-mod-bw and it works great to throttle download speeds to the clients (i.e. - the bandwidth out of the server can be controlled just peachy).However, I need to limit the bandwidth *into* the server from specific networks because my WAN links are tiny and do not have QoS or shaping of any sort (I know, I know - contracts in place - will be fixed in November - not my design).I know that there are ways to throttle this at the interface level (e.g. - wondershaper) but I'd like to allow full bandwidth to the clients that are connected locally. The server in question is for web file transfers (under apache2 on 443) and expected file sizes are up to 2GB so a per-network limit would prove helpful.
I running Centos 5.3 on a computer with no internet access and no cdrom, i need to know how to keep it updated via USB stick. I have a 2 Gb USB stick, i am trying to update my centos machine and also update php and mysql with the testing repo packages. I am testing vBulletin 4 Publishing Suite and vBulletin 4 requirements are: PHP: 5.2.0 and MySQL:4.1.0 but Recommended: PHP: 5.2.6 or newer AND MySQL: 5.0.19 or newer.
mysql Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1
edit:i am trying to follow this guide: [URL]since i have no internet access, i have downloaded all files to my USB stick.i added the testing repo manually.is there a way to instruct centos to update these packages from my usb stick ? since i have them on USB, i can upload them on centos.
installed ubuntu 9.10.I am from India I use ADSLrouter to get connection in XP windows through WAN main port PPPoE.But after installing Ubuntu 9.10 I could not find my internet connected toMozill Firefox in Ubuntu 9.10.SO please tell me a way how to establish internet connection in Ubuntu 9.10 in a detaled way
I have been using the 3 OS regularly with no problems. But today suddenly, I had no internet connection with the 2 linux partitions which are complete independent, but no problems with windows. i can keep using the internet under windows with no problems.
I haven't touched any conf files.
I have a usb wifi internet connection.
I just noticed a change in my dmesg file when i start any of my 2 linux partitions.
I'm having a problem connecting to the Internet on my gNewSense installation. My Internet works fine through Ubuntu and Windows, but not through gNewSense, is there anyway of fixing this? Also, while searching around I found that somebody said I ought to type "dmesg" and copy the results.
Code: [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.24-24-generic (root@sandbox) (gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)) #1 SMP Thu Sep 10 19:00:20 UTC 2009 (Ubuntu 2.6.24-24.59gnewsense9-generic) [ 0.000000] BIOS-provided physical RAM map:
I just downloaded openSUSE 11 but I don't have an internet connection. I thought that it will find my cable connection automatically like Ubuntu does, but it didn't. It doesn't have a normal network configuration set-up, there is nowhere that it even gives me a choice to select local internet connection or a cable connection. What do I have to do to set it up.
I have just installed Ubuntu on my PC using Wubi. I am having trouble configuring Ubuntu to connect to the internet.I have a wireless network, using a WEP password.What are the steps to get connected?
I have dual boot in my laptop-X.P and linux ubuntu 8.10.I have set up internet connection in xp by Local area connection via Realtek PCI GBE family controller using IP address,d.gateway etc.my connection is wired.As i am new to linux, i do not know how to connect internet in linux ubuntu. please give me step by step instructions.
I am using centOS 5.My internet connection drops at irregular intervals and it restores only after reboot the system.Even if i deactivate and re-activate it using Newtwork cofiguration utility,It shows its active but it cannot open any page.
I am new to Linux. Just installed Ubuntu 10.04 few days back. The problem I am having is not able to connect to internet. Mine is direct cable connection using CAT5 cable terminted to my ethernet card. and I connect to the net using a dial-up connection. I think other end of the cable is terminated to a common switch.I have tried searching it over net. The only thing I could figure out is that I have to do some configuration on pppoe (am i right?)Are there any commands I have to enter or anything like we used to do in windows?
I have a Fedora core 3 box that I am trying to use to replace my current document server. This box was part of a domain at a different location previously. At this location we use a "work group" network. I have set the IP, Gateway, Subnet, and DNS servers. I can see the machine from my XP machine, but cannot get a connection to the internet?
I have just installed Linux Mint 8 Helena & it appears to be working well alongside my xp system. The problem I do have is setting up the much needed broadband connection. I have an adsl speedtouch330 usb modem, with tesco.net as my server, which works just fine on xp hence this mail. Am I missing something obvious, or have I got myself into depths much deeper & complex than I thought.
http://pastebin.com/raw.php?i=rykHdvBhbix.hu and www.yahoo.com are "pingable" test sites.127.0.0.1 could not be pinged [firewall drops all icmp]
i have a "oneliner" that echoes if theres "internet connection or no". $ ping -W 1 -c 2 bix.hu >& /dev/null && ping -W 1 -c 2 www.yahoo.com >& /dev/null && echo "internet connection ok" || echo "no internet connection"
I'm using Linux Mandrake 9.0 on my Dell 750MHz laptop. Linux is not making a dial-up connection, but modem test showed passed. Is there any utility to fix this problem. I have to often use dial-up connection.
I have just installed Ubuntu 9.04 on my daughters pc which also has xp installed as a dual boot.I am unable to access the internet via ethernet or wireless in Ubuntu however when booted into xp I am able to connect to the internet and my home network.Can anyone please help me work out how to get a ethernet and/or wireless connection working while booted in Ubuntu.
I want to connect to the internet on my fedora core 6 OS, i am using an adsl modem(Model no. : SmartAX MT841) which requires setting up a username and password. I am a newbie to linux, so i am clueless and just cant stop wondering what to do!