File: connect-proxy.1

package info (click to toggle)
connect-proxy 1.105-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 168 kB
  • sloc: ansic: 2,229; makefile: 11
file content (107 lines) | stat: -rw-r--r-- 3,884 bytes parent folder | download
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
.TH "CONNECT-PROXY" "1" 
.SH "NAME" 
connect-proxy \(em connect over SOCKS4/5 proxy 
.SH "SYNOPSIS" 
.PP 
\fBconnect-proxy\fR [\fB-dnhst45\fP]  [\fB-R \fIresolve\fR \fP]  [\fB-p \fIlocal-port\fR \fP]  [\fB-w \fIsecs\fR \fP]  [\fB-H \fI[user@]proxy-server[:port]]\fR \fP]  [\fB-S \fI[user@]socks-server[:port]]\fR \fP]  [\fB-T \fIproxy-server[:port]\fR \fP]  [\fB-c \fItelnet-proxy-command\fR \fP]  [host]  [port]  
.SH "DESCRIPTION" 
.PP 
\fBconnect-proxy\fR open connection over SOCKS4/5 proxies 
.PP 
Please, note that any HTTP-Proxy tunnel won't work with content-inspection firewall (unless using SSL). 
.SH "OPTIONS" 
.IP "\fB-H\fP" 10 
specifies a hostname and port number of the http proxy  
server to relay. If port is omitted, 80 is used. You can specify this 
value in the environment variable HTTP_PROXY and pass the \-h option 
to use it. 
.IP "\fB-S\fP" 10 
specifies the hostname and port number of the SOCKS 
server to relay.  Like \-H, port number can be omitted and the default 
is 1080. You can also specify this value pair in the environment 
variable SOCKS5_SERVER and give the \-s option to use it. 
.IP "\fB-4\fP" 10 
specifies SOCKS relaying and indicates protocol version to use.  
It is valid only when used with '\-s' or '\-S'.  
Default is '\-5' (protocol version 5) 
.IP "\fB-R\fP" 10 
method to resolve the 
hostname. Three keywords ("local", "remote", "both") or dot-notation 
IP address are acceptable.  The keyword "both" means, "Try local 
first, then remote". If a dot-notation IP address is specified, use 
this host as nameserver. The default is "remote" for SOCKS5 or 
"local" for others. On SOCKS4 protocol, remote resolving method 
("remote" and "both") requires protocol 4a supported server. 
.IP "\fB-p\fP" 10 
will forward a local TCP port instead of using the 
standard input and output. 
.IP "\fB-P\fP" 10 
same to '\-p' except keep remote session. The 
program repeats waiting the port with holding remote session without 
disconnecting. To connect the remote session, send EOF to stdin or 
kill the program. 
.IP "\fB-w\fP" 10 
timeout in seconds for making connection with TARGET host. 
.IP "\fB-d\fP" 10 
used for debug. If you fail to connect, use this and check request to and response from server. 
.SH "USAGE" 
.PP 
To use proxy, this example is for SOCKS5 connection to connect to 
"host" at port 25 via SOCKS5 server on "firewall" host. 
 
\fBconnect-proxy \-S firewall host 25\fR  
 
\fBSOCKS5_SERVER=firewall; export SOCKS5_SERVER;  
connect-proxy \-s host 25\fR 
.PP 
For a HTTP-PROXY connection: 
 
\fBconnect-proxy \-H proxy-server:8080  host 25\fR   
 
\fBHTTP_PROXY=proxy-server:8080; export HTTP_PROXY;  
connect-proxy \-h host 25\fR  
.PP 
To forward a local port, for example to use ssh: 
 
\fBconnect-proxy \-p 5550 \-H proxy-server:8080 host 22 ssh \-l user\fR 
.PP 
To use it along ssh transparently: 
 
.PP 
.nf 
# file://~/.ssh/config 
# not using proxy on lan 
Host 192.* 
ProxyCommand connect-proxy %h %p 
# mandatory to access the internet 
Host * 
ProxyCommand connect-proxy \-H proxyserver:8080  %h %p 
.fi 
.PP 
 
Or for all users ( /etc/ssh/ssh_config ) 
.SH "ENVIRONMENT" 
.PP 
SOCKS5_USER, SOCKS5_PASSWORD,  
HTTP_PROXY_USER, HTTP_PROXY_PASSWORD, 
CONNECT_PASSWORD, 
LOGNAME, USER 
.SH "SEE ALSO" 
.PP 
ssh (1). 
.SH "WWW" 
.PP 
http://www.meadowy.org/~gotoh/projects/connect 
.SH "AUTHOR" 
.PP 
This manual page was written by Philippe Coval rzr@gna.org for 
the \fBDebian\fP system (but may be used by others).  Permission is 
granted to copy, distribute and/or modify this document under 
the terms of the GNU General Public License, Version 2 any  
later version published by the Free Software Foundation. 
 
.PP 
On Debian systems, the complete text of the GNU General Public 
License can be found in /usr/share/common-licenses/GPL. 
 
.\" created by instant / docbook-to-man, Tue 01 Nov 2016, 00:18