User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
ssl_proxy [2010/06/20 09:57] – created szilussl_proxy [2010/06/20 10:06] (current) szilu
Line 69: Line 69:
  
 === Defaults: === === Defaults: ===
-<code sh>+<code bash>
     # ssl_proxy -s 443 -c localhost:80 -m 32 -C /etc/symbion/cert.pem \     # ssl_proxy -s 443 -c localhost:80 -m 32 -C /etc/symbion/cert.pem \
             -K /etc/symbion/key.pem -U 2048 -D 8192             -K /etc/symbion/key.pem -U 2048 -D 8192
 </code> </code>
 +
 +==== Notes ====
 +SSL Proxy 1.0.0 introduced the ability to connect to UNIX domain sockets, not just TCP sockets. Please note that if you use UNIX domain sockets and you also use the -r (chroot) feature to make your system more secure, than the socket file must reside under the chrooted directory. The path specified in the -c option must be relative to the chrooted directory. Also note that if you use UNIX domain sockets with the -u (setuid) feature, then the user must have read and write permission to the socket file. The TCP sockets has no similar limitations, because they are not associated
 +with filesystem objects.
 +
 +The file provided with the -v option can contain several CA certificates in PEM format. If you use the -V (certificate directory) option, then each file have to contain exactly ONE certificate. The files are looked up by the CA subject name hash value, which must be available. You can create symlinks with
 +the c_rehash utility, contained in the openssl package.
 +
 +==== Client info feature ====
 +SSL Proxy can provide client information to the server in a special format.
 +
 +This is a new feature in version 1.0.7, so I do not know of any server software that can use this information except my own special purpose software. If I receive information about any software available that uses this information, I will publicate it on our website, www.symbion.hu.
 +
 +The usage is very simple. You provide the -i option to SSL Proxy. When a client connects, SSL Proxy connects to the server the usual way. But before the data sent by the client is forwarded to the server, SSL Proxy sends an information line to the server. This is an example of a HTTPS connection with the -i option:
 +
 +<code>
 +szilu@maia:[~]$ nc -l -p 8080
 +#@ip=127.0.0.1 port=57223
 +GET / HTTP/1.1
 +Host: localhost:8443
 +User-Agent: Links (2.1pre37; Linux 2.6.27-11-eeepc i686; 80x24)
 +Accept: */*
 +Accept-Encoding: gzip, deflate
 +...
 +</code>
 +
 +As you can see, an extra line beginning with '#@' is sent to the server. It contains the IP address and the TCP port of the client and optionally the common name (cn) of the client, if it has provided a certificate.
 +
 +This information can be used for example for logging or access control purposes.
 +
 +==== Examples ====
 +If you are running a HTTP server at port 80 which does not has SSL support, and you want it to work on SSL too, than defaults are good for you:
 +<code bash>
 +ssl_proxy
 +</code>
 +
 +If you would like to use maximal security level, you can use:
 +<code bash>
 +mkdir /etc/symbion/chroot_dir
 +ssl_proxy -u nobody -r /etc/symbion/chroot_dir
 +</code>
 +
 +==== How to report bugs ====
 +To report a bug, send mail to //sslproxy-users at lists dot sourceforge dot net//.
 +In the mail include:
 +
 +  * The version
 +  * Information about your system. For instance:
 +    * What operating system and version
 +    * What version of OpenSSL
 +    * What version of the C library
 +  * Anything else you think is relevant.
 +    * How to reproduce the bug.
 +    * The text that was printed out (Debug information).
 +
 +You can also use tha SourceForge bugtracking system at
 +    http://sourceforge.net/tracker/?group_id=21298
 +
 +==== Patches ====
 +Patches can be sent to tha //sslproxy-users at lists dot sourceforge dot net// mailing list. Please include your name and email address.
 +
 +If the patch fixes a bug, it is usually a good idea to include all the information described in "How to Report Bugs".

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information