Freesco, NND, CDN, EOS
http://forum.freesco.pl/

Squid 2.5stable8
http://forum.freesco.pl/viewtopic.php?f=27&t=6774
Strona 1 z 1

Autor:  prg080 [ wtorek, 15 lutego 2005, 16:05 ]
Tytuł:  Squid 2.5stable8

Jak ktos chce to tu --Link-- jest nowy squid-2.5stable8 w formie paczki do starego nnd.

Autor:  fishu [ środa, 16 lutego 2005, 22:12 ]
Tytuł: 

dzięki za linka... apropo konfiguracji... czy masz jakąś "nietypową" sprawdzoną konfiguracje? czy są jakieś problemy z działaniem razem z htb?

Autor:  prg080 [ czwartek, 17 lutego 2005, 11:01 ]
Tytuł: 

Ja problemow nie mam, z htb chodzi dobrze (ale to sa moje ustawienia htb, nie uzywam proponowanych na forum gotowcow). W configu tez zadnych "wigibasow" nie mam :)

Autor:  fishu [ czwartek, 17 lutego 2005, 16:32 ]
Tytuł: 

A mógłbyś udostępnić swoje konfigi htb i squid`a? :)

Autor:  PiotruS [ czwartek, 17 lutego 2005, 16:36 ]
Tytuł: 

fishu pisze:
A mógłbyś udostępnić swoje konfigi htb i squid`a? :)


Dokladnie dołączam sie do bałwan jestem

DZIEKI wielkie

Autor:  prg080 [ czwartek, 17 lutego 2005, 19:51 ]
Tytuł: 

#przyklad dla kompow sztuk 2
#interfejs eth1
/sbin/tc qdisc add dev eth1 root handle 1:0 htb r2q 1
# glowna klasa dla eth1
/sbin/tc class add dev eth1 parent 1:0 classid 1:1 htb rate 99Mbit ceil 99Mbit

# klasa z netu
/sbin/tc class add dev eth1 parent 1:1 classid 1:2 htb rate 1049kbit ceil 1049kbit
# z serwera.
/sbin/tc class add dev eth1 parent 1:1 classid 1:3 htb rate 98Mbit ceil 98Mbit


# pasmo priorytetowe
/sbin/tc class add dev eth1 parent 1:2 classid 1:8 htb rate 80kbit ceil 200kbit prio 1 quantum 1500
/sbin/tc qdisc add dev eth1 parent 1:8 esfq perturb 10 hash dst
/sbin/tc filter add dev eth1 protocol ip prio 1 parent 1:0 u32 match ip tos 0x20 0xff flowid 1:8
/sbin/tc filter add dev eth1 protocol ip prio 1 parent 1:0 u32 match ip protocol 1 0xff flowid 1:8

# filtry na ruch serwera
/sbin/tc qdisc add dev eth1 parent 1:3 esfq perturb 10 hash dst
/sbin/tc filter add dev eth1 protocol ip preference 1 parent 1:0 u32 match ip sport 139 0xff flowid 1:3

# transparent proxy
/sbin/tc filter add dev eth1 protocol ip preference 1 parent 1:0 u32 match ip sport 80 0xffff match ip tos 0x00 0xff flowid 1:3
/sbin/tc filter add dev eth1 protocol ip preference 1 parent 1:0 u32 match ip sport 3128 0xffff match ip tos 0x00 0xff flowid 1:3

# filtry na ruch do userow...
# Download 10.10.10.2
/sbin/tc class add dev eth1 parent 1:2 classid 1:10 htb rate 260kbit ceil 1032kbit prio 4 quantum 1500
/sbin/tc qdisc add dev eth1 parent 1:10 esfq perturb 10 hash dst
/sbin/tc filter add dev eth1 protocol ip prio 4 parent 1:0 u32 match ip dst 10.10.10.2 flowid 1:10

# Download 10.10.10.3
/sbin/tc class add dev eth1 parent 1:2 classid 1:11 htb rate 260kbit ceil 1032kbit prio 4 quantum 1500
/sbin/tc qdisc add dev eth1 parent 1:11 esfq perturb 10 hash dst
/sbin/tc filter add dev eth1 protocol ip prio 4 parent 1:0 u32 match ip dst 10.10.10.3 flowid 1:11

