Use Cow Instead of Polipo to Convert socks/shadowsocks/ssh tunnel to Http Proxy

by m2sh
GNU/Linux ◆ xterm-256color ◆ bash 6844 views

How to install COW proxy instead of Using Polipo for converting Socks/Shadowsocks/ssh tunnel to Http Proxy (on Raspbian Jessie)

All Steps :

  • Run curl -L git.io/cow | bash

  • When ask for directory write /usr/local/bin
  • After installing finished go to .cow dir in your home dir with cd ~/.cow/
  • Replace English Config File over default Chinese version with this command curl -L https://cdn.rawgit.com/cyfdecyf/cow/master/doc/sample-config/rc-en > rc
  • Edit rc file with nano rc
  • find listen = http://127.0.0.1:7777 & add your system ip address at the end of line : listen = http://127.0.0.1:7777 192.168.1.35:7777
  • Set logFile to save cow logs like this line : logFile = /var/log/cow/log (Note : you must create this directory & file before set in rc file. you can run this : sudo mkdir -p /var/log/cow && sudo touch /var/log/cow/log)
  • Save File (with Ctrl+X -> Y -> Enter)
  • Test Running Cow With cow &
  • If you want to Set Blocked (sites that cow should pass with proxy) & Direct (sites that cow don’t need to use proxy for) do this :
    • Run nano blocked Then write your blocked urls
    • Run nano direct Then write your direct urls
    • Kill Cow process Then Run it again with this killall cow & cow &

To See more information about Cow see Cow Github page