|
|
||
|---|---|---|
| browser-proxy-settings.jpg | 25.292 - SimpleProxyPAC | |
| browser-settings-static.jpg | 25.291 - SimpleProxyPAC | |
| browser-settings-url.jpg | 25.291 - SimpleProxyPAC | |
| readme.md | 26.034 | |
| SimpleProxy.pac | 25.292 - SimpleProxyPAC | |
| SimpleProxyTor.pac | 25.292 - SimpleProxyPAC | |
SimpleProxyPAC
- kapad`25, created: 25.291, last update: 26.034
- What is it ?
- A proxy auto-config (PAC) file defines how web browsers and other user agents can automatically choose the appropriate proxy server (access method) for fetching a given URL.
- Read more...
- Why ?
-
While trying proxy
i2pandtortraffic, in a common browser, i met the following issues:-
This very nice proxy addon
https://github.com/FelisCatus/SwitchyOmega, doesn't work any more. In realitylibrewolfrefuses to load it at all. -
Tried to replace the above, with this also nice proxy addon
https://github.com/foxyproxy/browser-extension, but it doesn't work for me the way i expected. Cant say, that is not my fault, but very often fails to automatically proxy traffic according to its config, even if the filters are quiet simple, and successfully tested. -
Try to set an
i2plocal proxy as the browser's only proxy, and passtoror any other traffic through it, is slow. Also, this approach have 2 morethings:- if the
i2pproxy is down, nothing works - if want to pass some
cleantraffic outside, that is impossible
- if the
-
- How...
-
In general and in short, a
PACscript, ( yes they are scripts even if wesensethem like config ), consists of a singlemain function, your browser call each time wants to connect to auri. -
The
main functiontests/checks theuri( i think browsers pass only the domain part for privacy reasons ), and then replies ( directly or through another function ), astringlists the proxies available for the requesteddomain, separated by;if more than one proxy is available. Here some examplestrings:"SOCKS5 127.0.0.1:1234"- for asocks5proxy"SOCKS5 127.0.0.1:1234; SOCKS 127.0.0.1:5678;"- for asocks5and asocks4proxy"HTTP 127.0.0.1:8080; HTTPS 127.0.0.1:8043;"- forhttpandhttpsproxy"DIRECT;"- for the system's proxy
- Any Example ?
- I make 2 simple
PACconfig that i currently use. - It's quiet simple:
- proxy
domainslike*.i2pto127.0.0.1:4447( a locali2pproxy ) - proxy
domainslike*.exitor*.onionto127.0.0.1:9050( a localtorproxy ) - proxy
*googletagmanager.comor*adservice.google.comthrough ablackhole( another way to block things ) - for the rest:
- Using
SimpleProxy.pac, send rest traffic to default proxy ( if any ) - Using
SimpleProxyTor.pac, send rest traffic throughtor
- Using
- proxy
- What if my proxies are different ?
- Look inside
SimpleProxy.pacorSimpleProxyTor.pac- at line
#57can set thetorproxy - at line
#62can set thei2pproxy
- at line
- How to Install and Use
-
Install:
-
There are 2 ways to
installaPACscript -
- The
serverapproach:
- If you run a server, save this file in some path inside your server,
and be sure is discoverable.
Note down it's
url, for examplehttp://local.host/SimpleProxy.pac
- The
-
- The
staticapproach:
- Save locally the file, in a
placereadable by your browser, for example/etc/SimpleProxy.pacor/home/user/SimpleProxyTor.pac
- The
-
-
Use:
- open your browser, and for firefox like browsers,
- go to:
Settings > General > Network Settings, and set theAutomatic proxy configuration URLpoint to yourPACconfig.
- go to:
- For example:
-
set
http://local.host/SimpleProxy.pacif choose theserverapproach. ./browser-settings-url.jpg -
set
file:///etc/SimpleProxy.pacorfile:///home/user/SimpleProxy.pac, if choose thestaticfile approach. ./browser-settings-static.jpg
-
- open your browser, and for firefox like browsers,
- What i should be care of ?
- Well..., the common things:
-
Don't use an online
PACurl ( or any online something ), from a source that don't trust. If thatPACis ok at the time you choose it, anevilsite can alter this config at any time, without you to notice it. -
So, better use the
staticfile approach: -
- carefully choose your config
-
- and save it locally.
-
Don't use
proxiesyou don't trust. No matter if conspiracy theories exists or not, aproxyis a computer, that watch, maybe log, even worst alter your traffic. -
Especially
protocolsliketorori2p, have to be proxied by yourself, in order to serve their purpose and try their best for your anonymity and your privacy. -
Read to know, from what such a
proxycan or cannot protects you. For example: -
i2p- https://geti2p.net/en/docs/how/intro , https://geti2p.net/en/docs/how/threat-model
-