The post is under continious construction, and will be updated whenever new better/easier methods are brought to my attention. If you know other good methods, or if you want to translate this to another language, please let me know via github issues, or at sergey.frolov@colorado.edu. Any feedback is much appreciated.
Ways to start using Secure Web Proxy on client side:
Choose Automatic proxy configuration URL, and paste the following:
Don’t forget to substitute
You can also check “Do not prompt for authentication if password is saved” for convinience
You can also specify full path to local PAC file.
Control Panel → Network and Internet → Internet Options → Connections → LAN settings → Check the “Use automatic configuration script” and specify url or path to your PAC file.
from http://web.archive.org/web/20170918171647/https://sfrolov.io/2017/08/secure-web-proxy-client-en
还可参考:https://github.com/sergeyfrolov/configuring-secure-web-proxy
Ways to start using Secure Web Proxy on client side:
- Set up per-appilcation proxy
- Use Proxy Auto-Config (PAC) file.
PAC files are less common, but they don’t require special apps or extensions for browsers or mobile platforms and allow flexible configuration.
Firefox
Open Menu (upper right corner) → Preferences → Advanced → Network → SettingsChoose Automatic proxy configuration URL, and paste the following:
data:text/plain,function%20FindProxyForURL(){return%20"HTTPS%20sfrolov.io";}
Don’t forget to substitute
sfrolov.io
for your.server.com
, and don’t lose HTTPS%20
before and ";}
after.You can also check “Do not prompt for authentication if password is saved” for convinience
Google Chrome/Chromium
- Use extension, for example SwitchyOmega. This extension guides user through setup, and here’s mine for reference:
Then in upper-right corner you can switch between “Direct” connection and your proxy:
- Alternatively, you can pass
--proxy-server="https://sfrolov.io"
(substitutesfrolov.io
foryour.server.com
) to google-chrome. In Linux/MacOS you can callgoogle-chrome --proxy-server="https://sfrolov.io"
. In Windows/macOS you can right click on icon and set up passing aforementioned string as argument.
Proxy Auto-Config (PAC) File
Remember that you first have to generate PAC file. ForwardProxy plugin for Caddy web server does that automatically.PAC on Android
Open Wi-Fi settings → hold/tap on currently used Wi-Fi and choose “Modify Network” → In Advanced options set proxy to “Proxy Auto-Config” → Set PAC URL to whereever your PAC file is, for example, https://sfrolov.io/proxy.pacPAC in Firefox
Open Menu (upper right corner) Preferences → Advanced → Network → Settings → Set Automatic proxy configuration URL to whereever your PAC file is, for example, https://sfrolov.io/proxy.pacYou can also specify full path to local PAC file.
PAC on Windows 7
Unless you are sure that you need PAC file, I’d recommend to specify just a proxyControl Panel → Network and Internet → Internet Options → Connections → LAN settings → Check the “Use automatic configuration script” and specify url or path to your PAC file.
PAC on macOS
System Preferences → Network → Choose needed network and click “Advanced…” → Proxies → Check “Automatic Proxy Configuration” and specify url or path to your PAC file.System-wide proxy set up
Windows 7 system wide proxy
Control Panel → Network and Internet → Internet Options → Connections → LAN settings → Check “Use a proxy server…” and paste your “https://yourserver.com” in Address and “443” in port. Don’t lose “https://” in Address, Windows likes to remove it when you open LAN settings window again.from http://web.archive.org/web/20170918171647/https://sfrolov.io/2017/08/secure-web-proxy-client-en
还可参考:https://github.com/sergeyfrolov/configuring-secure-web-proxy
No comments:
Post a Comment