|
Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial)
|
|
Jul. 26, 2015, 11:09 AM
(This post was last modified: Jun. 14, 2018 11:58 AM by Faxopita.)
Post: #1
|
|||
|
|||
|
Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial)
ProxHTTPSProxyMII (click link to learn more)
Created to provide modern nag-free HTTPS connections for an HTTP proxy. ![]() Credits & Acknowledgements: whenever, JJoe, Cattleya, GunGunGun and other contributors to ProxHTTPSProxyMII Installation Steps Step 1: if not previously done, install the Command Line Tools (click link to learn more); run in Terminal (begin with sudo if necessary): Code: xcode-select --installIf you'd like to learn more about this step, visit this excellent tutorial. Before installing Homebrew, make sure you're not using C shell. To know which one Terminal app. is currently using, input Code: echo $SHELLIf you see /bin/csh, then change shell by simply typing bash. Changing shell to Bash—or any other that's not C—is only necessary to allow Brew installation using Ruby. Step 2: install Homebrew from http://brew.sh or visit this GitHub page. If you encountered an issue during the installation, install the full Xcode package and try again. After installing Homebrew, perform these commands: Code: sudo chown $(whoami):admin /usr/localAbove, it is not recommended to run chown command with option -R for security reasons. However, if you run into tons of problems–such as being not able to upgrade packages installed via Homebrew–then sadly, in very last resort, you use the option -R. It is worth mentioning that ClamXav, for example, does not appreciate–for very legitimate reasons–the use of this recursive mode from the /usr/local/ folder. Note that the first command above—beginning with sudo—has to be run after every permission repair. If not, Homebrew will run into trouble during manual package upgrade. Step 3: Preparing for ProxHTTPSProxy installation. Run these commands: Code: brew install python3 --with-brewed-opensslStep 4: obtain ProxHTTPSProxyMII Python scripts from the “ProxHTTPSProxyMII: Development†thread. Step 5: add ProxHTTPSProxy's CA.crt to OS X Keychain! If using Firefox, use it to import this certificate through its advanced preferences: show Firefox certificates and visit Authorities tab, then import… Step 6: set HTTPS Proxy to 127.0.0.1:8079 instead of 127.0.0.1:8118 (the port number used by Privoxy); see OS X Network Preferences, under Proxies tab. You may equally input this command in Terminal (replace Wi-Fi by Ethernet or "Thunderbolt Ethernet" if necessary): Code: sudo networksetup -setsecurewebproxy Wi-Fi 127.0.0.1 8079Step 7 Add these lines to user.filter file: Code: CLIENT-HEADER-TAGGER: tagger4httpsAdd these lines to user.action file: Code: { +client-header-tagger{tagger4https} }Step 8: open config.ini file—inside ProxHTTPSProxyMII folder. Locate ProxAddr and set port to 8118, thus replacing 8080. Code: ProxAddr = http://localhost:8118Step 9: just be in your ProxHTTPSProxyMII folder and Launch ProxHTTPSProxy with the following command: Code: ./ProxHTTPSProxy.pyIf this doesn't work: Code: Python3.X ProxHTTPSProxy.pyPython binaries should be located inside… Code: /usr/local/bin/Only for those who want to go a little deeper… Add above path to environment variable $PATH and rehash executables: Code: hash -rAlternatively, you can type: Code: /usr/local/bin/python3.X ProxHTTPSProxy.pyYou're done! Note 1: for existing ProxHTTPSProxyMII's installation (before version 1.4), you must…
Note 2: use ProxHTTPSProxyMII's config file to set exceptions under [SSL Pass-Thru]; make a backup of it for later upgrade. Note 3: ProxHTTPSProxyMII folder can be located anywhere on your system. Just make sure you have a fairly quick access to config.ini Note 4: for more info on ProxHTTPSProxyMII, visit http://www.proxfilter.net/proxhttpsproxy/index.html, ProxHTTPSProxyMII thread and GitHub page. Note 5: activating temporary root access on a regular user account.
Note 6: if you intend to use Homebrew's upgrade command, it might be worth to check this article first. This one is interesting as well! System Integrity Protection in OS X El Capitan could cause some issues. -–— Minuscule donations are always appreciated… Code: BTC --> 34WKogWorDoReJ2MSxw8rTsrGD87VMAPJY |
|||
The following 1 user says Thank You to Faxopita for this post:GORTOP |
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial) - Faxopita - Jul. 26, 2015 11:09 AM
RE: Privoxy + ProxHTTPSProxyMII on OS X - cattleyavns - Jul. 26, 2015, 01:36 PM
RE: Privoxy + ProxHTTPSProxyMII on OS X - diem - Oct. 12, 2015, 03:07 PM
RE: Privoxy + ProxHTTPSProxyMII on OS X - Faxopita - Oct. 12, 2015, 10:22 PM
RE: Privoxy + ProxHTTPSProxyMII on OS X - JJoe - Oct. 13, 2015, 12:09 AM
RE: Privoxy + ProxHTTPSProxyMII on OS X - Faxopita - Oct. 13, 2015, 09:40 AM
RE: Privoxy + ProxHTTPSProxyMII on OS X - Faxopita - Oct. 18, 2015, 09:50 PM
RE: Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial) - Faxopita - Jan. 29, 2016, 03:45 PM
RE: Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial) - Faxopita - Apr. 09, 2016, 10:00 AM
RE: Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial) - Faxopita - Jan. 26, 2017, 04:06 PM
|

Search
Member List
Calendar
Help



![[Image: amfAkz74tHCY.gif]](https://framapic.org/Ts5zWFfC9081/amfAkz74tHCY.gif)


![[-]](images/ONi/collapse.gif)