forked from joshb/prtunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprtunnel.1
102 lines (100 loc) · 6.07 KB
/
prtunnel.1
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
.\"
.\" Copyright (C) 2002-2006 Josh A. Beam
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
.\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
.\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
.\" WHETHER IN CONTACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.TH prtunnel 1 "March 12, 2006" "prtunnel 0.2.7"
.SH NAME
.PP
prtunnel \- tunnels TCP connections through HTTP or SOCKS5 proxies
.SH SYNOPSIS
.PP
.B prtunnel
[-DVc6hv] [-t \fIproxy-type\fP] [-H \fIproxy-host\fP] [-P \fIproxy-port\fP] [-T \fIaddress\fP] [-u \fIusername\fP] [-p \fIpassword\fP] [--password-prompt] [--http-1.0] [--telnet-keep-alive \fIinterval\fP] [--crlf-keep-alive \fIinterval\fP] [--irc-auto-pong] [--timeout \fItime\fP] [--server-timeout \fItime\fP] [--help] [--version] \fIlocal-port\fP [\fIremote-host\fP \fIremote-port\fP]
.SH DESCRIPTION
.PP
prtunnel tunnels TCP connections through an HTTP or SOCKS5 proxy server. It is useful if you're behind such a proxy and want to use a program that doesn't have native proxy support.
\fIlocal-port\fP is the port that prtunnel will listen for a connection on. \fIremote-host\fP and \fIremote-port\fP are the hostname/address and port, respectively, of the remote server that the connection will be tunneled to.
If run without the <remote host> and <remote port> arguments, prtunnel will accept SOCKS4/SOCKS5 commands from the client to determine the remote server to connect to.
.SH OPTIONS
.PP
.IP "-D"
Run as a daemon. prtunnel will run in the background and accept multiple TCP connections with this option.
.IP "-V"
Turns on verbose output; all data transferred will be printed to standard output
.IP "-c"
Use color to differentiate between incoming and outgoing data in verbose output; without this, each line of outgoing verbose output will begin with ">>> " and incoming output with "<<< "
.IP "-6"
Enables IPv6 mode. This doesn't affect the way outgoing connections are made with the direct/direct6 tunneling modes; direct will always connect with IPv4 and direct6 will always connect with IPv6.
.IP "-t \fItunnel-mode\fP"
Set tunneling mode; http (default), socks5, direct and direct6 are supported. With http and socks5, you must specify the address of an http/socks5 proxy to use. direct will make prtunnel connect directly to the remote host specified; direct6 does the same, but with IPv6 instead of IPv4.
.IP "-H \fIproxy-host\fP"
Set proxy server hostname
.IP "-P \fIproxy-port\fP"
Set proxy server port; defaults are 8080 for http, 1080 for socks5
.IP "-T \fIaddress\fP"
Add a trusted address. For security reasons, only localhost is trusted by default. Only connections from trusted addresses are allowed. You can specify an address itself (like 10.0.0.0), or in the form of \fIaddress\fP/\fIbitcheck\fP, where \fIbitcheck\fP is the number of leading bits to compare; for example, \fI10.0.0.0/24\fP would mean any address in the range of 10.0.0.0 to 10.0.0.255.
.IP "-u \fIusername\fP"
Set username to use for proxy authentication
.IP "-p \fIpassword\fP"
Set password to use for proxy authentication
.IP "--password-prompt"
Prompt for proxy username and password
.IP "--http-1.0"
Use HTTP/1.0 instead of HTTP/1.1 for HTTP connections
.IP "--telnet-keep-alive \fIinterval\fP"
Causes prtunnel to send keep-alive data at the specified interval, using the telnet NOP command
.IP "--crlf-keep-alive \fIinterval\fP"
Causes prtunnel to send keep-alive data at the specified interval, using a CRLF (this works for some text-based protocols)
.IP "--irc-auto-pong"
Causes prtunnel to automatically respond to PING commands sent by IRC servers.
.IP "--timeout \fItime\fP"
Allows you to set a client socket timeout; if no data is recieved from the client for <time> seconds, the connection will be closed
.IP "--server-timeout \fItime\fP"
Allows you to set a server socket timeout; if no data is recieved from the remote host for <time> seconds, the connection will be closed
.IP "-h, --help"
Show help message
.IP "-v, --version"
Show version information
.SH EXAMPLE
.PP
.B prtunnel -H proxy 6667 irc.freenode.net 6667
.PP
After starting prtunnel like this, you could then point an IRC client to 127.0.0.1, and prtunnel will attempt to connect you to irc.freenode.net via the HTTP proxy server on a system named "proxy".
.SH WEBSITE
.PP
The latest version of prtunnel can be found at http://joshbeam.com/software/prtunnel.php
.SH AUTHOR
.PP
Josh Beam <josh@joshbeam.com>
.SH NO WARRANTY
.PP
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.