From: Edgar <donvodka@gmail.com>
To: lartc@vger.kernel.org
Subject: [LARTC] PLEASE HELP! SHAPING P2P STILL NOT WORKING
Date: Tue, 12 Jul 2005 00:10:47 +0000 [thread overview]
Message-ID: <200507111910.47677.donvodka@gmail.com> (raw)
Hello, some days ago, I was asking for help here about not able to do anything
when I had bittorrent running, I will post the problem here:
I'm using ipp2p to mark p2p packets, and then send them with -j CLASSIFY to
the correct HTB class, I see traffic in the class when I start azurerus, and
traffic does get shaped, but then I'm still not able to surf the web nor chat
nor anything, and I find this very weird, since the traffic is actually
shaped, then what am I missing? anyone had a similar problem? I really don't
know why this is happening, and I've tried lots of different setups but the
problem remains. This is in the server, which NAT the connections to 2
computers at home, I will know post the tcng rules, and the iptables rules
too:
IPTABLES RULES:
iptables -t mangle -A PREROUTING -p tcp -m ipp2p --ipp2p -j MARK --set-mark 3
iptables -t mangle -A PREROUTING -p udp -m ipp2p --bit -j MARK --set-mark 3
iptables -t mangle -A PREROUTING -p tcp -m mark --mark 3 -j CONNMARK
--save-mark
iptables -t mangle -A ipp2pPOST -o $DEV -m mark --mark 3 -j CLASSIFY
--set-class $P2P
TCNG FILE, AND TC CLASSES
#define UPLOAD eth1
#define UPRATE 25kBps
#define P2P 10kBps
dev UPLOAD {
egress {
class ( <$prio> ) ;
class ( <$p2p> ) ;
class ( <$interactive> )
/* ACK packets go in this class */
if ip_hl = 0x5 &&
! (ip_len & 0xffc0) &&
(raw[33].b >> 4) & 0xff
if 1 ;
htb () {
class ( rate UPRATE, ceil UPRATE ) {
$prio = class ( prio 0, rate 6kBps, ceil
UPRATE ) { sfq; } ;
$p2p = class ( prio 7, rate 1kBps, ceil P2P )
{ sfq; } ;
$interactive = class ( prio 1, rate 18kBps,
ceil UPRATE ) { sfq; } ;
}
}
}
}
CLASSES
class htb 2:1 root rate 200000bit ceil 200000bit burst 1624b cburst 1624b
class htb 2:2 parent 2:1 leaf 3: prio 0 rate 48000bit ceil 200000bit burst
1605b cburst 1624b
class htb 2:3 parent 2:1 leaf 4: prio 7 rate 8000bit ceil 80000bit burst 1600b
cburst 1609b
class htb 2:4 parent 2:1 leaf 5: prio 1 rate 144000bit ceil 200000bit burst
1617b cburst 1624b
As you can see here, class 2:3 stands for the p2p class, and that's where I
send the marked p2p packets, I don't see why this configuration is not
working, please help me out with this. Thank you in advance
EDGAR MERINO
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
reply other threads:[~2005-07-12 0:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200507111910.47677.donvodka@gmail.com \
--to=donvodka@gmail.com \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.