Zrobiłem taki config:
<global>
iface inet eth0 auto
iface local eth1 192.168.9.1/24
do not shape local auto with 192.168.9.0/24
#do not shape local 192.168.9.1 with 192.168.9.0/24
iface local eth2 192.168.10.1/24
do not shape local auto with 192.168.10.0/24
#do not shape local 192.168.10.1 with 192.168.10.0/24
shape router true low 8kbps ceil 14kbps prio 2
stats unit kbps # dump 5c file /var/www/stats/nsstats.txt
resolve hostname true
method mark
reload 3s
</global>
<download>
link speed 250kbps shape 230kbps
user low 0kbps ceil 230kbps 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 250kbps shape 230kbps
user low 0kbps ceil 230kbps strict 70% prio 5
# interactive rate 0kbps ceil 0kbps
# interactive srcport 22,27960 dstport 22,27960
# interactive dstip 208.231.90.235
policy dynamic
</upload>
Jak nie zahaszowałem tych "do not shape" to miałem coś takiego:
[root@as as]# niceshaper start
Check your 'do not shape local' directives
quit...
[root@as as]#
Może mi ktoś wytłumaczyć czemu?
I kolejne pytanie czy przy takiej konfiguracji jeżeli jedna osoba bedzie ciągnąć 230kb to jeżeli druga osoba bedzie chciała sciagac transfer zostanie równo podzielony na te 2 osoby?