Changes between Version 14 and Version 15 of doc/WebProxyHowto


Ignore:
Timestamp:
Sep 20, 2011, 4:57:34 PM (7 years ago)
Author:
nella
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/WebProxyHowto

    v14 v15  
    88Requirements for a tor web proxy:
    99
    10   * An SSL-secured web server offers an HTML form with a URL input box (for an example see below). Because the web proxy will be used mostly by non-freaks, you need a good SSL certificate trusted by most browsers.
     10 * An SSL-secured web server offers an HTML form with a URL input box (for an example see below). Because the web proxy will be used mostly by non-freaks, you need a good SSL certificate trusted by most browsers.
    1111
    12   * A running Tor client or Tor node is needed togehter with privoxy or polipo. Privoxy offers some filtering possibilities. It may be useful to fake some HTML header like Torbutton, to increase the anonymity of the users.
     12 * A running Tor client or Tor node is needed together with Privoxy or Polipo. Privoxy offers some filtering possibilities. It may be useful to fake some HTML header like Torbutton, to increase the anonymity of the users.
    1313
    14 To put together the web server and privoxy + Tor, you need a CGI-proxy like nph-proxy [http://www.jmarshall.com/tools/cgiproxy/]. nph-proxy.cgi is written in Perl and needs the Perl module Net::SSLeay. You may install this modul with aptitude:
     14To put together the web server and Privoxy + Tor, you need a CGI-proxy like nph-proxy [http://www.jmarshall.com/tools/cgiproxy/]. nph-proxy.cgi is written in Perl and needs the Perl module Net::SSLeay. You may install this modul with aptitude:
    1515{{{
    16    # aptitude install libnet-ssleay-perl
     16 # aptitude install libnet-ssleay-perl
    1717}}}
    1818or from CPAN:
    1919{{{
    20    # perl -MCPAN -e shell
    21    cpan> install Net::SSLeay
    22    cpan> quit
     20 # perl -MCPAN -e shell
     21 cpan> install Net::SSLeay
     22 cpan> quit
    2323}}}
    2424
    2525In the next step you have to adapt some settings in head of the script nph-proxy.cgi, put the script in the cgi-bin of your web server and make it executable. See the detailed comments in the script and adapt the following settings:
    2626
    27 1: Redirect all traffic to privoxy/Tor:
     271: Redirect all traffic to Privoxy/Tor:
    2828{{{
    29   $HTTP_PROXY= 'localhost:8118' ;
    30   $SSL_PROXY= 'localhost:8118' ;
     29 $HTTP_PROXY= 'localhost:8118' ;
     30 $SSL_PROXY= 'localhost:8118' ;
    3131}}}
    3232
    33 2: Block the access to the privoxy config:
    34 {{{ 
    35   @BANNED_SERVERS= ('p\.p$','config\.privoxy\.org$')
     332: Block the access to the Privoxy config:
     34{{{
     35 @BANNED_SERVERS= ('p\.p$','config\.privoxy\.org$')
    3636}}}
    37   If you do not want to provide access to some hidden services, you may insert these .onion URLs here too. You may contact Karsten N. [https://www.awxcnx.de/awxcnx.msg] for a list of possibly unwanted services.
     37 If you do not want to provide access to some hidden services, you may insert these .onion URLs here too. You may contact Karsten N. [https://www.awxcnx.de/awxcnx.msg] for a list of possibly unwanted services.
    3838
    39 That is all you have to edit. There are some more variables, to modify the behavour of your cgi-proxy. The following options can be zero, because filtering of content may be done by privoxy or by the user himself:
     39That is all you have to edit. There are some more variables, to modify the behavior of your cgi-proxy. The following options can be zero, because filtering of content may be done by Privoxy or by the user himself:
    4040{{{
    41   $REMOVE_COOKIES= 0;
    42   $REMOVE_SCRIPTS= 0;
    43   $FILTER_ADS= 0;
    44   $HIDE_REFERER= 0;
     41 $REMOVE_COOKIES= 0;
     42 $REMOVE_SCRIPTS= 0;
     43 $FILTER_ADS= 0;
     44 $HIDE_REFERER= 0;
    4545}}}
    4646
    4747You may insert a small URL form on top of every page. It is possible, to modify the default form to match your corporate identity:
    4848{{{
    49   $INSERT_ENTRY_FORM= 1;
     49 $INSERT_ENTRY_FORM= 1;
    5050}}}
    5151