Freesco, NND, CDN, EOS
http://forum.freesco.pl/

lacze zapchane przez P2P...niceshpaer nie daje rady
http://forum.freesco.pl/viewtopic.php?f=22&t=14597
Strona 1 z 1

Autor:  BOyA [ czwartek, 18 stycznia 2007, 19:43 ]
Tytuł:  lacze zapchane przez P2P...niceshpaer nie daje rady

Witam

Mam w siecie problemowego uzytkownika 192.168.0.17 ktory wlacza p2p i wychodzi z domu, produje go przyciac w kierunku od niego -> internet ale nie pomaga bo po chwili zapelnia cale lacze... mam lacze 640/160
moje configi:

config niceshaper
Cytuj:
<global>
iface inet eth0 80.53.211.226/29
iface local eth1 192.168.0.1/24
do not shape local 80.53.211.226 with 192.168.0.0/24
do not shape local 192.168.0.1 with 192.168.0.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 640kbps shape 610kbps
user low 10kbps ceil 120kbps strict 60%
# 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 160kbps shape 130kbps
user low 2kbps ceil 20kbps strict 20%
# interactive rate 0kbps ceil 0kbps
# interactive srcport 22,27960 dstport 22,27960
# interactive dstip 208.231.90.235
policy dynamic
</upload>


users niceshaper
Cytuj:
192.168.0.1 eth1
192.168.0.2 eth1
192.168.0.3 eth1
192.168.0.4 eth1
192.168.0.5 eth1
192.168.0.6 eth1 dl_ceil 100kbit ul_ceil 10kbit
192.168.0.7 eth1 dl_ceil 250kbit ul_ceil 20kbit
192.168.0.8 eth1 dl_ceil 300kbit ul_ceil 20kbit
192.168.0.9 eth1 dl_ceil 250kbit ul_ceil 20kbit
192.168.0.10 eth1 dl_ceil 250kbit ul_ceil 20kbit
192.168.0.11 eth1 dl_ceil 250kbit ul_ceil 20kbit
192.168.0.12 eth1 dl_ceil 250kbit ul_ceil 20kbit
192.168.0.13 eth1 dl_ceil 250kbit ul_ceil 20kbit
192.168.0.14 eth1 dl_ceil 250kbit ul_ceil 20kbit
192.168.0.15 eth1
192.168.0.16 eth1 dl_ceil 250kbit ul_ceil 20kbit
192.168.0.17 eth1 dl_ceil 300kbit ul_ceil 20kbit


tam gdzie samo eth1 to urzadzenia sieciowe lub moje maszyny...

users
Cytuj:
# /etc/hosts

# Nie usuwaj następnej linii. Wiele programów
# wymaga takiego wpisu do poprawnej pracy.

127.0.0.1 localhost.localdomain localhost
192.168.0.1 router_nnd
192.168.0.2 Komp_1
192.168.0.3 Komp_2
192.168.0.4 AP
192.168.0.5 Tomek_
192.168.0.6 Neo
192.168.0.7 Radzik
192.168.0.8 Wpislep_AP
192.168.0.9 Jaro
192.168.0.10 Kasia
192.168.0.11 Asia
192.168.0.12 Komp_11
192.168.0.13 Komp_12
192.168.0.14 Komp_13
192.168.0.15 Komp_14
192.168.0.16 Komp_15
192.168.0.17 Wpislep


prosze o pomoc...

Autor:  luki_nowy [ czwartek, 18 stycznia 2007, 19:58 ]
Tytuł: 

zmien na niceshaper 0.6

Autor:  hx [ czwartek, 18 stycznia 2007, 20:50 ]
Tytuł: 

postaw płotek

: [/] [] ()
# user low 10kbps ceil 120kbps strict 60%
# user low 2kbps ceil 20kbps strict 20%

i zdecyduj sie na jednostki teraz masz bzdury powpisywane

: [/] [] ()
link speed 160kbps shape 130kbps
192.168.0.10 eth1 dl_ceil 250kbit ul_ceil 20kbit

Autor:  BOyA [ czwartek, 18 stycznia 2007, 20:51 ]
Tytuł: 

Tak tez zrobilem i mam 3 procesy nice0.6... w sys tzn ze dziala dobrze...
JEdnak cos jest nie tak bo pod konsola co jakis czas mi wyskakuje
Cytuj:
RTNETLINK answers: Invalid argument

