Last Updated: February 25, 2016
·
8.529K
· prostoalex

tinyproxy on ubuntu

  • sudo apt-get install tinyproxy
  • in /etc/tinyproxy.conf add a line under Allow's to Allow 123.456.789.1/24 if your IP is within that subnet
  • add a new crontab to restart tinyproxy
    • crontab -e
    • 0 22 * * * root service tinyproxy restart
  • open the port 8888 (which is also configurable in /etc/tinyproxy.conf)
    • /sbin/iptables -I INPUT -p tcp --dport 8888 -m state --state NEW,ESTABLISHED -j ACCEPT
    • /sbin/iptables -I OUTPUT -p tcp --sport 8888 -m state --state ESTABLISHED -j ACCEPT
  • Restart tinyproxy
    • service tinyproxy stop
    • service tinyproxy start
  • In Firefox, Tools->Options->Advanced->Network->Configure how Firefox connects to the Internet, select "Manual proxy configuration", add IP address of your server and port configured for tinyproxy (8888 by default)

Thanks to Justin McCandless for a detailed tutorial including potential workarounds and extra logging.