Eu instalei recentemente o proxy SQUID v. 3.5.26 em um servidor Linux. Desejo usar o servidor como um proxy remoto para laptops e outros dispositivos eletrônicos portáteis. Eu sou, no entanto, incapaz de obter o SQUID para aceitar conexões remotas.
Aqui está o meu squid.conf:
visible_hostname localhost
auth_param basic program /usr/homepage/htdocs/squid/squid-3.5.26/helpers/digest_auth /usr/homepage/htdocs/squid/squid-3.5.26/etc/passwords auth_param basic realm proxy acl authenticated proxy_auth REQUIRED http_access allow authenticated
cache_access_log /usr/homepage/htdocs/squid/squid-3.5.26/var/cache/access_log.log
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl localnet src fc00::/7 # RFC 4193 local private network range acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
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
# Recommended minimum Access Permission configuration: #
# Deny requests to certain unsafe ports - def
#http_access deny !Safe_ports
# Deny CONNECT to other than secure SSL ports
#http_access deny CONNECT !SSL_ports
#http_access allow localhost manager
#http_access deny manager
#http_access allow all
request_timeout 5 minutes
# cache_mem 256 MB
#http_access allow localnet
#http_access allow localhost
http_port 3128
cache_dir ufs /usr/homepage/htdocs/squid/squid-3.5.26/var/cache/squid 100 16 256 maximum_object_size 4096 KB
coredump_dir /usr/homepage/htdocs/squid/squid-3.5.26/var/cache/squid
Aqui está o log mais recente:
2017/11/28 09:05:28 kid1| Set Current Directory to /usr/homepage/htdocs/squid/squid-3.5.26/var/cache/squid 2017/11/28 09:05:28 kid1| Starting Squid Cache version 3.5.26 for x86_64-pc-linux-gnu... 2017/11/28 09:05:28 kid1| Service Name: squid 2017/11/28 09:05:28 kid1| Process ID 27988 2017/11/28 09:05:28 kid1| Process Roles: worker 2017/11/28 09:05:28 kid1| With 512 file descriptors available 2017/11/28 09:05:28 kid1| Initializing IP Cache... 2017/11/28 09:05:28 kid1| DNS Socket created at [::], FD 6 2017/11/28 09:05:28 kid1| DNS Socket created at 0.0.0.0, FD 8 2017/11/28 09:05:28 kid1| helperOpenServers: Starting 0/20 'digest_auth' processes 2017/11/28 09:05:28 kid1| helperOpenServers: No 'digest_auth' processes needed. 2017/11/28 09:05:28 kid1| Logfile: opening log /usr/homepage/htdocs/squid/squid-3.5.26/var/cache/access_log.log 2017/11/28 09:05:28 kid1| WARNING: log name now starts with a module name. Use 'stdio:/usr/homepage/htdocs/squid/squid-3.5.26/var/cache/access_log.log' 2017/11/28 09:05:28 kid1| WARNING: no_suid: setuid(0): (1) Operation not permitted 2017/11/28 09:05:28 kid1| Unlinkd pipe opened on FD 13 2017/11/28 09:05:28 kid1| Store logging disabled 2017/11/28 09:05:28 kid1| Swap maxSize 102400 + 262144 KB, estimated 28041 objects 2017/11/28 09:05:28 kid1| Target number of buckets: 1402 2017/11/28 09:05:28 kid1| Using 8192 Store buckets 2017/11/28 09:05:28 kid1| Max Mem size: 262144 KB 2017/11/28 09:05:28 kid1| Max Swap size: 102400 KB 2017/11/28 09:05:28 kid1| Rebuilding storage in /usr/homepage/htdocs/squid/squid-3.5.26/var/cache/squid (dirty log) 2017/11/28 09:05:28 kid1| Using Least Load store dir selection 2017/11/28 09:05:28 kid1| Set Current Directory to /usr/homepage/htdocs/squid/squid-3.5.26/var/cache/squid 2017/11/28 09:05:28 kid1| Finished loading MIME types and icons. 2017/11/28 09:05:28 kid1| HTCP Disabled. 2017/11/28 09:05:28 kid1| Squid plugin modules loaded: 0 2017/11/28 09:05:28 kid1| Adaptation support is off. 2017/11/28 09:05:28 kid1| Accepting HTTP Socket connections at local=[::]:3128 remote=[::] FD 16 flags=9 2017/11/28 09:05:28 kid1| Done reading /usr/homepage/htdocs/squid/squid-3.5.26/var/cache/squid swaplog (0 entries) 2017/11/28 09:05:28 kid1| Store rebuilding is 0.00% complete 2017/11/28 09:05:28 kid1| Finished rebuilding storage from disk. 2017/11/28 09:05:28 kid1| 0 Entries scanned 2017/11/28 09:05:28 kid1| 0 Invalid entries. 2017/11/28 09:05:28 kid1| 0 With invalid flags. 2017/11/28 09:05:28 kid1| 0 Objects loaded. 2017/11/28 09:05:28 kid1| 0 Objects expired. 2017/11/28 09:05:28 kid1| 0 Objects cancelled. 2017/11/28 09:05:28 kid1| 0 Duplicate URLs purged. 2017/11/28 09:05:28 kid1| 0 Swapfile clashes avoided. 2017/11/28 09:05:28 kid1|
Took 0.01 seconds ( 0.00 objects/sec). 2017/11/28 09:05:28 kid1| Beginning Validation Procedure 2017/11/28 09:05:28 kid1| Completed Validation Procedure 2017/11/28 09:05:28 kid1| Validated 0 Entries 2017/11/28 09:05:28 kid1| store_swap_size = 0.00 KB 2017/11/28 09:05:29 kid1| storeLateRelease: released 0 objects
Estou particularmente preocupado com a razão pela qual a linha em negrito do log parece exibir um soquete vazio. Existe alguma maneira de corrigir isso com o squid.conf ou o SSH? O objetivo é abrir este servidor até conexões remotas.