欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Install Squid on Debian
来自开放百科 - 灰狐
(版本间的差异)
第29行: | 第29行: | ||
通过psftp把这个文件copy到本机 | 通过psftp把这个文件copy到本机 | ||
+ | |||
+ | 支持gaim->msn | ||
+ | msn messenger (messenger.hotmail.com:1863) | ||
+ | 需要打开1863端口,但与acl Safe_ports port 1025-65535 # unregistered ports 有冲突 | ||
+ | |||
+ | ICQ (login.oscar.aol.com:5190) | ||
+ | acl SSL_ports port 22 443 460 563 1863 5190 10000 | ||
+ | acl Safe_ports port 1025-65535 # unregistered ports | ||
+ | http_access deny CONNECT !SSL_ports | ||
+ | |||
+ | // 加入这句话也解决了webmin不能访问的问题,现在可以从其他机器访问https://192.168.1.6:10000 啦:) | ||
+ | gaim的问题也解决啦 | ||
+ | |||
+ | #Recommended minimum configuration: | ||
+ | acl all src 0.0.0.0/0.0.0.0 | ||
+ | acl manager proto cache_object | ||
+ | acl localhost src 127.0.0.1/255.255.255.255 | ||
+ | acl SSL_ports port 443 563 | ||
+ | acl Safe_ports port 80 # http | ||
+ | acl Safe_ports port 21 # ftp | ||
+ | acl Safe_ports port 443 563 # https, snews | ||
+ | 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 Safe_ports port 901 # SWAT | ||
+ | |||
+ | # new add options | ||
+ | acl Safe_ports port 1863 # gaim | ||
+ | acl purge method PURGE | ||
+ | acl CONNECT method CONNECT | ||
+ | |||
+ | # Deny requests to unknown ports | ||
+ | http_access deny !Safe_ports | ||
+ | # Deny CONNECT to other than SSL ports | ||
+ | http_access deny CONNECT !SSL_ports | ||
+ | |||
+ | Foxmail的设置,SMTP:25,POP3:110 | ||
+ | 解析不出 mail.huihoo.com | ||
+ | 换成ip 61.50.196.45 | ||
+ | |||
+ | 连接 192.168.1.6:3128 |
2006年11月19日 (日) 16:37的最后版本
Squid Web Proxy Cache
apt-get install squid
安装完即启动,但需要修改将可访问的IP范围纳入文件中 /etc/squid.conf
把一些项目前的#去掉
http_port 3128 Cache_mem 8MB Maximum_object_size 4096 KB Fqdncache_size 1024 Cache_dir ufs /var/spool/squid 100 16 256 Cache_acces_log /var/log/squid/access.log Cache_log /var/log/squid/cache.log Cache_store_log none
ace all src 0.0.0.0/0.0.0.0 // 所有ip ace subnet 192.168.1.0/255.255.255.0 // 192.168.1.0子网的
http_access allow all
文件里包含了一个examples的参考设置,在50%的位置
文档放在 /usr/share/doc/squid
可通过lynx 浏览html文件
通过psftp把这个文件copy到本机
支持gaim->msn
msn messenger (messenger.hotmail.com:1863) 需要打开1863端口,但与acl Safe_ports port 1025-65535 # unregistered ports 有冲突
ICQ (login.oscar.aol.com:5190)
acl SSL_ports port 22 443 460 563 1863 5190 10000 acl Safe_ports port 1025-65535 # unregistered ports http_access deny CONNECT !SSL_ports
// 加入这句话也解决了webmin不能访问的问题,现在可以从其他机器访问https://192.168.1.6:10000 啦:)
gaim的问题也解决啦
- Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl SSL_ports port 443 563 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 563 # https, snews 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 Safe_ports port 901 # SWAT
- new add options
acl Safe_ports port 1863 # gaim acl purge method PURGE acl CONNECT method CONNECT
- Deny requests to unknown ports
http_access deny !Safe_ports
- Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
Foxmail的设置,SMTP:25,POP3:110
解析不出 mail.huihoo.com 换成ip 61.50.196.45
连接 192.168.1.6:3128
分享您的观点