1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
# Copyright
#
# Copyright (C) 2009-2010 Jari Aalto
# Copyright (C) 2003 Laurent Fousse <laurent@komite.net>
#
# License
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Description
#
# To learn what TOP LEVEL section to use in manual pages,
# see POSIX/Susv standard and "tility Description Defaults" at
# http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap01.html#tag_01_11
#
# This is manual page in Perl POD format. Read more at
# http://perldoc.perl.org/perlpod.html or run command:
#
# perldoc perlpod | less
#
# To check the syntax:
#
# podchecker *.pod
#
# Create manual page with command:
#
# pod2man PAGE.N.pod > PAGE.N
=pod
=head1 NAME
corkscrew - Tunnel TCP connections through HTTP proxies
=head1 SYNOPSIS
corkscrew PROXY PROXYPORT TARGETHOST TARGETPORT [AUTH_FILE]
=head1 DESCRIPTION
corkscrew is a simple tool to tunnel TCP connections through an HTTP
proxy supporting the CONNECT method. It reads stdin and writes to std-
out during the connection, just like netcat. It can be used for
instance to connect to an SSH server running on a remote 443 port
through a strict HTTPS proxy.
=over 4
=item PROXY
The name of the host running the HTTP proxy.
=item PROXYPORT
The port on which to connect on the proxy.
=item TARGET
The host to reach through the proxy.
=item TARGETPORT
The port to connect to on the target host.
=item AUTH_ FILE
The auth file is made of one single line containing your username and
password in the form
username:password
=back
=head1 OPTIONS
None.
=head1 EXAMPLES
The common usage of corkscrew is to put the following line in
~/.ssh/ssh_config:
ProxyCommand corkscrew proxy proxyport %h %p [<path to auth_file>]
This will let the ssh connection go through the proxy with the help of
corkscrew.
=head1 ENVIRONMENT
None.
=head1 FILES
None.
=head1 SEE ALSO
ssh_config(5)
=head1 AUTHORS
Program was written by Pat Padgett <pat@patpadgett.com>.
This manual page was written by Laurent Fousse <laurent@komite.net> for
the Debian GNU system (but may be used by others). Updated by Jari
Aalto <jari.aalto@cante.net>. Released under license GNU GPL version 2
or (at your option) any later version. For more information about
license, visit <http://www.gnu.org/copyleft/gpl.html>.
=cut
|