LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-13-2007, 03:26 PM   #1
yawe_frek
Member
 
Registered: Sep 2005
Distribution: feather 0.72-usb, DSL,CentOS,Ubuntu, Redhat 9
Posts: 144

Rep: Reputation: 15
ipt_CONNMARK modules still not working on P2p


guss,

i have gotten all things to limit the bandwidth to be consumed my P2p but its not still limiting it.

my rules isset like this:

tc qdisc add dev eth0 root handle 1:0 htb r2q 1
tc qdisc add dev eth1 root handle 2:0 htb r2q 1

tc class add dev eth0 parent 1:0 classid 1:1 htb rate 102400kbit ceil 102400kbit quantum 20000
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 102380kbit ceil 102400kbit
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 20kbit ceil 25kbit

tc class add dev eth1 parent 2:0 classid 2:2 htb rate 102400kbit ceil 102400kbit
tc class add dev eth1 parent 2:2 classid 2:10 htb rate 102380kbit ceil 102400kbit
tc class add dev eth1 parent 2:2 classid 2:12 htb rate 20kbit ceil 25kbit

iptables -A PREROUTING -t mangle -p tcp -j CONNMARK --restore-mark
iptables -A PREROUTING -t mangle -p tcp -m mark ! --mark 0 -j ACCEPT
iptables -A PREROUTING -t mangle -p tcp -m ipp2p --ipp2p -j MARK --set-mark 22
iptables -A PREROUTING -t mangle -p tcp -m mark --mark 22 -j CONNMARK --save-mark

iptables -A POSTROUTING -t mangle -o eth0 -m mark --mark 22 -j CLASSIFY --set-class 1:12
iptables -A POSTROUTING -t mangle -o eth1 -m mark --mark 22 -j CLASSIFY --set-class 2:12

pls am i wrong some where. i need helppp

THANKS
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help on ipt_CONNMARK modules yawe_frek Linux - Networking 2 09-13-2007 07:59 AM
Getting lirc modules working kzar Debian 0 01-25-2005 04:58 PM
Risk of Linux P2P vs. Windows P2P software snatale1 Linux - Software 2 12-04-2004 07:14 PM
Ventrilo in P2P under Linux....working :-) otchie1 Linux - Games 0 11-04-2004 07:37 PM
modconf not working, no modules irks Linux - Newbie 1 07-01-2004 09:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration