Post Reply 
Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial)
Jan. 29, 2016, 03:45 PM (This post was last modified: Dec. 08, 2017 10:26 PM by Faxopita.)
Post: #8
RE: Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial)
Make ProxHTTPSProxy Start Automatically at Session Login

Setting up the Dæmon
  1. Retrieve the attached archive to this post.
  2. Create the following directory:
    Code:
        mkdir -p /usr/local/var/log/ProxHTTPSProxy/
    (this to allow you view ProxHTTPSProxy output)
  3. Copy ProxHTTPSProxy.sh script to your favourite script folder.
  4. Modify the script so it can locate both your own Python binary and ProxHTTPSProxy folders; currently set are my own ones.
  5. Copy com.prxbx.ProxHTTPSProxy.plist to ~/Library/LaunchAgents/
  6. Edit the above .PLIST file and replace [INSERT_ABSOLUTE_PATH] by the path—in absolute terms—leading to the script ProxHTTPSProxy.sh
  7. Service should start automatically at next login, but you can run it now:
    • launchctl load com.prxbx.ProxHTTPSProxy.plist
    • To stop the service: launchctl unload com.prxbx.ProxHTTPSProxy.plist
    • To verify the service is loaded: launchctl list | grep "prxbx"

View ProxHTTPSProxy Output in Your Browser
  1. Create the following directory:
    Code:
        mkdir -p /usr/local/var/log/Privoxy2GoTTY/
    (just in case, some logs to help isolate an issue)
  2. Install GoTTY via Homebrew:
    Code:
        brew update && brew install gotty
  3. Copy gotty.http.requests.plist to folder ~/Library/LaunchAgents/
  4. In the .PLIST file, make the necessary change as per [INSERT_ABSOLUTE_PATH].
  5. Copy Privoxy2GoTTY.sh to your script folder. Currently set to listen on Port 8082; amend if necessary.
  6. Service should start at next login, but you can run it now: launchctl load gotty.http.requests.plist
  7. Open a browser and access http://127.0.0.1:8082

Installation works under regular user session; no need to use sudo. If a password is being asked, abort and perform the following commands:

Code:
sudo chown $(whoami):admin /usr/local
brew doctor
brew update

Above, 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.

-–—

Minuscule donations are always appreciated…
Code:
BTC --> 34WKogWorDoReJ2MSxw8rTsrGD87VMAPJY
BCH --> 1AXwyMdtMFZktZPvXScC58ESUZXptmjvge
DASH -> XusJsETR6PwDnG4Gde7cvGeRhXzUJFSxtD
ETH --> 0xb829FA99AA9AB31C32590dbc88B837bC5D91453e
ETC --> 0x059F128357331c346Ad2E23F95a4639beC3f0b3a
LTC --> MK7vxk93A1M6HHAYT38W8NPJSb8zANqCia
ZEC --> t1JNCuxdZEWUPBQiAzxZPUMqb4BM87sxs9H
DOGE -> DBPAUuCaez4JYGobAn4RHNNhFXwa9u1W6N
STRAT > SgG6jAHuxQfzW1QBaWyQRVdCdSq514BcyM


Attached File(s)
.zip  Dæmonizer.zip (Size: 1.88 KB / Downloads: 774)
Add Thank You Quote this message in a reply
[-] The following 2 users say Thank You to Faxopita for this post:
cattleyavns, kik0s
Post Reply 


Messages In This Thread
RE: Privoxy + ProxHTTPSProxyMII on OS X - diem - Oct. 12, 2015, 03:07 PM
RE: Privoxy + ProxHTTPSProxyMII on OS X - JJoe - Oct. 13, 2015, 12:09 AM
RE: Enable HTTPS Filtering: Chain ProxHTTPSProxyMII to Privoxy (OS X Tutorial) - Faxopita - Jan. 29, 2016 03:45 PM

Forum Jump: