Rozdelenie bandwith pre userof
Pre pridávanie komentárov sa musíte prihlásiť.
Pre pridávanie komentárov sa musíte prihlásiť.
Vyšla nová verzia rolling-update distribúcie Manjaro, ktorá spája silu Arch Linuxu s jednoduchosťou user-friendly distribúcii. Okrem najnovšieho jadra je k dispozícii pre priaznivcov KDE aj najnovšie rozhranie Plasma 6. Manjaro vychádza vo verziách s KDE, GNOME a XFCE.
Zdroj: Distrowatch
Bola vydaná verzia 0.10 textového editoru neovim. Nová verzia obsahuje množstvo vylepšení LSP protokolu, zvýrazňovania syntaxe pomocou Tree-sitteru a ďalších menších zmien. Kompletný zoznam noviniek je dostupný v oznámení o vydaní.
Zdroj: neovim.io
Retro distribúcia arix prináša prostredie kde 1.1.2 na Debian 13 (trixie).
Zdroj: ariasft.github.io
V Greenie knižnici bola vydaná prvá kniha, ktorá je vytvorená z väčšiny umelou inteligenciou. Pokrýva udalosti Druhej svetovej vojny, vrátane rôznych doplnkových tém. Kniha je v angličtine.
Zdroj: Blog na Denníku N
Retro web poskytuje informácie o starom hardvéri
Zdroj: The Retro Web
Ide o čiastkovú časť, ktorú riešia z dôvodu monopolného spravania sa v Appstore.
Zdroj: Európska Komisia
Bot využívaný na útoky proti mnohým štátnym inštitúciam v celej Európe dosiahol novú veľkosť.
Protimonopolný úrad zaujal stanovisko k problematike vypínania českých staníc u slovenských poskytovateľov televízie.
Zdroj: Vo svete IT
Projekt SK-Spell hľadá programátorov pre dokončenie prechodu na PHP8.x pre projekty Synonymický slovník / SK-Openthesaurus a Online Slovníky / Glossword. V prípade ochoty pomôcť využite issue tracker na Githube alebo napíšte email na zdposter at gmail.com.
Zdroj: sk-spell
V dňoch 15.3.2024 - 17.3.2024 sa na FIIT STU Bratislava uskutoční šiesty ročník stretnutia Python komunity na Slovensku.
Zdroj: 2024.pycon.sk
Po | Ut | St | Št | Pi | So | Ne |
---|---|---|---|---|---|---|
29 | 30 | 01 | 02 | 03 | 04 | 05 |
06 | 07 | 08 | 09 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 01 | 02 |
Ak sa vám táto stránka páči, môžete nás podporiť tak, že si na vaše stránky umiestnite tento banner.
Náš Twitter tag je #LinuxOSsk
a tu je patch na kernel a iptables http://www.linuximq.net/patches.html
a tu mas funkcny script v ktorom mas implementovane IMQ
#!/bin/bash
ifc_zew="eth0"
max_upload="60kbit"
up_others="5kbit"
up_ssh="15kbit"
up_http="20kbit"
up_ftp="20kbit"
max_download="250kbit"
down_others="10kbit"
down_ssh="40kbit"
down_http="100kbit"
down_ftp="100kbit"
########## Upload ##########
ip link set imq0 up
tc qdisc add dev imq0 root handle 1: htb default 10
tc class add dev imq0 parent 1: classid 1:1 htb rate $max_upload ceil $max_upload
tc class add dev imq0 parent 1:1 classid 1:10 htb rate $up_others ceil $max_upload
tc class add dev imq0 parent 1:1 classid 1:20 htb rate $up_ssh ceil $max_upload
tc class add dev imq0 parent 1:1 classid 1:30 htb rate $up_http ceil $max_upload
tc class add dev imq0 parent 1:1 classid 1:40 htb rate $up_ftp ceil $max_upload
tc filter add dev imq0 parent 1: protocol ip prio 10 handle 100 fw classid 1:10
tc filter add dev imq0 parent 1: protocol ip prio 1 handle 200 fw classid 1:20
tc filter add dev imq0 parent 1: protocol ip prio 1 handle 300 fw classid 1:30
tc filter add dev imq0 parent 1: protocol ip prio 1 handle 400 fw classid 1:40
tc qdisc add dev imq0 parent 1:10 handle 10:0 sfq perturb 10
tc qdisc add dev imq0 parent 1:20 handle 20:0 sfq perturb 10
tc qdisc add dev imq0 parent 1:30 handle 30:0 sfq perturb 10
tc qdisc add dev imq0 parent 1:40 handle 40:0 sfq perturb 10
iptables -t mangle -A POSTROUTING -m layer7 --l7proto ssh -j MARK --set-mark 200
iptables -t mangle -A POSTROUTING -m layer7 --l7proto http -j MARK --set-mark 300
iptables -t mangle -A POSTROUTING -m layer7 --l7proto ftp -j MARK --set-mark 400
iptables -t mangle -A POSTROUTING -o $ifc_zew -j IMQ --todev 0
########## Download ##########
ip link set imq1 up
tc qdisc add dev imq1 root handle 1: htb default 10
tc class add dev imq1 parent 1: classid 1:1 htb rate $max_download ceil $max_download
tc class add dev imq1 parent 1:1 classid 1:10 htb rate $down_others ceil $max_download
tc class add dev imq1 parent 1:1 classid 1:20 htb rate $down_ssh ceil $max_download
tc class add dev imq1 parent 1:1 classid 1:30 htb rate $down_http ceil $max_download
tc class add dev imq1 parent 1:1 classid 1:40 htb rate $down_ftp ceil $max_download
tc filter add dev imq1 parent 1: protocol ip prio 10 handle 100 fw classid 1:10 // (1)
tc filter add dev imq1 parent 1: protocol ip prio 1 handle 200 fw classid 1:20
tc filter add dev imq1 parent 1: protocol ip prio 1 handle 300 fw classid 1:30
tc filter add dev imq1 parent 1: protocol ip prio 1 handle 400 fw classid 1:40
tc qdisc add dev imq1 parent 1:10 handle 10:0 sfq perturb 10
tc qdisc add dev imq1 parent 1:20 handle 20:0 sfq perturb 10
tc qdisc add dev imq1 parent 1:30 handle 30:0 sfq perturb 10
tc qdisc add dev imq1 parent 1:40 handle 40:0 sfq perturb 10
iptables -t mangle -A PREROUTING -m layer7 --l7proto ssh -j MARK --set-mark 200 // (2)
iptables -t mangle -A PREROUTING -m layer7 --l7proto http -j MARK --set-mark 300
iptables -t mangle -A PREROUTING -m layer7 --l7proto ftp -j MARK --set-mark 400
iptables -t mangle -A PREROUTING -i $ifc_zew -j IMQ --todev 1
Upravte si to podla potreby :)).
Tak zdar :))
taze script bude vyzerat takto
#!/bin/bash
ifc_zew="eth0"
max_upload="60kbit"
up_others="5kbit"
up_ssh="15kbit"
up_http="20kbit"
up_ftp="20kbit"
max_download="250kbit"
down_others="10kbit"
down_ssh="40kbit"
down_http="100kbit"
down_ftp="100kbit"
########## Upload ##########
ip link set imq0 up
tc qdisc add dev imq0 root handle 1: htb default 10
tc class add dev imq0 parent 1: classid 1:1 htb rate $max_upload ceil $max_upload
tc class add dev imq0 parent 1:1 classid 1:10 htb rate $up_others ceil $max_upload
tc class add dev imq0 parent 1:1 classid 1:20 htb rate $up_ssh ceil $max_upload
tc class add dev imq0 parent 1:1 classid 1:30 htb rate $up_http ceil $max_upload
tc class add dev imq0 parent 1:1 classid 1:40 htb rate $up_ftp ceil $max_upload
tc filter add dev imq0 parent 1: protocol ip prio 10 handle 100 fw classid 1:10
tc filter add dev imq0 parent 1: protocol ip prio 1 handle 200 fw classid 1:20
tc filter add dev imq0 parent 1: protocol ip prio 1 handle 300 fw classid 1:30
tc filter add dev imq0 parent 1: protocol ip prio 1 handle 400 fw classid 1:40
tc qdisc add dev imq0 parent 1:10 handle 10:0 sfq perturb 10
tc qdisc add dev imq0 parent 1:20 handle 20:0 sfq perturb 10
tc qdisc add dev imq0 parent 1:30 handle 30:0 sfq perturb 10
tc qdisc add dev imq0 parent 1:40 handle 40:0 sfq perturb 10
iptables -t mangle -A POSTROUTING -o $ifc_zew -j IMQ --todev 0
########## Download ##########
ip link set imq1 up
tc qdisc add dev imq1 root handle 1: htb default 10
tc class add dev imq1 parent 1: classid 1:1 htb rate $max_download ceil $max_download
tc class add dev imq1 parent 1:1 classid 1:10 htb rate $down_others ceil $max_download
tc class add dev imq1 parent 1:1 classid 1:20 htb rate $down_ssh ceil $max_download
tc class add dev imq1 parent 1:1 classid 1:30 htb rate $down_http ceil $max_download
tc class add dev imq1 parent 1:1 classid 1:40 htb rate $down_ftp ceil $max_download
tc filter add dev imq1 parent 1: protocol ip prio 10 handle 100 fw classid 1:10 // (1)
tc filter add dev imq1 parent 1: protocol ip prio 1 handle 200 fw classid 1:20
tc filter add dev imq1 parent 1: protocol ip prio 1 handle 300 fw classid 1:30
tc filter add dev imq1 parent 1: protocol ip prio 1 handle 400 fw classid 1:40
tc qdisc add dev imq1 parent 1:10 handle 10:0 sfq perturb 10
tc qdisc add dev imq1 parent 1:20 handle 20:0 sfq perturb 10
tc qdisc add dev imq1 parent 1:30 handle 30:0 sfq perturb 10
tc qdisc add dev imq1 parent 1:40 handle 40:0 sfq perturb 10
iptables -t mangle -A PREROUTING -i $ifc_zew -j IMQ --todev 1
########## Upload ##########
/sbin/tc class add dev imq0 parent 1:1 classid 1:10 htb rate 512kbit ceil 512kbit
/sbin/tc filter add dev imq0 parent 1: protocol ip prio 1 u32 match ip src 192.168.1.10 flowid 1:10
/sbin/tc qdisc add dev imq0 parent 1:10 handle 10:0 sfq perturb 10
#Druha IP
/sbin/tc class add dev imq0 parent 1:1 classid 1:12 htb rate 128kbit ceil 128kbit
/sbin/tc filter add dev imq0 parent 1: protocol ip prio 1 u32 match ip src 192.168.1.20 flowid 1:12
/sbin/tc qdisc add dev imq0 parent 1:20 handle 20:0 sfq perturb 10
/sbin/iptables -t mangle -A POSTROUTING -o eth0 -j IMQ --todev 0
########## Download ##########
/sbin/tc class add dev imq1 parent 1:1 classid 1:10 htb rate 256kbit ceil 256kbit burst 5k
/sbin/tc filter add dev imq1 parent 1: protocol ip prio 1 u32 match ip dst 192.168.1.10 flowid 1:10
#Druha IP
/sbin/tc qdisc add dev imq1 parent 1:10 handle 10:0 sfq perturb 10
/sbin/tc class add dev imq1 parent 1:1 classid 1:20 htb rate 56kbit ceil 56kbit burst 5k
/sbin/tc filter add dev imq1 parent 1: protocol ip prio 1 u32 match ip dst 192.168.1.20 flowid 1:20
/sbin/tc qdisc add dev imq1 parent 1:20 handle 20:0 sfq perturb 10
/sbin/iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 1
a mate to poriesene :)). Este proxy a jeto
poradim Vam iba ze nesmiete zabudniut na redirect portu
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport -j REDIRECT --to-port 3128
Squid si uz snad viete naconfigurovat vid. man squid. Mozno som niekde urobil preklep tak necopy to ako hluchy snazte sa to radsej pochopit :))