Displaying 17 results from an estimated 17 matches for "tcp_dport".
2007 May 10
6
PRIO and TBF is much better than HTB??
...x4web.de/up/htb_delay.jpg
HTB with prio parameter cumulative:
http://simo.mix4web.de/up/htb_cumul_prio_paramter.jpg
HTB with prio parameter delay:
http://simo.mix4web.de/up/htb_delay_prio_parameter.jpg
#define UPLOAD 1000kbps
dev eth0 1000 {
egress {
class ( <$high> ) if tcp_dport == 80;
class(<$low>) if tcp_dport == 22;
htb () {
class ( rate UPLOAD, ceil UPLOAD) {
/* with the prio parameter : $high = class ( rate 700kbps, ceil UPLOAD,
prio 0); */
$high = class ( rate 700kbps, ceil UPLOAD);
/* w...
2004 Dec 27
0
Ingress question with sub classes
.../ Internet device
dev $intDev {
// outgoing traffic
egress {
/* classification */
// very interactive
class (<$group1>)
//VPN Protocols
if ip_proto == 50
if ip_proto == 47
// Known very interactive
if tcp_dport == 23
// Our interactive sessions
if tcp_dport == 82
if tcp_dport == 8282
// voorlopig omdat ''combined'' spullen precies niet meer werken
// op kernel 2.4.24-axs-1
if tcp_dport == 22 && ip_tos_delay ==...
2004 Apr 16
1
tcng and ip_len
I can''t seem to match packets less than 512 bytes:
class( <$bulk> )
if tcp_dport == 81 && !( ip_len & 0xfe00 )
;
or
if tcp_dport == 81 && ip_len < 512
Both rules match any packet I send to port 81, even when the total IP length
is much greater than 512 bytes:
class htb 2:4 parent 2:1 leaf 5: prio 1 rate 8000bps ceil 24000bps burst 6Kb
cburst 1839b
Se...
2004 Jul 14
1
tcng/tc setup
...s/2
#define medadsl 400kbps/2
#define midadsl 300kbps/2
#define lowadsl 200kbps/2
#define intadsl 150kbps/2
#define vloadsl 100kbps/2
#define noadsl 50kbps/2
dev INTERNET {
$meter = trTCM( cir 128kbps, cbs 10kB, pir 200kbps, pbs 10 kB );
egress {
class(<$lanssh>)
if tcp_sport == 22 || tcp_dport == 22
if ip_src == LAN_IP || ip_dst == LAN_IP;
class(<$dmzssh>)
if tcp_sport == 22 || tcp_dport == 22
if ip_src == DMZ_IP || ip_dst == DMZ_IP;
class(<$ssh>)
if tcp_sport == 22 || tcp_dport == 22
if ip_tos_delay==1 ;
class(<$smtp>)
if tcp_sport == 25 || tcp_...
2004 Jun 07
0
Hierarchy of HTBs
...with ''em */
class ( <$local> ) if ip_dst == 10.0.0.0/8 ;
class ( <$external> ) if ip_dst != 10.0.0.0/8 ;
class ( <$vpn> ) if ip_dst == 192.168.100.0/24 || \
ip_dst == 192.168.101.0/24 ;
class ( <$lpr> ) if tcp_dport == PORT_PRINTER || \
tcp_dport == PORT_PRINTER_AGENT || \
tcp_dport == PORT_PRINT_SRV ;
class ( <$other> ) if 1 ;
/* section in which we configure the qdiscs and classes */
htb () {
class ( rate 100Mbps, ceil 100Mbps ) {...
2007 Apr 25
0
problem with prio qdisc and tcng
...st a sample configuration and looks like this:
#include "fields.tc"
#include "ports.tc"
#define X16(i) i i i i i i i i i i i i i i i i
dev ppp0 {
dsmark {
prio(bands 6, priomap X16($be)) {
class if ip_proto == IPPROTO_UDP;
class if tcp_dport == PORT_TELNET;
class if tcp_dport == PORT_HTTP;
class if tcp_dport == PORT_SMTP;
class if ip_dst == 10.0.10.10;
$be = class(6);
}
}
}
The tc-Code looks like this:
# ================================ Device ppp0
================================...
2007 Feb 19
0
Absolute Maximal Bandwidth
...eth0 {
ingress
{
$inpolicer = SLB ( cbs 100kB, cir 200Mbps );
class (<$whatever>) if SLB_ok ($policer);
drop if 1; /* Drop the traffic exceeding the 200mbit rate */
}
egress
{
$egpolicer = SLB (cbs 100kB, cir 200Mbps );
class (<$ftp>) if (ip_dst == 10.1.1.1 && tcp_dport == 21 &&
SLB_ok ($egpolicer));
class (<$web>) if (tcp_dport == 80 && SLB_ok ($egpolicer));
class (<$oth>) if SLB_ok ($egpolicer); /* classify to oth if
max bw not exceeded */
drop if 1; /* I assume we reached max bw if we get here? */
htb(){ ... }
}
}
The...
2004 Sep 07
1
tcng and scheduling ssh
...lude "fields.tc"
#include "ports.tc"
dev "eth0" {
egress {
// Voice traffic
class (<$voice>)
if udp_dport >= 20000 && udp_dport <= 23000;
// SSH connections
class (<$interactive>)
if tcp_dport == PORT_SSH;
// Everything else
class (<$other>)
if 1;
prio {
$voice = class { fifo; }
$interactive = class { fifo; }
$other = class { fifo; }
}
}
}
So, this should be a simple prio queue, with the above udp...
2004 Oct 23
0
error making htb example
...#include "ports.tc"
#define INTERFACE eth0
dev INTERFACE {
egress {
/* In class selection path, the filters come first! DSmark */
class ( <$ssh> ) if tcp_sport == 22 && ip_tos_delay == 1 ;
class ( <$audio> ) if tcp_sport == 554 || tcp_dport == 7070 ;
class ( <$bulk> ) \
if tcp_sport == PORT_SSH || tcp_dport == PORT_HTTP ;
class ( <$other> ) if 1 ;
/* section in which we configure the qdiscs and classes */
htb () {
class ( rate 600kbps, ceil 600kbps ) {...
2002 Dec 31
3
[tcng] More complex example?
...uces a "inferno.tc:8: qdisc "tbf" has no
classes near "prio"" when run through tcc.
dev eth1 {
egress {
tbf (rate 128kbps, burst 64kb, limit 64kb, mtu 1510B) {
prio (bands 2) {
$ssh_fast = SLB(cir 32kbps, cbs 3kB);
class if ((tcp_sport == 22 || tcp_dport == 22) &&
SLB_ok($ssh_fast));
class if 1;
}
}
}
}
Are there any examples of tcng scripts that do something slightly more
complex than those in the tcng tarball?
don
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
ht...
2005 May 14
1
Need some help
...= 4666
if tcp_sport == 6882
if tcp_sport == 6346
class ( <$ftp> )
if tcp_sport == 21
if tcp_sport == 22 || ip_tos_delay == 1
if tcp_sport == 6667 || tcp_dport == 7000;
class ( <$def> )
if 1 ;
htb () {
class ( rate 256kbps, ceil 256kbps ) {
$p2p = class ( rate 56kbps, ceil 128kbps ) { sfq; } ;
$ftp = class (...
2006 Jun 23
2
TCNG question
Hey all, i have a class.
class ( <$call1> ) if ip_dst == 10.100.1.6 && tcp_dport == 22
if ip_src == 10.100.1.4 && tcp_sport == 22
;
Now when i apply this traffic TO 6 on port 22 is indeed limited to the speed
i specify BUT it doesn''t seem to take the src into account at all. If i
change the src to anything, even an address that do...
2004 May 05
3
Simple HTB setup with tcng
Hello all,
I am trying to set up a simple htb based system, where packets with
source ip 10.0.0.1 should have their own class.
I plan to use tcng to set it up easier.
Is there something wrong in my tcng file ?
~/tcng$ cat htb
/*
*/
#include "fields.tc"
#include "ports.tc"
dev eth0 {
htb ( ) {
class ( rate 600kbps, ceil 600kbps )
{
2005 Jul 06
8
HTB and bittorrent, won''t work
...-j MARK --set-mark 2
iptables -t mangle -A lay7 -o eth1 -m mark --mark 2 -j CLASSIFY --set-class
2:3
### HTB RULES ###
#define UPLOAD eth1
#define UPRATE 25kBps
#define P2P 10kBps
dev UPLOAD {
egress {
class ( <$emule> ) ;
class ( <$smtp> ) ;
class ( <$ssh> ) if tcp_dport == 8080 ; /*Changed port from 22 to 8080 */
class ( <$otro> ) if 1 ;
htb () {
class ( rate UPRATE, ceil UPRATE ) {
$emule = class ( prio 8, rate 6kBps, ceil P2P ) { sfq; } ;
$smtp = class ( prio 1, rate 6kBps, ceil 12kBps ) { sfq; } ;
$ssh = class ( pri...
2005 Jul 07
1
HELP PLEASE BITTORRENT SHAPING (HTB)
...j lay7POST
iptables -t mangle -A PREROUTING -j ipp2pPRE
iptables -t mangle -A POSTROUTING -j ipp2pPOST
### TCNG RULES ###
#define UPLOAD eth1
#define UPRATE 25kBps
#define P2P 10kBps
dev UPLOAD {
egress {
class ( <$smtp> ) ;
class ( <$ssh> ) if tcp_dport == 8080 ;
class ( <$ack> )
if ip_hl == 0x5 &&
(ip_len & 0xffc0) &&
(raw[33].b >> 4) & 1 ;
class ( <$otro> ) if 1 ;
class ( <$p2p> )...
2007 Apr 25
3
PPPoE and shaping
Hi all,
I have a little problem with my home-made slackware linux server.
Here is the scenario:
1. I have a local wifi network
2. my server do masquerading and exit in internet via a PPPoE connection
Goals:
1. not use SQUID
2. shaping the traffic with classes
3. emule connection must have minimum priority and a band-limit of
10KBytes/s in uplink (server--->internet)
Any idea?
Thx,
Diego
--
2004 May 05
1
Re: [Fwd: Re: Simple HTB setup with tcng]
...> > tcp_sport == 80 ||
> > > tcp_sport == 110 ||
> > > udp_sport == 53 ||
> > > tcp_ack;
> > >
> > > class ( <$medium> ) if tcp_dport == 25;
> > >
> > > class ( <$low> ) if 1;
> > >
> > > htb () { class ( rate LAN_EGRESS kbps ) {
> > >
> > > $ppp = class ( prio 1, rate 56 kbps )
> > > { sfq ( perturb 10 sec...