Możecie dać link do tego projektu?
Strony Poprzednia 1 2 3
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Posty przez carlo497
Strony Poprzednia 1 2 3
Możecie dać link do tego projektu?
kmod-imq nie dotykałem sprawdziłem tylko czy insmod jest w systemie. Narazie wziąłem się za tego simpleshapera. Jak tam dodać regułę dla zakresu ip np od 192.168.1.10 - 192.168.1.200
to chyba się z nim przeproszę i może go ujarzmię ![]()
mam brlan i eth0, ale nie spojrzalem ze eth0 nie ma w ogóle ip przypisanego. Z simpleshaperem mam zle wspomnienia dlatego chciałem to zrobić na podstawie iptables. Przerabiam skrypt i zabieram się za test
EDIT:
No i cholerstwo nie działa:/ składnia przy insmodzie jest taka sama jak przy tym poprzednim?
#--------------------------------------------
#WRT54 Script Generator v1.02
#(C) 2006-2007 Robert "Robson" Mytkowski
#--------------------------------------------
TCA="tc class add dev br-lan"
TFA="tc filter add dev br-lan"
TQA="tc qdisc add dev br-lan"
SFQ="sfq perturb 10"
tc qdisc del dev br-lan root
tc qdisc add dev br-lan root handle 1: htb
tc class add dev br-lan parent 1: classid 1:1 htb rate 19000kbit
$TCA parent 1:1 classid 1:10 htb rate 13000kbit ceil 19000kbit prio 0
$TCA parent 1:1 classid 1:11 htb rate 4000kbit ceil 15000kbit prio 2
$TCA parent 1:1 classid 1:12 htb rate 1900kbit ceil 15000kbit prio 2
$TCA parent 1:1 classid 1:13 htb rate 100kbit ceil 5000kbit prio 4
$TQA parent 1:10 handle 10: $SFQ
$TQA parent 1:11 handle 11: $SFQ
$TQA parent 1:12 handle 12: $SFQ
$TQA parent 1:13 handle 13: $SFQ
$TFA parent 1:0 prio 0 protocol ip handle 10 fw flowid 1:10
$TFA parent 1:0 prio 2 protocol ip handle 11 fw flowid 1:11
$TFA parent 1:0 prio 2 protocol ip handle 12 fw flowid 1:12
$TFA parent 1:0 prio 4 protocol ip handle 13 fw flowid 1:13
iptables -t mangle -A POSTROUTING -d 192.168.1.2 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.1.3 -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -d 192.168.1.7 -j MARK --set-mark 12
iptables -t mangle -A POSTROUTING -m iprange --dst-range 192.168.1.8-192.168.1.250 -j MARK --set-mark 13
TCAU="tc class add dev imq0"
TFAU="tc filter add dev imq0"
TQAU="tc qdisc add dev imq0"
insmod imq
insmod ipt_IMQ
ip link set imq0 up
tc qdisc del dev imq0 root
tc qdisc add dev imq0 root handle 1: htb
tc class add dev imq0 parent 1: classid 1:1 htb rate 1050kbit
$TCAU parent 1:1 classid 1:10 htb rate 800kbit ceil 1050kbit prio 0
$TCAU parent 1:1 classid 1:11 htb rate 100kbit ceil 500kbit prio 2
$TCAU parent 1:1 classid 1:12 htb rate 130kbit ceil 700kbit prio 2
$TCAU parent 1:1 classid 1:13 htb rate 20kbit ceil 200kbit prio 4
$TQAU parent 1:10 handle 10: $SFQ
$TQAU parent 1:11 handle 11: $SFQ
$TQAU parent 1:12 handle 12: $SFQ
$TQAU parent 1:13 handle 13: $SFQ
$TFAU parent 1:0 prio 0 protocol ip handle 10 fw flowid 1:10
$TFAU parent 1:0 prio 2 protocol ip handle 11 fw flowid 1:11
$TFAU parent 1:0 prio 2 protocol ip handle 12 fw flowid 1:12
$TFAU parent 1:0 prio 4 protocol ip handle 13 fw flowid 1:13
iptables -t mangle -A PREROUTING -s 192.168.1.2 -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -s 192.168.1.3 -j MARK --set-mark 11
iptables -t mangle -A PREROUTING -s 192.168.1.7 -j MARK --set-mark 12
iptables -t mangle -A PREROUTING -m iprange --src-range 192.168.1.8-192.168.1.250 -j MARK --set-mark 13
iptables -t mangle -A PREROUTING -j IMQ --todev 0Witam, wygenerowałem sobie skrypt za pomocą WRT54 Script Generator z myślą że zmienię kilka wartości i wszystko będzie działać ale niestety trochę mnie to przerosło... Skrypt dodaje w luci do Firewall -> Custom Rules. Na początek zmieniłem wpisy br0 na eth0 (nie wiem czy to jest poprawne) i to była w sumie cała moja modyfikacja
Może ktoś go poprawić żeby wszystko zaczęło działać?
#--------------------------------------------
#WRT54 Script Generator v1.02
#(C) 2006-2007 Robert "Robson" Mytkowski
#--------------------------------------------
TCA="tc class add dev eth0"
TFA="tc filter add dev eth"
TQA="tc qdisc add dev eth0"
SFQ="sfq perturb 10"
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 19000kbit
$TCA parent 1:1 classid 1:10 htb rate 13000kbit ceil 19000kbit prio 0
$TCA parent 1:1 classid 1:11 htb rate 4000kbit ceil 15000kbit prio 2
$TCA parent 1:1 classid 1:12 htb rate 1900kbit ceil 15000kbit prio 2
$TCA parent 1:1 classid 1:13 htb rate 100kbit ceil 5000kbit prio 4
$TQA parent 1:10 handle 10: $SFQ
$TQA parent 1:11 handle 11: $SFQ
$TQA parent 1:12 handle 12: $SFQ
$TQA parent 1:13 handle 13: $SFQ
$TFA parent 1:0 prio 0 protocol ip handle 10 fw flowid 1:10
$TFA parent 1:0 prio 2 protocol ip handle 11 fw flowid 1:11
$TFA parent 1:0 prio 2 protocol ip handle 12 fw flowid 1:12
$TFA parent 1:0 prio 4 protocol ip handle 13 fw flowid 1:13
iptables -t mangle -A POSTROUTING -d 192.168.1.2 -j MARK --set-mark 10
iptables -t mangle -A POSTROUTING -d 192.168.1.3 -j MARK --set-mark 11
iptables -t mangle -A POSTROUTING -d 192.168.1.7 -j MARK --set-mark 12
iptables -t mangle -A POSTROUTING -m iprange --dst-range 192.168.1.8-192.168.1.250 -j MARK --set-mark 13
TCAU="tc class add dev imq0"
TFAU="tc filter add dev imq0"
TQAU="tc qdisc add dev imq0"
modprobe imq
modprobe ipt_IMQ
ip link set imq0 up
tc qdisc del dev imq0 root
tc qdisc add dev imq0 root handle 1: htb
tc class add dev imq0 parent 1: classid 1:1 htb rate 1050kbit
$TCAU parent 1:1 classid 1:10 htb rate 800kbit ceil 1050kbit prio 0
$TCAU parent 1:1 classid 1:11 htb rate 100kbit ceil 500kbit prio 2
$TCAU parent 1:1 classid 1:12 htb rate 130kbit ceil 700kbit prio 2
$TCAU parent 1:1 classid 1:13 htb rate 20kbit ceil 200kbit prio 4
$TQAU parent 1:10 handle 10: $SFQ
$TQAU parent 1:11 handle 11: $SFQ
$TQAU parent 1:12 handle 12: $SFQ
$TQAU parent 1:13 handle 13: $SFQ
$TFAU parent 1:0 prio 0 protocol ip handle 10 fw flowid 1:10
$TFAU parent 1:0 prio 2 protocol ip handle 11 fw flowid 1:11
$TFAU parent 1:0 prio 2 protocol ip handle 12 fw flowid 1:12
$TFAU parent 1:0 prio 4 protocol ip handle 13 fw flowid 1:13
iptables -t mangle -A PREROUTING -s 192.168.1.2 -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -s 192.168.1.3 -j MARK --set-mark 11
iptables -t mangle -A PREROUTING -s 192.168.1.7 -j MARK --set-mark 12
iptables -t mangle -A PREROUTING -m iprange --src-range 192.168.1.8-192.168.1.250 -j MARK --set-mark 13
iptables -t mangle -A PREROUTING -j IMQ --todev 0Przepraszam nie zauważyłem że źle skopiowałem ![]()
Teraz dostaje
root@OpenWrt:/tmp$ rtorrent
rtorrent: can't load library 'libtorrent.so.11'
nie mogę reinstalować libtorrenta wypisuje to samo co przy libcurl. Nie wiem czy ja coś źle robie czy coś mam nawalone w systemie
troche nakombinowałem i niby zainstalowało ale dalej mam komunikat o braku libcurl
root@OpenWrt:/tmp$ wget http://downloads.openwrt.org/backfire/1 … rc4/ar71xx
/packages/rtorrent_0.8.6_r1165-1_ar71xx.ipk
Connecting to downloads.openwrt.org (78.24.191.177:80)
rtorrent_0.8.6_r1165 100% |*******************************| 265k 00:00:00 ETA
root@OpenWrt:/tmp$ rtorrent_0.8.6_r1165-1_ar71xx.ipk
-ash: rtorrent_0.8.6_r1165-1_ar71xx.ipk: not found
root@OpenWrt:/tmp$ install rtorrent_0.8.6_r1165-1_ar71xx.ipk
-ash: install: not found
root@OpenWrt:/tmp$ opkg install rtorrent_0.8.6_r1165-1_ar71xx.ipk
Installing rtorrent (0.8.6_r1165-1) to root...
Configuring rtorrent.
root@OpenWrt:/tmp$ rtorrent
rtorrent: can't load library 'libcurl.so.5'
root@OpenWrt:/tmp$
dostałem taki sam komunikat jak przy poprzednim repo ![]()
Mam takie
src/gz eko1 http://ecco.selfip.net/backfire/packages
src/gz packages http://downloads.openwrt.org/backfire/1 … x/packages
src/gz rc5 http://downloads.openwrt.org/backfire/1 … /packages/
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
Co tu zmienić/dopisać?
Nie pamietam, ale wlasnie chcialem go przeinstalowac i dostalem cos takiego
root@OpenWrt:/usr/lib$ opkg install rtorrent --force-reinstall
No packages removed.
Installing rtorrent (0.8.6_r1165-1) to root...
Collected errors:
* opkg_download_pkg: Package rtorrent is not available from any configured src.
* opkg_install_pkg: Failed to download rtorrent. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package rtorrent.
Sciagnęło go stąd: Downloading http://downloads.openwrt.org/backfire/1 … r71xx.ipk.
Błąd dalej występuje
Podczas proby uruchomienia rtorrenta wyskakuje mi komunikat rtorrent: can't load library 'libcurl.so.5'. W internecie znalazlem informacje, ze powinienem przeinstalowac pakiet libcurl ale to nie pomoglo. Jak to naprawic?
No wlasnie dobrze by bylo gdyby ktos sie podzielil takim skryptem ![]()
Czy jest mozliwosc aby po pobraniu torrenta router powiadamial mnie o tym poprzez wyslanie wiadomosci sms? Interesuje mnie wyslanie wiadomosci z bramki
Strony Poprzednia 1 2 3
eko.one.pl → Posty przez carlo497
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc