10-31-2009
Bandwidth shaping on specific port
Hi,
I've been looking for a few hours now, reading various docs and man pages, but the info I found so far is either not what I was looking for or I just don't get how to do the thing I need....
So, my "problems" is that I have a server running on a specific port and I need to shape traffic only on this port (7979) in order to reduce bandwidth. I want it to only have a max up speed of 10 KB/s and max down speed of 10 KB/s also. What I've been looking for for the past few hours is a command or some other shaping software that will be able to limit the incoming & outgoing bandwidth only on this port. I read the man pages of 'tc' but I didn't get much wiser from it, so I came asking here in the hope someone could provide me with the commands and their params how to do that or offer another solution, if possible. I'm on Linux btw
Thanks
10 More Discussions You Might Find Interesting
1. IP Networking
Hello All
I am running redhat linux 7.2 and would like to know how i can block telnetting to a specified port .
say for example i would like to block telnet acesses to port 80.
regards
Xiamin (5 Replies)
Discussion started by: xiamin
5 Replies
2. Solaris
Hi,
Anyone know how I can log all input - when a user logs in to a specific port number ie if user telnet to port specifically telnet 0 4800
I want to log all input that the user inputs..
Is this possible??
Is the sun solaris forum the correct forum or should this perhaps go... (10 Replies)
Discussion started by: frustrated1
10 Replies
3. Shell Programming and Scripting
H,
I want to know the ip of the devices connected to a specific port.
Suppose 2 s/m's are connected to port 3092. I want to get the ip of those system's .
how do i get it? (1 Reply)
Discussion started by: madhumathikv
1 Replies
4. UNIX for Advanced & Expert Users
Hi all,
I have a problem. I have machine names and their IP addresses in /etc/hosts file. My application does telnet on that machine host name. The application does not uses IP address for tenet. It will fetch the host name from /etc/hosts file.
Now the telnet server runs on customized port.... (6 Replies)
Discussion started by: zing_foru
6 Replies
5. Solaris
Dear members,
My release is open Solaris b103
1- How to know the opening port in my system
2- How to open a specific port like port number 53
3- How to closed the specific port like port number 53
Your feedback highly appreciated (10 Replies)
Discussion started by: dellroxy
10 Replies
6. Solaris
Hi All,
Can anyone let me know that how to open a specific port in Solaris 10. I just wanted to know if there are some certain commands to open a port (like ftp, telnet).
It would be also better if someone can tell me if there is another firewall service in Solaris 10 except ipfilter.
... (6 Replies)
Discussion started by: naw_deepak
6 Replies
7. UNIX for Dummies Questions & Answers
Hi, I would like to write a shell script that will:
-search the files of a specific user to find any audio files with a bandwidth iqual or greater than 192 kps
- on the results i should see the file name along with all the whole file route and each file's size
So I guess i should be using... (1 Reply)
Discussion started by: ubu-user
1 Replies
8. Shell Programming and Scripting
I have a script that runs right before a daily reboot that captures the amount of MB transmitted up and pulled down since last reboot.
echo `date +"%m-%d-%y"``grep eth0 /proc/net/dev | awk '{print ","$2/1024/1024","$10/1024/1024}'`>>/home/nick/bandwidth.logIn looking at the raw output of... (1 Reply)
Discussion started by: nbsparks
1 Replies
9. Shell Programming and Scripting
Hello again people,
I currently searching for a code/script that will allow it to check if a specific port is open, lets say 123. Found a public script on a ftp but I dont know how and what to modify in it to suit my needs. (I think this is a evil code and I want to use it as an example).
... (3 Replies)
Discussion started by: galford
3 Replies
10. Solaris
Hi,
I need to block ssh port 22 from all the servers except one server ip.
Until solaris11.3 and below, I used to do like below(under /etc/ipf/ipf.conf),and it's working fine
pass in quick from $server_ip to any port=22
block in quick from any to any port=22
But I tried almost same in... (1 Reply)
Discussion started by: Sumanthsv
1 Replies
LEARN ABOUT DEBIAN
shorewall-tcinterfaces
SHOREWALL-TCINTERFA(5) [FIXME: manual] SHOREWALL-TCINTERFA(5)
NAME
tcinterfaces - Shorewall file
SYNOPSIS
/etc/shorewall/tcinterfaces
DESCRIPTION
This file lists the interfaces that are subject to simple traffic shaping. Simple traffic shaping is enabled by setting TC_ENABLED=Simple
in shorewall.conf[1](5).
A note on the bandwidth definition used in this file:
o don't use a space between the integer value and the unit: 30kbit is valid while 30 kbit is not.
o you can use one of the following units:
kbps
Kilobytes per second.
mbps
Megabytes per second.
kbit
Kilobits per second.
mbit
Megabits per second.
bps or number
Bytes per second.
k or kb
Kilo bytes.
m or mb
Megabytes.
o Only whole integers are allowed.
The columns in the file are as follows (where the column name is followed by a different name in parentheses, the different name is used in
the alternate specification syntax).
INTERFACE
The logical name of an interface. If you run both IPv4 and IPv6 Shorewall firewalls, a given interface should only be listed in one of
the two configurations.
TYPE - [external|internal]
Optional. If given specifies whether the interface is external (facing toward the Internet) or internal (facing toward a local network)
and enables SFQ flow classification.
Note
Simple traffic shaping is only useful on interfaces where queuing occurs. As a consequence, internal interfaces seldom benefit from
simple traffic shaping. VPN interfaces are an exception because the encapsulated packets are later transferred over a slower
external link.
IN-BANDWIDTH (in_bandwidth) - {-|bandwidth[:burst]|~bandwidth[:interval:decay_interval]}
The incoming bandwidth of that interface. Please note that you are not able to do traffic shaping on incoming traffic, as the traffic
is already received before you could do so. But this allows you to define the maximum traffic allowed for this interface in total, if
the rate is exceeded, the packets are dropped. You want this mainly if you have a DSL or Cable connection to avoid queuing at your
providers side.
If you don't want any traffic to be dropped, set this to a value to zero in which case Shorewall will not create an ingress qdisc.Must
be set to zero if the REDIRECTED INTERFACES column is non-empty.
The optional burst option was added in Shorewall 4.4.18. The default burst is 10kb. A larger burst can help make the bandwidth more
accurate; often for fast lines, the enforced rate is well below the specified bandwidth.
What is described above creates a rate/burst policing filter. Beginning with Shorewall 4.4.25, a rate-estimated policing filter may be
configured instead. Rate-estimated filters should be used with ethernet adapters that have Generic Receive Offload enabled by default.
See Shorewall FAQ 97a[2].
To create a rate-estimated filter, precede the bandwidth with a tilde ("~"). The optional interval and decay_interval determine how
often the rate is estimated and how many samples are retained for estimating. Please see
http://ace-host.stuart.id.au/russell/files/tc/doc/estimators.txt for details.
OUT-BANDWIDTH (out_bandwidth) - [rate[:[burst][:[latency][:[peek][:[minburst]]]]]]
Added in Shorewall 4.4.13. The terms are defined in tc-tbf(8).
Shorewall provides defaults as follows:
burst - 10kb
latency - 200ms
The remaining options are defaulted by tc(8).
FILES
/etc/shorewall/tcinterfaces.
SEE ALSO
http://ace-host.stuart.id.au/russell/files/tc/doc/sch_tbf.txt
http://ace-host.stuart.id.au/russell/files/tc/doc/estimators.txt
shorewall(8), shorewall-accounting(5), shorewall-actions(5), shorewall-blacklist(5), shorewall-hosts(5), shorewall_interfaces(5),
shorewall-ipsets(5), shorewall-maclist(5), shorewall-masq(5), shorewall-nat(5), shorewall-netmap(5), shorewall-params(5),
shorewall-policy(5), shorewall-providers(5), shorewall-proxyarp(5), shorewall-rtrules(5), shorewall-routestopped(5), shorewall-rules(5),
shorewall.conf(5), shorewall-secmarks(5), shorewall-tcpri(5), shorewall-tcrules(5), shorewall-tos(5), shorewall-tunnels(5),
shorewall-zones(5)
NOTES
1. shorewall.conf
http://www.shorewall.net/manpages/shorewall.conf.html
2. Shorewall FAQ 97a
http://www.shorewall.net/FAQ.htm#faq97a
[FIXME: source] 06/28/2012 SHOREWALL-TCINTERFA(5)