Autor:  hx [ czwartek, 18 stycznia 2007, 20:56 ]
Tytuł: 

JEDNOSTKI !!

Autor:  BOyA [ czwartek, 18 stycznia 2007, 20:58 ]
Tytuł: 

napisz cos wiecej o tym bo ciezko mi cos skumac z twojej wypowiedzi...

Autor:  hx [ czwartek, 18 stycznia 2007, 21:01 ]
Tytuł: 

łącze masz 640kbps a klientowi dajesz 300kbit

Autor:  BOyA [ czwartek, 18 stycznia 2007, 21:11 ]
Tytuł: 

nie bardzo rozumiem bo wszedzie uzywam jednostki kB/s

config
Cytuj:
<global>
run download upload
support mark on eth0
stats unit kB/s file none # owner root group root mode 644
</global>

<download>
iface eth1 match dstip 192.168.0.0/24
iface eth1 match dstip 192.168.1.0/24
section speed 80kB/s
section shape 70kB/s
default low 2kB/s
default ceil 10kB/s
default overtake 40kB/s
mode download
reload 5s
</download>

<upload>
iface eth0 match srcip 192.168.0.0/24
iface eth0 match srcip 192.168.1.0/24
section speed 20kB/s
section shape 17kB/s
default low 1kB/s
default ceil 3kB/s
default overtake 4kB/s
mode upload
reload 2s
</upload>


class
Cytuj:
############### router_nnd
############### Komp_1
############### Komp_2
############### AP
############### Tomek_
class download eth1 Tomek_
match dstip 192.168.0.5
low 1kB/s
ceil 35kB/s
class upload eth0 Tomek_
match srcip 192.168.0.5
low 1kB/s
ceil 3kB/s

############### Neo
class download eth1 Neo
match dstip 192.168.0.6
low 1kB/s
ceil 7kB/s
class upload eth0 Neo
match srcip 192.168.0.6
low 2kB/s
ceil 2kB/s

############### Radzik
class download eth1 Radzik
match dstip 192.168.0.7
low 2kB/s
ceil 25kB/s
class upload eth0 Radzik
match srcip 192.168.0.7
low 1kB/s
ceil 2kB/s

############### Wpislep_AP
############### Jaro
class download eth1 Jaro
match dstip 192.168.0.9
low 2kB/s
ceil 25kB/s
class upload eth0 Jaro
match srcip 192.168.0.9
low 1kB/s
ceil 2kB/s

############### Kasia
class download eth1 Kasia
match dstip 192.168.0.10
low 2kB/s
ceil 25kB/s
class upload eth0 Kasia
match srcip 192.168.0.10
low 1kB/s
ceil 2kB/s

############### Asia
class download eth1 Asia
match dstip 192.168.0.11
low 2kB/s
ceil 25kB/s
class upload eth0 Asia
match srcip 192.168.0.11
low 1kB/s
ceil 2kB/s

############### Komp_11
############### Komp_12
############### Komp_13
############### Komp_14
############### Komp_15
############### Wpislep
class download eth1 Wpislep
match dstip 192.168.0.17
low 2kB/s
ceil 35kB/s
class upload eth0 Wpislep
match srcip 192.168.0.17
low 1kB/s
ceil 3kB/s

Autor:  hx [ czwartek, 18 stycznia 2007, 21:26 ]
Tytuł: 

pisałem ci odnosnie configu nice 0.5

Autor:  Szurik [ czwartek, 18 stycznia 2007, 23:46 ]
Tytuł: 

<global>
run download upload
support mark on eth0
stats unit kB/s file none # owner root group root mode 644
</global>

<download>
iface eth1 match dstip 192.168.1.0/24
section speed 80kB/s
section shape 70kB/s
default low 2kB/s
default ceil 10kB/s
default overtake 40kB/s
mode download
reload 2s
</download>

<upload>
iface eth0 match srcip 192.168.1.0/24
section speed 20kB/s
section shape 17kB/s
default low 1kB/s
default ceil 3kB/s
default overtake 4kB/s
mode upload
reload 2s
</upload>

Strona 1 z 1 Strefa czasowa UTC+2godz.
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/