Import ctunnel-0.2
ctunnel is a software for proxying and forwarding TCP connections via a cryptographic tunnel. ctunnel can be used to secure any existing TCP based protocol, such as HTTP, VNC, Telnet, FTP, RSH, MySQL, etc. You can also chain/bounce connections to any number of intermediary hosts. from Pierre-Emmanuel Andre <pea@raveland.org>, thanks!
This commit is contained in:
parent
80f07f7e16
commit
0f43a16b03
28
security/ctunnel/Makefile
Normal file
28
security/ctunnel/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/10/01 16:12:55 ajacoutot Exp $
|
||||
|
||||
COMMENT= provide cryptographic tunnel
|
||||
|
||||
DISTNAME= ctunnel-0.2
|
||||
CATEGORIES= security
|
||||
|
||||
HOMEPAGE= http://nardcore.org/ctunnel/
|
||||
|
||||
MAINTAINER= Pierre-Emmanuel Andre <pea@raveland.org>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
WANTLIB= c crypto
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ctunnel
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ctunnel/
|
||||
|
||||
.include <bsd.port.mk>
|
5
security/ctunnel/distinfo
Normal file
5
security/ctunnel/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (ctunnel-0.2.tar.gz) = QVJphRpUKvFfhNbQWeJY/A==
|
||||
RMD160 (ctunnel-0.2.tar.gz) = u+87AZidlH4ohBetDjH5E1F4SY4=
|
||||
SHA1 (ctunnel-0.2.tar.gz) = t5oSEHGmK6BMSj55Vl3PuN7L66Q=
|
||||
SHA256 (ctunnel-0.2.tar.gz) = ziZ5Jnm8ShxP7LOXr3OX0em0pmazkr/V4iaf5b4XohA=
|
||||
SIZE (ctunnel-0.2.tar.gz) = 12476
|
19
security/ctunnel/patches/patch-Makefile
Normal file
19
security/ctunnel/patches/patch-Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2008/10/01 16:12:55 ajacoutot Exp $
|
||||
--- Makefile.orig Sat Sep 20 22:07:47 2008
|
||||
+++ Makefile Wed Oct 1 13:44:08 2008
|
||||
@@ -1,5 +1,5 @@
|
||||
-CC=gcc
|
||||
-CFLAGS=-Wall -g -O2
|
||||
+CC ?= gcc
|
||||
+CFLAGS ?= -Wall -g -O2
|
||||
LDFLAGS=-lcrypto
|
||||
|
||||
all: ctunnel
|
||||
@@ -9,6 +9,6 @@ ctunnel.o:
|
||||
ctunnel: ctunnel.o
|
||||
$(CC) $(CFLAGS) -o ctunnel ctunnel.o $(LDFLAGS)
|
||||
install:
|
||||
- install ctunnel /usr/local/bin
|
||||
+ install ctunnel $(PREFIX)/bin
|
||||
clean:
|
||||
rm -f ctunnel *.o
|
21
security/ctunnel/patches/patch-README
Normal file
21
security/ctunnel/patches/patch-README
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-README,v 1.1.1.1 2008/10/01 16:12:55 ajacoutot Exp $
|
||||
--- README.orig Wed Oct 1 13:39:34 2008
|
||||
+++ README Wed Oct 1 13:39:55 2008
|
||||
@@ -49,7 +49,7 @@ Examples
|
||||
|
||||
On the server machine (10.0.0.4 running the vnc server) we'll also run ctunnel.
|
||||
|
||||
- ./ctunnel -H 127.0.0.1 -s -l 2222 -f 2221 -C aes-256-cfb
|
||||
+ ./ctunnel -H 127.0.0.1 -s -l 2222 -f 5901 -C aes-256-cfb
|
||||
|
||||
On the client machine (10.0.0.2) we run vncviewr throught the tunnel.
|
||||
|
||||
@@ -70,7 +70,7 @@ Examples
|
||||
|
||||
Server/10.0.0.4
|
||||
|
||||
- ./ctunnel -s -H 127.0.0.1 -l 2222 -f 2223 -C aes-256-cfb
|
||||
+ ./ctunnel -s -H 127.0.0.1 -l 2222 -f 3306 -C aes-256-cfb
|
||||
|
||||
Client
|
||||
|
21
security/ctunnel/patches/patch-ctunnel_c
Normal file
21
security/ctunnel/patches/patch-ctunnel_c
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-ctunnel_c,v 1.1.1.1 2008/10/01 16:12:55 ajacoutot Exp $
|
||||
--- ctunnel.c.orig Sat Sep 20 22:12:59 2008
|
||||
+++ ctunnel.c Wed Oct 1 14:42:37 2008
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
-#include <netinet/ip.h>
|
||||
#include <netinet/in_systm.h>
|
||||
+#include <netinet/ip.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -459,6 +459,7 @@ int main(int argc, char *argv[])
|
||||
EVP_cleanup();
|
||||
_exit(0);
|
||||
} else {
|
||||
+ signal(SIGCHLD, SIG_IGN);
|
||||
close(clifd);
|
||||
}
|
||||
}
|
5
security/ctunnel/pkg/DESCR
Normal file
5
security/ctunnel/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
ctunnel is a software for proxying and forwarding TCP connections via
|
||||
a cryptographic tunnel.
|
||||
ctunnel can be used to secure any existing TCP based protocol, such
|
||||
as HTTP, VNC, Telnet, FTP, RSH, MySQL, etc.
|
||||
You can also chain/bounce connections to any number of intermediary hosts.
|
4
security/ctunnel/pkg/PLIST
Normal file
4
security/ctunnel/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/01 16:12:55 ajacoutot Exp $
|
||||
@bin bin/ctunnel
|
||||
share/doc/ctunnel/
|
||||
share/doc/ctunnel/README
|
Loading…
Reference in New Issue
Block a user