Changes between Initial Version and Version 1 of PROXY_HTTP


Ignore:
Timestamp:
04/08/16 11:32:13 (9 years ago)
Author:
sky
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PROXY_HTTP

    v1 v1  
     1= Http Proxy with tls =
     2
     3
     4== TinyProxy ==
     5https://tinyproxy.github.io/
     6
     7{{{
     8## Configuration
     9## /etc/tinyproxy/tinyproxy.conf or /etc/tinyproxy.conf
     10
     11/etc/init.d/tinyproxy restart
     12
     13}}}
     14
     15
     16== Stunnel ==
     17https://www.stunnel.org/
     18
     19{{{
     20## Server Configuration
     21## /etc/stunnel/stunnel.conf
     22
     23cert = /etc/stunnel/stunnel.pem
     24sslVersion = TLSv1
     25
     26chroot = /var/run/stunnel/
     27setuid = nobody
     28setgid = nobody
     29pid = /stunnel.pid
     30
     31socket = l:TCP_NODELAY=1
     32socket = r:TCP_NODELAY=1
     33compression = zlib
     34
     35[tinyproxy]
     36accept  = 443
     37connect = 127.0.0.1:8888
     38
     39}}}
     40
     41{{{
     42## For Server ##
     43## Create Certificate
     44
     45openssl genrsa -out /etc/stunnel/key.pem 2048
     46openssl req -new -x509 -key /etc/stunnel/key.pem -out /etc/stunnel/cert.pem -days 7300
     47
     48cat /etc/stunnel/{key.pem,cert.pem} >/etc/stunnel/stunnel.pem
     49mkdir /var/run/stunnel && chown nobody. /var/run/stunnel
     50
     51## Launch
     52stunnel /etc/stunnel/stunnel.conf
     53
     54}}}
     55
     56{{{
     57## Client Configuration
     58## /etc/stunnel/stunnel.conf
     59
     60cert = /etc/stunnel/stunnel.pem
     61sslVersion = TLSv1
     62
     63chroot = /var/run/stunnel/
     64setuid = nobody
     65setgid = nobody
     66pid = /stunnel.pid
     67
     68socket = l:TCP_NODELAY=1
     69socket = r:TCP_NODELAY=1
     70compression = zlib
     71
     72client = yes
     73
     74[tinyproxy]
     75accept  = 9999
     76connect = $SERVER_IP:443
     77
     78}}}
     79
     80{{{
     81## For Client ##
     82## Get stunnel.pem from server
     83
     84stunnel /etc/stunnel/stunnel.conf
     85
     86}}}