Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
ma maly problemik odnosnie iptables, wywala mi cos takiego:
RTNETLINK answers: Invalid argument
iptables: Bad rule (does a matching rule exist in that chain?)
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name[/quote]
a moje htb z iptables wyglada tak:Kod:
adres=4 zakres=100 # Tworzenie lancucha na iptables $ipt -t mangle -N przycinak # Kasowanie lancucha $ipt -t mangle -D POSTROUTING -o eth1 -j przycinak # Zakladanie lancucha na eth1 $ipt -t mangle -I POSTROUTING -o eth1 -j przycinak # Standart - 256 while [ $adres -le $zakres ]; do address="192.168.50.$adres" echo "$address" $tc class add dev eth1 parent 1:2 classid 1:$adres htb rate 256kbit ceil 300kbit quantum 3 burst 5k $tc qdisc add dev eth1 parent 1:$adres handle 5$adres:0 sfq perturb 10 $tc filter add dev eth1 protocol ip preference 2 parent 1:0 handle 6$adres fw flowid 1:$adres $ipt -t mangle -D PRZYCINAK -p tcp -s $address -j MARK --set-mark 6$adres >>/dev/null $ipt -t mangle -A PRZYCINAK -p tcp -s $address -j MARK --set-mark 6$adres adres=$[adres + 1] done #VIP - 2048kbit ad=120 zak=130 while [ $ad -le $zak ]; do address="192.168.50.$ad" $tc class add dev eth1 parent 1:2 classid 1:$ad htb rate 1792kbit ceil 1792kbit quantum 3 burst 5k $tc qdisc add dev eth1 parent 1:$ad handle 5$ad:0 sfq perturb 10 $tc filter add dev eth1 protocol ip preference 2 parent 1:0 handle 6$ad fw flowid 1:$ad $ipt -t mangle -D PRZYCINAK -p tcp -s $address -j MARK --set-mark 6$ad >>/dev/null $ipt -t mangle -A PRZYCUNAK -p tcp -s $address -j MARK --set-mark 6$ad adres=$[adres + 1] done # Markowanie nieznanych pakietow $ipt -t mangle -A PRZYCINAK -m mark --mark 0 -j MARK --set-mark 2000gdzie zrobilem blad??
[img]http://intershock.pl/images/icons/freebsd.jpg[/img] [img]http://www.the-eleven.com/site_media/static/img/postgresql_powered.png[/img] [img]http://www.wwgmc.com/images/badge_php.gif[/img]
LRU #480459
Offline
Hello a czy ktos wie jak to wyłączyć czy tylko restart jest mozliwy http://www.dug.net.pl/texty/pliki/upierdalacz.tar.gz
Offline
spr to
tc qdisc del dev eth1 root handle 1:0 htb
tc qdisc del dev eth0 root handle 1:0 htb
i mam pytanie co do mojego problemu, teraz mam cos takiego:
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists[/quote]
jak to naprawic?? :?
[img]http://intershock.pl/images/icons/freebsd.jpg[/img] [img]http://www.the-eleven.com/site_media/static/img/postgresql_powered.png[/img] [img]http://www.wwgmc.com/images/badge_php.gif[/img]
LRU #480459
Offline
ja uzywam skryptow z inet.one.pl i dzialaja jak trzeba troche je poprzerabialem pod siebie. samemu tez sie meczylem
naprawde warto sie nimi zainteresowac bo uzywaja hfsc ktore jest lepsze od htb
Offline
mógłbym prosic o blizsze wyjasnienie co oznaczają te wartosci w hfsc:
DOWNLOAD_CRIT=70 DOWNLOAD_CRIT_M1=120 UPLOAD_CRIT=40 UPLOAD_CRIT_M1=80
bede wdzięczny :)
Offline
Time (s) | Query |
---|---|
0.00017 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00136 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.146.178.81' WHERE u.id=1 |
0.00120 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.146.178.81', 1732879088) |
0.00048 | SELECT * FROM punbb_online WHERE logged<1732878788 |
0.00082 | DELETE FROM punbb_online WHERE ident='54.36.149.45' |
0.00045 | SELECT topic_id FROM punbb_posts WHERE id=48774 |
0.00408 | SELECT id FROM punbb_posts WHERE topic_id=5008 ORDER BY posted |
0.00126 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=5008 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00097 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=5008 ORDER BY p.id LIMIT 25,25 |
0.00113 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=5008 |
Total query time: 0.01201 s |