You are not logged in.
Hi! I'm running 3 computers on 1 d-link router, 2 of them has an archlinux installed. Wondershaper mostly works for me when the other computers has cfosspeed running on windows, but when both computers run archlinux and wshaper and p2p applications, ping is over 1000ms instead of 10-20ms.
Which is the best solution of traffic shaping on linux, and is there a howto for them (can be even a gentoo wiki page or similar)?
Edit: shorewall is not being built from yaourt (x86_64), can't find a usable manual for trickle and niceshaper, (even ubuntu forums has unreplied "threads" about it) and can't start them coz missing config files, it seems, noone cares about ACK priority and ping in the Linux world ![]()
Last edited by Vegita (2010-02-24 19:58:07)
Offline
tc
This is what I read before and works good for the server I'm building:
http://stackoverflow.com/questions/1548 … nder-linux
Pretty easy to setup and no problems for the last six months I've been using it.
Setting Up a Scripting Environment | Proud donor to wikipedia - link
Offline
thanks, I'm trying pyshaper at the moment, but actually I only need one thing: ACK packets priority on top. Do you have an ideas for this?
Offline
This config file is being used on 2 computers, and not working, my speed is 8m/1m. Any ideas? I don't want to limit anything, I just want ACK's priority to set to the highest, and same with http, and get p2p apps (opn this computer ktorrent and valknut, on the other ktorrent) priority on lowest. valknut's port is 1412, ktorrents' one is 6881 on this and 24748 on the other computer. Any ideas what to modify for small ping?
# shaping config script for pyshaper
# for more information about pyshaper configuration, refer to the
# file 'pyshaper.conf.readme', and the examples therein
# set the connection-scanning period to 15 seconds (which is very
# aggressive). IF you're more concerned about longer-running
# connections, set this to a longer value (say, 60-300 seconds).
period 30
# declare one network interface, and set its inbound
# and outbound bandwidth in kbits/sec
eth0.ip 192.168.0.180
eth0.in 8096
eth0.out 1024
# This is a test scenario - we're throttling all replies
# from our webserver to max 16kbits/sec, but only if
# the remote client is shell.sourceforge.net
# note - the identifiers 'out', 'pri', 'rate', 'ceil' 'http' and 'test'
# have special meaning (see pyshaper.conf.readme).
# the identifier 'http' is not significant - you can replace
# it with anything, as long as your setup is consistent
# we're setting up a basic 'class' called 'http'
eth0.http.pri 1
eth0.http.out.rate 968
eth0.http.out.ceil 1024
eth0.http.test raddr=='66.35.250.208' and lport == 80
eth0.p2p.test (cmd == '/usr/bin/valknut')
eth0.p2p.test (cmd == '/usr/bin/ktorrent')
eth0.p2p.pri 3
# default traffic gets good bandwidth
eth0.default.out.rate 932
eth0.default.out.ceil 968
Offline
the above config only limits based on ports/ip, to get ACK packet priority, use iptables mangle chain to mark the ack/syn packets, and then use tc (iproute2 package) to assign them a rate and set up a priority.
Offline
thanks, I'm searching examples soon for them
Offline