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
Time (s) | Query |
---|---|
0.00010 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00115 | 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.145.177.173' WHERE u.id=1 |
0.00066 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.145.177.173', 1732493759) |
0.00047 | SELECT * FROM punbb_online WHERE logged<1732493459 |
0.00047 | SELECT topic_id FROM punbb_posts WHERE id=304454 |
0.00039 | SELECT id FROM punbb_posts WHERE topic_id=28878 ORDER BY posted |
0.00064 | 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=28878 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00070 | 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=28878 ORDER BY p.id LIMIT 0,25 |
0.00225 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=28878 |
Total query time: 0.00692 s |