Zainstalowalem na domowym serwerze Debiana Etch i do tego chcialem wykorzystac niceshapera do podzialu lacza. Wczesniej uzywalem na serwerze nnd i tam wszystko smigalo. Tu na Debianie niceshaper nie chce ruszyc:
Kod: Zaznacz cały
debian:/home/siwuch# niceshaper start
sh: ip: command not found
IP command not found or device ppp0 does not exist
quit...
debian:/home/siwuch# ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:83.7.202.9 P-t-P:213.25.2.91 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1229794 errors:0 dropped:0 overruns:0 frame:0
TX packets:1067283 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1039552008 (991.3 MiB) TX bytes:313624901 (299.0 MiB)
Kod: Zaznacz cały
debian:/home/siwuch# niceshaper start
sh: tc: command not found
sh: tc: command not found
sh: tc: command not found
sh: tc: command not found
sh: tc: command not found
sh: tc: command not found
sh: tc: command not found
Niceshaper version:0.5.2 07.05.2007
[url]http://niceshaper.jedwabny.net[/url]
Konfig w 100% jest poprawny - skopiowany z poprzedniego serwera gdzie dzialal bez zarzutu. Na wszelki wypadek zalaczam config:
Kod: Zaznacz cały
<global>
iface inet ppp0 auto
iface local eth0 192.168.0.1/24
do not shape local ppp0 with 192.168.0.0/24
do not shape local 192.168.0.1 with 192.168.0.0/24
stats unit kbps
stats file /var/www/nsstats.txt
stats owner root group root mode 644
resolve hostname true
method mark
reload 3s
</global>
<download>
link speed 62,5kbps shape 58kbps
user low 15kbps ceil 54kbps strict 70% prio 5
# interactive rate 0kbps ceil 0kbps
# interactive srcport 27960,22 dstport 27960,22
# interactive srcip 208.231.90.235
# interactive u32 match ip protocol 1 0xff
# interactive u32 match ip tos 0x10 0xff
policy dynamic
</download>
<upload>
link speed 15,6kbps shape 14kbps
user low 3kbps ceil 13kbps strict 80% prio 5
# interactive rate 0kbps ceil 0kbps
# interactive srcport 22,27960 dstport 22,27960
# interactive dstip 208.231.90.235
policy dynamic
</upload>
Kod: Zaznacz cały
192.168.0.2 eth0 prio 3 ul_ceil 13kbps #dl_ceil 30kbps
192.168.0.3 eth0 prio 3 ul_ceil 13kbps #dl_ceil 30kbps
192.168.0.4 eth0 #dl_ceil 30kbps ul_ceil 5kbps
192.168.0.5 eth0 #ul_ceil 9kbps
192.168.0.6 eth0
192.168.0.7 eth0 #dl_ceil 54kbps ul_ceil 13kbps
192.168.0.8 eth0 dl_ceil 54kbps ul_ceil 10kbps
192.168.0.9 eth0 #dl_ceil 54kbps ul_ceil 13kbps
Pozdrawiam