Ubuntu - konfiguracja niceshapera, czy poprawnie wykonana?
: 29 listopada 2010, 22:48
Witam.
Planuję uruchomić ruter na Ubuntu z HTB w postaci Niceshapera. Wszytko już wgrałem, wygląda całkiem poprawnie i z tego co widzę to działa. Jednak pozostała teraz sama konfiguracja. Z klasami nie ma problemu dodane jak trzeba.
Oto mój plik config.ns, czy mógłby ktoś spojrzeć swoim okiem i powiedzieć, czy jest poprawny?
Czy czegoś brakuje? Czegoś za dużo?
Z góry bardzo dziękuję i pozdrawiam.
Planuję uruchomić ruter na Ubuntu z HTB w postaci Niceshapera. Wszytko już wgrałem, wygląda całkiem poprawnie i z tego co widzę to działa. Jednak pozostała teraz sama konfiguracja. Z klasami nie ma problemu dodane jak trzeba.
Oto mój plik config.ns, czy mógłby ktoś spojrzeć swoim okiem i powiedzieć, czy jest poprawny?
Czy czegoś brakuje? Czegoś za dużo?
Kod: Zaznacz cały
<global>
run download upload
mark-on-ifaces eth0(interfejs zewnętrzny) eth1(interfejs wewnętrzny)
log syslog true
log terminal true
lang pl
</>
<download>
iface eth0 match dstip 89.x.x.x/30 (adres dwupunktu[router dostawcy internetu])
iface eth1 match dstip 89.x.x.x/24 (adres routera)
default eth autoredirect true
section speed 50000kb/s
section shape 4200kb/s
default low 5000kb/s
default ceil 15000kb/s
default htb prio 4
default hold 600s
default htb scheduler sfq
#default esfq hash dst
debug iptables iproute
iptables insert-hook POSTROUTING
reload 2s
</>
<upload>
iface eth0 match dstip 89.x.x.x/30 (adres dwupunktu[router dostawcy internetu])
iface eth1 match dstip 89.x.x.x/24 (adres routera)
default eth autoredirect true
section speed 50000kb/s
section shape 42000kb/s
default low 3000kb/s
default ceil 15000kb/s
default htb prio 4
default hold 600s
default htb scheduler sfq
#default esfq hash src
debug iptables iproute
iptables insert-hook PREROUTING
reload 2s
</>