Upload problem with traffic shaping though a Linux router.
So I want to limit the download and upload speed of a specific ip adress in a local network. To do this I are using a bach script running in a linux OS (Ubuntu 11.04). The issue here is that the upload shaper does not work. I have tried an alternate solution aswell though that does not work as intended
# Remove old shaping
tc qdisc del dev eth1 root 2> /dev/null > /dev/null
tc qdisc del dev eth1 ingress 2> /dev/null > /dev/null
# Download shaper (works as intended)
tc class add dev eth1 parent 1:1 classid 1:4 htb rate 30000kbt
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.0.101/32 flowid 1:4
# Upload shaper (does not seam to do anything)
tc class add dev eth1 parent 1:1 classid 1:3 htb rate 3000kbit
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip src 192.168.0.101/32 flowid 1:3
### Version 2 of the upload shaper:
# Need eth0 aswell to do this
tc qdisc add dev eth0 root handle 1: htb default 30
# Upload shaper (limits the entire network and not just the one IP)
# The reason for 192.168.0.101/0 is because the src is 10.0.0.166. 10.0.0.166 is the WAN IP adress. I dont get why this is.
# I dont know why i need to change it to eth0 either. It does nothing if i dont.
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 3000kbit
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 192.168.0.101/0 flowid 1:3
how does a router directs the internet traffic to a specific host in the private network?
Example:
My PC has ip 192.168.134.100
Router has ip 192.168.134.200
My company's ip 202.52.150.33
When i try to access internet, say google, it traverses from... (1 Reply)
hello,
I have a postfix & a local dns running on a single server.
this server is connected to internet via a low bandwidth line(with fixed ip).
we also have another high speed adsl (dynamic ip).
i want to divert all dns request from the local dns & postfix
from the server to the adsl... (0 Replies)
Hi all,
How can I monitor packet traffic on my wireless router?
Some info
- my wireless router is netgear wgr614
- everyone can connect it i.e. no password required
- I would like to see where they connect, how they are using the internet connection
I installed wireshark and captured... (3 Replies)
Not sure if this considered traffic shaping or not, so I'll appreciate the enlightenment...
Setup- Mac Pro, Mac OS X 10.5.6, Crashplan Pro Backup server.
the Mac Pro has 2 E-net ports, en0, en1.
Both E-net ports are connected to the same network, different IP's.
Problem-
We are planning to... (1 Reply)
What exactly is the difference between ingress and egress in traffic shaping, what does it mean when we say that imq provies ingress shaping using egress qdisks? (3 Replies)
Hello all,
I have installed ubuntu hardy and for some testing I have configured sendmail on it.
I have a router facing the internet and I am having hard time configuring the router to allow traffic on port 25 to my server. I have a BCM96338 ADSL Router. I have set iptable rules to allow the... (0 Replies)
I'm using FreeBSD because I like how easy the system can be set up, how software can be installed/removed and ... many other reasons:-) But there is a thing I don't know how to deal with: I have few connections behind a machine and I want to give to the machines behind a minimum guaranteed... (2 Replies)
FLUSH(1) General Commands Manual FLUSH(1)NAME
Flush - GTK-based BitTorrent client
SYNOPSIS
flush [OPTIONS] [TORRENT_FILE]...
DESCRIPTION
Flush is a GTK-based BitTorrent client. You can use it to download files from the BitTorrent network.
You can control already running instance, for example, by following commands:
flush -o --download-rate-limit=100
flush --start=all
FEATURES
* Controlling running instance by command line interface, such as:
* Starting/stopping torrents.
* Changing download/upload rate limit.
* Changing maximum connections limit.
* Running many instances with different configs from the same user.
* Automatic copying finished downloads to specified directory.
* Setting custom download path for each file of the torrent.
* Ability to choose torrent file's character set encoding.
* Automatic torrents loading from specified directory.
* Automatic pausing and removing old torrents.
* Temporary pausing and resuming torrents.
* Overall and current session statistics.
* Creating your own torrent files.
* IP filter.
OPTIONS --version
Show program version and exit.
--help Show help options and exit.
--config=DIRECTORY
Configuration directory path (default: ~/.flush).
--download-rate-limit=SPEED
Set download rate limit (KB/s).
--upload-rate-limit=SPEED
Set upload rate limit (KB/s).
--max-uploads=NUMBER
Set maximum uploads.
--max-connections=NUMBER
Set maximum connections.
--start={all,downloads,uploads}
Start torrents.
--stop={all,downloads,uploads}
Stop torrents.
-o, --only-pass
Only pass commands to already running Flush instance. Does not start new instance if it is not running yet.
FILES
~/.flush
Default configuration directory.
BUGS
On startup Flush finds already running instances via DBus session bus. Therefore it is necessary to run Flush in a single session bus
(usual in X session bus) to prevent running several instances with one configuration path.
Please notice that when you are running Flush from console or by cron, when DISPLAY environment variable is not available, Flush finds
already running GUI instance without problems via ${config_path}/dbus_session link, which all GUI instances are creating when they have
owned DBus name. This makes it possible to control running Flush GUI instances from cron.
AUTHOR
Flush was written by Dmitry Konishchev <konishchev@gmail.com>.
This manual page was written by Dmitry Konishchev <konishchev@gmail.com>.
Jun 11, 2009 FLUSH(1)