差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
it:server:squid [2023-08-04 09:26] – [用户认证] goldentianyait:server:squid [2023-08-05 17:25] (当前版本) – [测试服务] goldentianya
行 70: 行 70:
 修改config文件 修改config文件
  
-<code+<file > 
-include /etc/squid/conf.d/*.  +
 +# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS 
 +# 
 +include /etc/squid/conf.d/*
 auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwords auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwords
 auth_param basic realm proxy auth_param basic realm proxy
 acl authenticated proxy_auth REQUIRED acl authenticated proxy_auth REQUIRED
- # Example rule allowing access from your local networks.+# Example rule allowing access from your local networks.
 acl localnet src your_ip_address acl localnet src your_ip_address
- # Adapt localnet in the ACL section to list your (internal) IP networks +# Adapt localnet in the ACL section to list your (internal) IP networks 
- # from where browsing should be allowed +# from where browsing should be allowed 
- #http_access allow localnet+#http_access allow localnet
 http_access allow localhost http_access allow localhost
 http_access allow authenticated http_access allow authenticated
- # And finally deny all other access to this proxy+# And finally deny all other access to this proxy
 http_access deny all http_access deny all
-</code>+</file>
 ===== 测试服务 ===== ===== 测试服务 =====
  
 测试方式 测试方式
-    * curl 命令 <color #ff7f27>''%%curl -x http://217.160.61.19:3129 https://google.com%%''</color>+    * curl 命令 <color #ff7f27>''%%curl -v -x http://217.160.61.19:3129 https://google.com%%''</color>
     * nc -v <proxy_ip> <proxy_port> <color #ff7f27>''%%nc -v 217.160.61.19 3129%%''</color> (仅仅测试端口是否开通,如果要看内容,使用上一条测试命令)     * nc -v <proxy_ip> <proxy_port> <color #ff7f27>''%%nc -v 217.160.61.19 3129%%''</color> (仅仅测试端口是否开通,如果要看内容,使用上一条测试命令)
     * telnet <proxy_ip> <proxy_port>     * telnet <proxy_ip> <proxy_port>
 +    * ++ 当前服务 | http://tonny:[email protected]:3129 ++  查看 ''serverv2ray::/etc/squid''
 +
 +
 +
 +
 +第二种方式 <color #ff7f27>''%%curl -x 217.160.61.19:3129 -U "username:passwd" ipinfo.io%%''</color>
  
  
it/server/squid.1691141162.txt.gz · 最后更改: 2023-08-04 09:26 由 goldentianya
回到顶部
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0