auto-import connect-proxy-1.95-4.fc6 on branch devel from
connect-proxy-1.95-4.fc6.src.rpm
This commit is contained in:
parent
3a3d429e76
commit
1691f1122f
4 changed files with 4229 additions and 0 deletions
2888
connect-1.95.c
Normal file
2888
connect-1.95.c
Normal file
File diff suppressed because it is too large
Load diff
126
connect-proxy-make-man.patch
Normal file
126
connect-proxy-make-man.patch
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
diff -urP connect-proxy-1.93.orig/connect-proxy.1 connect-proxy-1.93/connect-proxy.1
|
||||
--- connect-proxy-1.93.orig/connect-proxy.1 1969-12-31 16:00:00.000000000 -0800
|
||||
+++ connect-proxy-1.93/connect-proxy.1 2005-12-07 14:40:45.000000000 -0800
|
||||
@@ -0,0 +1,95 @@
|
||||
+.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 \-H proxy-server:8080 host 22 \fR
|
||||
+\fBssh \-l user \-p 5550 localhost\fR
|
||||
+.PP
|
||||
+To use it along ssh transparently:
|
||||
+\fB # file://~/.ssh/config
|
||||
+Host *
|
||||
+ProxyCommand connect-proxy \-H proxy-server:8080 %h %p\fR
|
||||
+.SH "ENVIRONMENT"
|
||||
+.PP
|
||||
+SOCKS5_USER, LOGNAME, USER
|
||||
+HTTP_PROXY_USER, LOGNAME, USER
|
||||
+.SH "SEE ALSO"
|
||||
+.PP
|
||||
+ssh (1).
|
||||
+.SH "WWW"
|
||||
+.PP
|
||||
+http://www.taiyo.co.jp/~gotoh/ssh/connect.html
|
||||
+.SH "AUTHOR"
|
||||
+.PP
|
||||
+This manual page was written by Philippe COVAL Philippe.COVAL@laposte.net 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, Wed 27 Apr 2005, 21:50
|
||||
diff -urP connect-proxy-1.93.orig/Makefile connect-proxy-1.93/Makefile
|
||||
--- connect-proxy-1.93.orig/Makefile 1969-12-31 16:00:00.000000000 -0800
|
||||
+++ connect-proxy-1.93/Makefile 2005-12-07 14:49:13.000000000 -0800
|
||||
@@ -0,0 +1,23 @@
|
||||
+#gmake
|
||||
+PACKAGE ?= connect-proxy
|
||||
+URL ?= http://www.taiyo.co.jp/~gotoh/ssh/connect.c
|
||||
+INSTALL_DIR ?= ${DESTDIR}/usr
|
||||
+
|
||||
+OBJS ?= connect.o
|
||||
+
|
||||
+default: ${PACKAGE}
|
||||
+
|
||||
+install: ${PACKAGE}
|
||||
+ -mkdir -p ${INSTALL_DIR}/bin/
|
||||
+ install ${PACKAGE} ${INSTALL_DIR}/bin/
|
||||
+
|
||||
+
|
||||
+${PACKAGE}: ${OBJS}
|
||||
+ ${CC} -o $@ $^
|
||||
+clean:
|
||||
+ ${RM} ${PACKAGE} ${PACKAGE}.o *~ ${OBJS}
|
||||
+
|
||||
+LICENCE: /usr/share/apps/LICENSES/GPL_V2
|
||||
+ ln -fs $^ $@
|
||||
+
|
||||
+# EOF
|
||||
73
connect-proxy.spec
Normal file
73
connect-proxy.spec
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
Name: connect-proxy
|
||||
Version: 1.95
|
||||
Release: 4%{?dist}
|
||||
Summary: SSH Proxy command helper
|
||||
|
||||
Group: Applications/System
|
||||
License: GPL
|
||||
URL: http://www.taiyo.co.jp/~gotoh/ssh/connect.html
|
||||
Source0: connect-%{version}.c
|
||||
# Real source listed below, it was renamed for sanity's sake
|
||||
#Source0: http://www.taiyo.co.jp/~gotoh/ssh/connect.c
|
||||
Source1: http://www.taiyo.co.jp/~gotoh/ssh/connect.html
|
||||
Patch0: connect-proxy-make-man.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Requires: openssh
|
||||
|
||||
%description
|
||||
connect-proxy is the simple relaying command to make network connection via
|
||||
SOCKS and https proxy. It is mainly intended to be used as proxy command
|
||||
of OpenSSH. You can make SSH session beyond the firewall with this command.
|
||||
|
||||
Features of connect-proxy are:
|
||||
|
||||
* Supports SOCKS (version 4/4a/5) and https CONNECT method.
|
||||
* Supports NO-AUTH and USERPASS authentication of SOCKS
|
||||
* Partially supports telnet proxy (experimental).
|
||||
* You can input password from tty, ssh-askpass or environment variable.
|
||||
* Simple and general program independent from OpenSSH.
|
||||
* You can also relay local socket stream instead of standard I/O.
|
||||
|
||||
%prep
|
||||
#setup -q -T -c -n %{name}-%{version}
|
||||
%setup -q -T -c
|
||||
cp %{SOURCE0} connect.c
|
||||
cp %{SOURCE1} .
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
make CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
cp -p %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc connect.html
|
||||
%{_mandir}/man1/*
|
||||
%{_bindir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Wed Jul 05 2006 Jarod Wilson <jwilson@redhat.com> 1.95-4
|
||||
- Minor spec cleanups
|
||||
- Add copy of html doc page
|
||||
|
||||
* Wed Jul 05 2006 Jarod Wilson <jwilson@redhat.com> 1.95-3
|
||||
- Rename source file with version for sanity's sake
|
||||
|
||||
* Wed Jul 05 2006 Jarod Wilson <jwilson@redhat.com> 1.95-2
|
||||
- Fix BuildRoot and enable CFLAGS
|
||||
|
||||
* Wed Jul 05 2006 Jarod Wilson <jwilson@redhat.com> 1.95-1
|
||||
- Initial build for Fedora Extras
|
||||
|
||||
* Wed Dec 12 2005 Jarod Wilson <jarod@wilsonet.com> 1.93-1
|
||||
- Initial build
|
||||
1142
connect.html
Normal file
1142
connect.html
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue