1CONNECT-PROXY(1) General Commands Manual CONNECT-PROXY(1)
2
3
4
6 connect-proxy — connect over SOCKS4/5 proxy
7
9 connect-proxy [-dnhst45] [-R resolve ] [-p local-port ] [-w secs ]
10 [-H [user@]proxy-server[:port]] ] [-S [user@]socks-server[:port]] ]
11 [-T proxy-server[:port] ] [-c telnet-proxy-command ] [host] [port]
12
14 connect-proxy open connection over SOCKS4/5 proxies
15
16 Please, note that any HTTP-Proxy tunnel won't work with content-inspec‐
17 tion firewall (unless using SSL).
18
20 -H specifies a hostname and port number of the http proxy server
21 to relay. If port is omitted, 80 is used. You can specify
22 this value in the environment variable HTTP_PROXY and pass
23 the -h option to use it.
24
25 -S specifies the hostname and port number of the SOCKS server to
26 relay. Like -H, port number can be omitted and the default
27 is 1080. You can also specify this value pair in the environ‐
28 ment variable SOCKS5_SERVER and give the -s option to use it.
29
30 -4 specifies SOCKS relaying and indicates protocol version to
31 use. It is valid only when used with '-s' or '-S'. Default
32 is '-5' (protocol version 5)
33
34 -R method to resolve the hostname. Three keywords ("local",
35 "remote", "both") or dot-notation IP address are acceptable.
36 The keyword "both" means, "Try local first, then remote". If
37 a dot-notation IP address is specified, use this host as
38 nameserver. The default is "remote" for SOCKS5 or "local" for
39 others. On SOCKS4 protocol, remote resolving method ("remote"
40 and "both") requires protocol 4a supported server.
41
42 -p will forward a local TCP port instead of using the standard
43 input and output.
44
45 -P same to '-p' except keep remote session. The program repeats
46 waiting the port with holding remote session without discon‐
47 necting. To connect the remote session, send EOF to stdin or
48 kill the program.
49
50 -w timeout in seconds for making connection with TARGET host.
51
52 -d used for debug. If you fail to connect, use this and check
53 request to and response from server.
54
56 To use proxy, this example is for SOCKS5 connection to connect to
57
58 connect-proxy -S firewall host 25
59
60 SOCKS5_SERVER=firewall; export SOCKS5_SERVER; connect-proxy -s host 25
61
62 For a HTTP-PROXY connection:
63
64 connect-proxy -H proxy-server:8080 host 25
65
66 HTTP_PROXY=proxy-server:8080; export HTTP_PROXY; connect-proxy -h host
67 25
68
69 To forward a local port, for example to use ssh:
70
71 connect-proxy -H proxy-server:8080 host 22 ssh -l user -p 5550 local‐
72 host
73
74 To use it along ssh transparently:
75 # file://~/.ssh/config Host * ProxyCommand connect-proxy -H proxy-
76 server:8080 %h %p
77
79 SOCKS5_USER, LOGNAME, USER HTTP_PROXY_USER, LOGNAME, USER
80
82 ssh (1).
83
85 http://www.taiyo.co.jp/~gotoh/ssh/connect.html
86
88 This manual page was written by Philippe COVAL
89 Philippe.COVAL@laposte.net for the Debian system (but may be used by
90 others). Permission is granted to copy, distribute and/or modify this
91 document under the terms of the GNU General Public License, Version 2
92 any later version published by the Free Software Foundation.
93
94
95 On Debian systems, the complete text of the GNU General Public License
96 can be found in /usr/share/common-licenses/GPL.
97
98
99
100
101 CONNECT-PROXY(1)