search for: tcp_sport

Displaying 19 results from an estimated 19 matches for "tcp_sport".

Did you mean: tcp_dport
2005 May 14
1
Need some help
...with towards router always full. Thanks P.S.: sorry for my very bad english :) ############# script ######### /* *Simply tcng traffic control file. */ #define INTERFACE eth1 dev INTERFACE { egress { class( <$p2p> ) if tcp_sport == 4662 if udp_sport == 4672 if udp_sport == 4666 if tcp_sport == 6882 if tcp_sport == 6346 class ( <$ftp> ) if tcp_sport == 21...
2005 Jan 02
0
Performance Loss with HTB/tcng?
Hi, I try to shape my incoming traffic. I have 2MBit/s DSL bandwith and the following ruleset (on the internal interface): $INT="eth1"; $INT_NET=192.168.1.0; $MAX_IN=2Mbps; dev $INT { egress { class (<$int>) if ip_src:24 == $INT_NET; class (<$ssh>) if tcp_sport == PORT_SSH; class (<$smtp>) if tcp_sport == PORT_SMTP; class (<$http>) if tcp_sport == PORT_HTTP; class (<$http>) if tcp_sport == PORT_HTTPS; class (<$nntp>) if tcp_sport == PORT_NNTP; class (<$nntp>) if tcp_sport == PORT_NNTPS; class (<$oth...
2004 Jul 14
1
tcng/tc setup
...ine highadsl 500kbps/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_...
2004 May 24
1
Newbie STILL trying to limit bandwidth - is this script wrong?
...st priority). I''ve tried adapting an existing tcng script into this: --------------------------------------------------------------------- #include "fields.tc" #include "ports.tc" #define INTERFACE eth0 dev INTERFACE { egress { class ( <$ssh> ) if tcp_sport == 22 ; class ( <$audio> ) if tcp_sport == 554 || tcp_sport == 7070 ; class ( <$web> ) if tcp_sport == 80 ; class ( <$other> ) if 1 ; htb () { class ( rate 600kbps, ceil 600kbps ) { $ssh = class ( rate 64kbps, ceil 128k...
2005 Jul 20
1
how to define a port range?
hi, i´am new in tcc (tcng). i try to define my qos for VoIP-Services. For this i wantto define a class for a port range 10000 till 15000. how is the right way? this down works: class (<$voip>) if tcp_sport => 10000 || tcp_sport <= 10000 ; are there any examples of real installations - maybe including VoIP, HTTP and P2P services? regards thorsten gehrig
2006 May 29
3
TCNG HTB priority and bandwidth
Hi, I have several users on the lanside each allocated separate IP addresses. I need to allocate th traffic to each IP addresses certain portion of total uplink. Say, 192.168.0.2 rate 128kbps, ceil 128kbps. 192.168.0.3 rate 65kbps, ceil 128kbps 129.168.0.4 rate 64kbps, ceil 64kbps. and so on.... Also, for each user i would like to prioritize the traffic within the allocated bandwidth. say for
2004 Oct 23
0
error making htb example
...L, the callouts are * clickable links to the description text.) * */ #include "fields.tc" #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 th...
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 ) {
2006 May 20
1
Hi, a important doubt
How can i put a port range in a tcng or tc configuration > > Does somebody know??? > > It´s important, cause i need to regulate the bandwidth from the TCP port > 1054 until TCP port 1200, how can i do that???????? > > _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
2005 Apr 27
0
Ingress and polishing
...maxDownstream / 4; $medium_pir = $maxDownstream / 4 * 2; $low_cir = $maxDownstream / 4; $low_pir = $maxDownstream / 4; // variables to make categories $is_medium = (tcp_sport == PORT_SMTP); $is_low = 1; // Double Leaky Buckets $is_medium_pol = DLB(cir $medium_cir bps,cbs 20kB,pir $medium_pir bps,pbs 5kB); $is_low_pol = DLB(cir $low_cir bps,cbs 20kB,pir $low_pir bps,pbs...
2004 Aug 04
0
simulating RED using tcsim question
...t destination from router host { dev output_eth0 10 Mbps dev output_eth1 100 Mbps route 10.0.0.2 netmask 255.0.0.0 output_eth1 } connect inputA_eth0 router_eth0 connect inputB_eth0 router_eth1 connect router_eth2 output_eth0 every 0.002s until 5s send inputA_eth0 TCP_PCK($tcp_sport = PORT_HTTP); every 0.002s until 5s send inputB_eth0 TCP_PCK($tcp_sport = PORT_SSH); time 6s end _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
2004 Sep 07
0
TCNG Port Range
I''d like to set up a filter based on a port range. I tried something like class( <$test> ) if tcp_sport > 2001 && tcp_sport < 2015 ; But it seems to ''hang'' with this in there.. Is this the best/right way to go about this? if not, what is the best way? Thanks _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman...
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 Sent
2004 Dec 27
0
Ingress question with sub classes
...voorlopig omdat ''combined'' spullen precies niet meer werken // op kernel 2.4.24-axs-1 if tcp_dport == 22 && ip_tos_delay == 1 // ICMP if ip_proto == 1; // update server class (<$group2>) if tcp_sport == 4000; // default class (<$rest>) if 1; /* Queueing */ htb ( ) { /* rate is what they normally get, ceil is the maximum they can get when borrowing from the parent */ /* this is the surrounding class. limit the upstream...
2002 Dec 31
3
[tcng] More complex example?
...ttempt (below) produces 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...
2006 May 28
0
TCNG HTB Branching the class not working. (bug or what)
...*/ dev LANSIDE { htb() { //Main link bandwidth class (rate 128kbps, ceil 128kbps) { //Client 1 class (rate 128kbps, ceil 128kbps) if ip_dst == 192.168.0.9 { class (prio 1, rate 128kbps, ceil 128kbps) if tcp_sport == 80; class (prio 2, rate 128kbps, ceil 128kbps) if 1; } //Client 2 class (rate 64kbps, ceil 64kbps) if ip_dst == 192.168.0.20 { class (prio 1, rate 64kbps, ceil 64kbps) if tcp_sport ==80; cl...
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 doesn''t exist it still limits the speed. I need this class to...
2004 May 05
1
Re: [Fwd: Re: Simple HTB setup with tcng]
...> > > > egress { > > > class ( <$ppp> ) if meta_nfmark == 0x7; > > > > > > class ( <$high> ) if ip_proto == IPPROTO_ICMP || > > > ip_tos == 0x10 || > > > tcp_sport == 80 || > > > tcp_sport == 110 || > > > udp_sport == 53 || > > > tcp_ack; > > > > > > class ( <$medium> ) if tcp_dport == 25; > > > > > >...
2005 Jul 06
8
HTB and bittorrent, won''t work
Hello, I''ve been trying to shape the bittorrent traffic (on my external interface, upload), but without luck, for this I''m using layer7 filter right now, but I''ve also tried ipp2p, with the same results, I might say that this is not a problem with this packet classifiers, the problem is with HTB, here''s why. When I open azureus (the bittorrent client I