PROXYTUNNEL(1) | PROXYTUNNEL(1) |
proxytunnel - program to tunnel a connection through a standard HTTPS proxy
proxytunnel [OPTION]...
proxytunnel is a program to tunnel any connection through a standard HTTPS proxy, circumventing standard HTTP filtering mechanisms. It’s mostly used as a backend for OpenSSH’s ProxyCommand, and as a proxy backend for Putty. It can also be used for other proxy-traversing purposes like proxy bouncing.
-i, --inetd
-a, --standalone=port
-p, --proxy=host:_port_
-r, --remproxy=host:_port_
-d, --dest=host:_port_
-e, --encrypt
-E, --encrypt-proxy
-X, --encrypt-remproxy
-W, --wa-bug-29744
-B, --buggy-encrypt-proxy
-F, --passfile=filename
-P, --proxyauth=username:_password_
-R, --remproxyauth=username:_password_
-N, --ntlm
-t, --domain=STRING
-H, --header=STRING
-x, --proctitle=STRING
-v, --verbose
-q, --quiet
-h, --help
-V, --version
host:_port_ is the destination hostname and port number combination
Specifying the destination as arguments is exactly the same as specifying them using the -d or --dest option.
Depending on your situation you might want to do any of the following things:
$ proxytunnel -v -p proxy.company.com:8080 -d system.home.nl:22
$ proxytunnel -v -p proxy.company.com:8080 -P username:password -d system.home.nl:22
$ export PROXYPASS=password $ proxytunnel -v -p proxy.company.com:8080 -P username -d system.home.nl:22
$ proxytunnel -v -p proxy.company.com:8080 -r proxy.athome.nl:443 -d system.friend.nl:22
$ proxytunnel -v -E -p proxy.company.com:8080 -d system.home.nl:22
To use this program with OpenSSH to connect to a host somewhere, create a ~/.ssh/config file with the following content:
Host system.athome.nl
ProxyCommand proxytunnel -p proxy.company.com:8080 -d %h:%p
ServerAliveInterval 30
The ServerAliveInterval directive makes sure that idle connections are not being dropped by intermediate firewalls that remove active sessions aggresively. If you see your connection dropping out, try to lower the value even more.
To use the dynamic (SOCKS) portforwarding capability of the SSH client, you can specify the DynamicForward directive in your ssh_config file like:
Host system.athome.nl
DynamicForward 1080
ProxyCommand proxytunnel -p proxy.company.com:8080 -d %h:%p
ServerAliveInterval 30
Most HTTPS proxies do not allow access to ports other than HTTPS (tcp/443) and SNEWS (tcp/563). In this case you need to make sure the SSH daemon or remote proxy on the destination system is listening on either tcp/443 or tcp/563 to get through.
Proxytunnel can be influenced by setting one of the following environment variables:
HTTP_PROXY
PROXYUSER
PROXYPASS
REMPROXYUSER
REMPROXYPASS
This software is bug-free, at least we’d like to think so. If you do not agree with us, please attach the proof to your friendly email :)
This manpage was initially written by Loïc Le Guyader <loic.leguyader@laposte.net[1]> for the Debian GNU/Linux system, revamped in asciidoc by Dag Wieërs <dag@wieers.com[2]> and is now maintained by the Proxytunnel developers.
Homepage at http://proxytunnel.sourceforge.net/
Proxytunnel developers
Augustus 2008 | 1.9.0 |