# NiceShaper main configuration file. #Konfiguracja NiceShapera jest podzielony na sekcje # Poniżej znajduje się specjalny dział bowiazkowy o nazwie "global" # Uruchom tutaj wymienione i skonfigurowane poniżej sekcje run download upload # Zaznacz pakiety wychodzące przez dany interfejs # jeśli używasz SNAT lub MASQUARADING mark-on-ifaces eth0 eth1 # iface-eth0 speed 1000Mb/s iface-eth1 speed 1000Mb/s iface-eth0 do-not-shape-method safe iface-eth1 do-not-shape-method safe # # Opcje dla niceshaper polecenia stats stats unit kb/s stats file /home/www/nice1.0.txt stats owner root stats group root stats mode 644 stats rewrite 1 lang pl # You should set stats secret because default secret is weak (not fully random). # Even if you do not put on listening on remote accessible interface by stats listen # local unprivileges users can break default secret and read statistics. # Not implemented in 1.0pre1 yet!! #stats secret PASSWORD # Logging log syslog yes log terminal yes log file no # Configure functional section and name it "download" # Section filter(s) for controlled subnet(s) match dstip 192.168.2.0/24 imq autoredirect yes # Broadband speed and shape values section speed 12288kb/s section shape 9728kb/s default htb prio 5 default htb scheduler esfq default hold 30s # Set section mode download if section may control # packets incoming to your local network and upload for outgoing from. # Remember it has no paraller with section name. mode download # uncomment this for debuging #debug iptables iproute # Set cycle reload 2s # Default classes params low 120kb/s ceil 4096kb/s # Configure another one match srcip 192.168.2.0/23 imq autoredirect yes section speed 1024kb/s section shape 921kb/s default htb prio 3 default htb scheduler sfq mode upload reload 2s low 12kb/s ceil 512kb/s match dstip 192.168.2.0/24 imq autoredirect yes section speed 51200kb/s section shape 48000kb/s default htb prio 5 default htb scheduler sfq default hold 30s mode download reload 2s # low 100kb/s # ceil 51200kb/s match srcip 192.168.2.0/24 imq autoredirect yes section speed 51200kb/s section shape 48000kb/s default htb prio 3 default htb scheduler esfq mode upload reload 2s # low 11kb/s # ceil 512kb/s