如何使用netsh设置SQUID代理身份验证? [英] How to set SQUID Proxy authentication using netsh?

查看:358
本文介绍了如何使用netsh设置SQUID代理身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在SQUID代理后面。我需要为cmd设置代理设置。我使用的是win7,因此无法使用proxycfg。我这样使用netsh:
netsh winhttp import proxy source = ie

I am behind a SQUID proxy. I need to set proxy settings for cmd. I'm using win7 so proxycfg cannot be used. I used netsh like this: netsh winhttp import proxy source=ie

Internet Explorer已经有了我的代理设置。现在的问题是我的代理服务器需要用户名/密码验证。我不知道如何在命令提示符下设置用户名和密码。

Internet explorer had my proxy settings already. Now the problem is that my proxy requires username/password authentication. I do not know how to set the username and password in command prompt. Any help would be greatly appreciated.

在此先感谢

推荐答案

这是我的朋友的解决方案

Here is the solution my friend

安装CC代理。该软件在我的PC上创建了本地代理服务器。我将自己的IP地址用作LAN设置中的代理服务器,这使我无需每次请求代理即可访问Internet,因为CCproxy使用我的校园代理作为级联代理。

Install CC Proxy. This software created a local proxy server on my PC. I used my own IP address as my proxy server in LAN settings and this enabled me to access the internet without asking for proxy everytime as CCproxy used my campus proxy as the cascading proxy.

在提示符下键入netsh命令,以便应用程序开始使用本地代理。 (由于CC代理,无法在本地代理上进行身份验证)

Type in the netsh command in prompt so that the apps start using the local proxy. (no authentication on local proxy due to CC Proxy)

netsh
winhttp
导入代理源=即
Metro应用已编程为阻止通过本地代理访问Internet。

netsh winhttp import proxy source=ie Metro apps are programmed to prevent access of internet through a local proxy.

另外,设置

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\服务\NlaSvc\参数\ \Internet\EnableActiveProbing
到0,然后在组策略中启用以下选项:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet\EnableActiveProbing to 0 and then go enable the following options in the Group Policy:

打开本地组策略编辑器(gpedit.msc)
导航到计算机配置-管理模板-网络隔离。
启用代理定义是权威的和子网定义是权威的。

Open "Local Group Policy Editor" (gpedit.msc) Navigate to "Computer Configuration - Administrative Templates - Network Isolation". Enable "Proxy Definitions Are Authorative" and "Subnet definitions are authorative".

在Twitter上关注我@smailbelhamidi

follow me on twitter @smailbelhamidi

这篇关于如何使用netsh设置SQUID代理身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