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/.
Witam serdecznie wszystkich mam problem z konfiguracją squida by wymusić autoryzację. Nie potrafię tego ogranąc próbowałem różnych tutków w sieci ale bez efektu... Mam w domu serwer i na nim zainstalowanego squid'a. I chciałem z pracy połączyć się z nim tak bym miał swobodny dostęp do sieci ;) Nie mogę zainstalować sobie OpenVPN'a bo mam nałożone liczne blokady więc te rozwiązanie dopada więc wymyśliłem sobie własny serwer proxy z autoryzacją jednak napotkałem mur nie do przebicia walcze któryś dzień z tym i ni chusteczki nie chce mnie połączyć z serwerem.
Mój config:
:~# egrep -v "^[[:space:]]*#|^$" /etc/squid3/squid.conf auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/passwd auth_param basic children 5 auth_param basic realm Squid Bangsatya auth_param basic credentialsttl 2 hours auth_param basic casesensitive off acl ncsa_users proxy_auth REQUIRED acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT http_access allow ncsa_users http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow localhost manager http_access deny manager http_access deny all http_port 8080 coredump_dir /var/spool/squid3 refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320
Mój log:
2016/08/22 12:30:25 kid1| Open FD UNSTARTED 7 DNS Socket IPv6 2016/08/22 12:30:25 kid1| Open FD UNSTARTED 8 DNS Socket IPv4 2016/08/22 12:30:25 kid1| Open FD UNSTARTED 9 IPC UNIX STREAM Parent 2016/08/22 12:30:25 kid1| Squid Cache (Version 3.4.8): Exiting normally. 2016/08/22 12:30:32 kid1| Set Current Directory to /var/spool/squid3 2016/08/22 12:30:32 kid1| Starting Squid Cache version 3.4.8 for x86_64-pc-linux-gnu... 2016/08/22 12:30:32 kid1| Process ID 22880 2016/08/22 12:30:32 kid1| Process Roles: worker 2016/08/22 12:30:32 kid1| With 65535 file descriptors available 2016/08/22 12:30:32 kid1| Initializing IP Cache... 2016/08/22 12:30:32 kid1| DNS Socket created at [::], FD 7 2016/08/22 12:30:32 kid1| DNS Socket created at 0.0.0.0, FD 8 2016/08/22 12:30:32 kid1| Adding nameserver xx.xxx.xxx.xxx from /etc/resolv.conf 2016/08/22 12:30:32 kid1| Adding nameserver xx.xxx.xxx.xx from /etc/resolv.conf 2016/08/22 12:30:32 kid1| helperOpenServers: Starting 0/5 'basic_ncsa_auth' processes 2016/08/22 12:30:32 kid1| helperOpenServers: No 'basic_ncsa_auth' processes needed. 2016/08/22 12:30:32 kid1| Logfile: opening log daemon:/var/log/squid3/access.log 2016/08/22 12:30:32 kid1| Logfile Daemon: opening log /var/log/squid3/access.log 2016/08/22 12:30:32 kid1| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2016/08/22 12:30:32 kid1| Store logging disabled 2016/08/22 12:30:32 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects 2016/08/22 12:30:32 kid1| Target number of buckets: 1008 2016/08/22 12:30:32 kid1| Using 8192 Store buckets 2016/08/22 12:30:32 kid1| Max Mem size: 262144 KB 2016/08/22 12:30:32 kid1| Max Swap size: 0 KB 2016/08/22 12:30:32 kid1| Using Least Load store dir selection 2016/08/22 12:30:32 kid1| Set Current Directory to /var/spool/squid3 2016/08/22 12:30:32 kid1| Finished loading MIME types and icons. 2016/08/22 12:30:32 kid1| HTCP Disabled. 2016/08/22 12:30:32 kid1| Pinger socket opened on FD 13 2016/08/22 12:30:32 kid1| Squid plugin modules loaded: 0 2016/08/22 12:30:32 kid1| Adaptation support is off. 2016/08/22 12:30:32 kid1| Accepting HTTP Socket connections at local=[::]:8081 remote=[::] FD 11 flags=9 2016/08/22 12:30:32| pinger: Initialising ICMP pinger ... 2016/08/22 12:30:32| pinger: ICMP socket opened. 2016/08/22 12:30:32| pinger: ICMPv6 socket opened 2016/08/22 12:30:33 kid1| storeLateRelease: released 0 objects
Myślałem że mam port zablokowany ale jak ustawię apacha na port 8080 to wyświetla się strona startowa.
W pracy mam chroma z wtyczką proxy-helper więc próbuje wpisać adres IP port 8080, login i hasło i lipa nie łączy mnie ;( Czy ktoś mógłby mi pomóc skonfigurować te ustrojstwo ??
Z góry dziękuję za pomoc.
Ostatnio edytowany przez terrazo (2016-08-22 13:05:25)
Offline