#**************************

# interfejs eth0, ruch wychodzacy
/sbin/tc qdisc add dev eth0 root handle 2:0 htb r2q 1
# klasa glowna na eth0
/sbin/tc class add dev eth0 parent 2:0 classid 2:1 htb rate 250kbit ceil 250kbit

# klasa priorytetowa ACK
/sbin/tc class add dev eth0 parent 2:1 classid 2:9 htb rate 50kbit ceil 120kbit prio 1 quantum 1500
/sbin/tc qdisc add dev eth0 parent 2:9 esfq perturb 10 hash dst
/sbin/tc filter add dev eth0 parent 2:0 protocol ip prio 2 u32 match ip protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 1 match u8 0x10 0xff at 33 flowid 2:9

# klasa priorytetowa TOS, ICMP itp.
/sbin/tc class add dev eth0 parent 2:1 classid 2:10 htb rate 50kbit ceil 150kbit prio 2 quantum 1600
/sbin/tc qdisc add dev eth0 parent 2:10 esfq perturb 10 hash dst
/sbin/tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip tos 0x10 0xff flowid 2:10
/sbin/tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip protocol 1 0xff flowid 2:10
/sbin/tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip protocol 17 0xff match u32 53 0xffffff at nexthdr+0 flowid 2:10

# klasa na ruch z serwera
/sbin/tc class add dev eth0 parent 2:1 classid 2:7 htb rate 30kbit ceil 150kbit prio 2 quantum 1500
/sbin/tc qdisc add dev eth0 parent 2:7 esfq perturb 10 hash dst
/sbin/tc filter add dev eth0 parent 2:0 protocol ip prio 3 handle 1 fw flowid 2:7

# filtry na userow
# Upload 10.10.10.2
/sbin/tc class add dev eth0 parent 2:1 classid 2:50 htb rate 50kbit ceil 160kbit prio 4 quantum 1500
/sbin/tc qdisc add dev eth0 parent 2:50 esfq perturb 10 hash dst
/sbin/tc filter add dev eth0 parent 2:0 protocol ip prio 4 handle 2 fw flowid 2:50

# Upload 10.10.10.3
/sbin/tc class add dev eth0 parent 2:1 classid 2:51 htb rate 50kbit ceil 160kbit prio 4 quantum 1500
/sbin/tc qdisc add dev eth0 parent 2:51 esfq perturb 10 hash dst
/sbin/tc filter add dev eth0 parent 2:0 protocol ip prio 4 handle 3 fw flowid 2:51

#markowanie:
iptables -t mangle -A OUTPUT -j MARK --set-mark 1
iptables -t mangle -A PREROUTING -s 10.10.10.2 -j MARK --set-mark 2
iptables -t mangle -A PREROUTING -s 10.10.10.3 -j MARK --set-mark 3

Autor:  prg080 [ czwartek, 17 lutego 2005, 20:04 ]
Tytuł: 

#config squida, pokazane tylko te parametry co zmienialem reszta defaultowa

http_port 3128
server_persistent_connections off
ie_refresh on
cache_mem 40 MB
cache_swap_low 97
cache_swap_high 99
maximum_object_size 419200 KB
maximum_object_size_in_memory 20 KB
ipcache_size 2048
ipcache_low 93
ipcache_high 98
cache_dir ufs /cache 6500 10 256
cache_access_log none
cache_store_log none
dns_children 3
dns_nameservers 194.204.152.34 193.110.121.20 212.85.112.32
redirect_program /usr/local/bannerfilter-1.21/redirector.pl
redirect_children 5
quick_abort_min 10 KB
quick_abort_max 10 KB
quick_abort_pct 95
negative_ttl 2 minutes
positive_dns_ttl 48 hours
#
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

forwarded_for off
buffered_logs on
snmp_port 3401
acl snmppublic snmp_community public
snmp_access allow snmppublic all
snmp_access deny all

Autor:  fishu [ czwartek, 17 lutego 2005, 20:17 ]
Tytuł: 

dzięki - sprawdzę jak to się u mnie będzie miało :)
a jeszcze pytanko - na jakim kompie procek, ram itd... masz uruchomionego teho squida i dla ilu userów (jeśli można wiedzieć ;) )

Autor:  prg080 [ czwartek, 17 lutego 2005, 20:25 ]
Tytuł: 

Heh mialem wlasnie zedytowac poprzedniego:
Pentium 233MHz, 256MB, 8GB chodzi na tym tylko routing, squid, samba.
Www i inne smiecie sa na innym kompie wewnatrz sieci, takze w htb trzeba uwzglednic swoje uslugi na serwerze jak cos sie ma. Ja puszczam tylko sambe i hity squida na szybkie pasmo z serwerka, aha i jest ze 20 szkodnikow.

Autor:  PiotruS [ czwartek, 17 lutego 2005, 21:11 ]
Tytuł: 

interesuje mnei jedna sprawa, która wydała mie sie dziwna :)
awiec:
w ruchu wychodzącym
# klasa priorytetowa TOS, ICMP itp.
/sbin/tc class add dev eth0 parent 2:1 classid 2:10 htb rate 50kbit ceil 150kbit prio 2 quantum 1600

czy te quantum 1600 ma być ?

wszędzie jest 1500 i CHYBA nie jestem expertem powinno też i tu być 1.5k
pozdrawiam .....i dzieki za config-i :)

Jeszcze jedno pytanie używsz prog080 transparent proxy ?
Jeśli tak poprosze też o wpisy Iptables .....

pozdrawiam

Autor:  prg080 [ czwartek, 17 lutego 2005, 21:26 ]
Tytuł: 

Ta 1600 to pewnie literowka :), zreszta malo wazne, tez bedzie dzialac.

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128

Autor:  PiotruS [ czwartek, 17 lutego 2005, 22:28 ]
Tytuł: 

tak sie przyglądam i mam jeszcze jedno pytanie :
Uzywasz prog080 w htb "rodzaju" esfq takze moje pytanie jeszcze brzmi czy dodanie dodatkowych bałwan jestem htb dla sfq bedzie analogiczne do Twojego przykładu ? I czy to bedzie dobrze działać ?

Autor:  prg080 [ piątek, 18 lutego 2005, 12:27 ]
Tytuł: 

Powinno dzialac, przeliczyc trzeba tylko rate dla kazdego + dodac odpowiednie iptables z MARK.

Autor:  prg080 [ poniedziałek, 21 lutego 2005, 14:03 ]
Tytuł: 

Ktos chce pobawic sie nowszym jajkiem to: Link

Autor:  fishu [ poniedziałek, 21 lutego 2005, 20:38 ]
Tytuł: 

hmm.... widze że jest tam wrr... podobno jest lepsze od innych... bawiłeś się już może z tym?? ;)

Autor:  prg080 [ poniedziałek, 21 lutego 2005, 21:20 ]
Tytuł: 

Wlasnie wrr sie nie bawilem, podobno dobre jak jest duuuzo kompow, ale tez slyszalem kilka razy, ze ciut niestabilne, zdarzaly sie kernel panic itd.
Na tym chodzi mi serw pare dni (standardowe htb+esfq) wyglada, ze wszystko ok.

Autor:  fishu [ poniedziałek, 21 lutego 2005, 21:38 ]
Tytuł: 

to ciekawie... spróbuj go u siebie... a mam pytanko... squid cały czas mi w logach pojawia się to
Cytuj:
nnd squid: cache_dns_program /usr/libexec/dnsserver: (2) No such file or directory

...a to wywala mi na ekran:
Cytuj:
FATAL: cache_dns_program /usr/libexec/dnsserver: (2) No such file or directory
Squid Cache (Version 2.5.STABLE8): Terminated abnormally.
CPU Usage: 0.070 seconds = 0.050 user + 0.020 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 325
Aborted

co mam z tym zrobić... szukałem na forum i nie ma nic na ten temat??

Autor:  prg080 [ wtorek, 22 lutego 2005, 00:14 ]
Tytuł: 

/usr/libexec/dnsserver
Sprawdzic czy ten plik jest + odpowiednie prawa.

Dopisane: Moj blad, zapomialem wsadzic ten plik w paczke. Jutro zrobie. Mozna sprobowac wziasc ze starszych wersji tez powinno dzialac.

Dopisane2: Ok juz poprawione.

Strona 1 z 1 Strefa czasowa UTC+2godz.
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/