From 98915213c0383601e6bf90120143448f4c8d2737 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 10 May 2010 02:24:54 +0000 Subject: [PATCH] OnionCat creates a transparent IP layer on top of Tor's hidden services. It transmits any kind of IP-based data transparently through the Tor network on a location hidden basis. You can think of it as a point-to-multipoint VPN between hidden services. OnionCat is based on anonymizing transport layers like Tor. WWW: http://www.cypherpunk.at/onioncat/ PR: ports/146433 Submitted by: "ports@c0decafe.net" --- net/Makefile | 1 + net/onioncat/Makefile | 30 ++++++++++++++++++++++++++++++ net/onioncat/distinfo | 3 +++ net/onioncat/files/onioncat.in | 25 +++++++++++++++++++++++++ net/onioncat/pkg-descr | 9 +++++++++ net/onioncat/pkg-message | 8 ++++++++ 6 files changed, 76 insertions(+) create mode 100644 net/onioncat/Makefile create mode 100644 net/onioncat/distinfo create mode 100644 net/onioncat/files/onioncat.in create mode 100644 net/onioncat/pkg-descr create mode 100644 net/onioncat/pkg-message diff --git a/net/Makefile b/net/Makefile index 4ba38d57d35c..881423d281d1 100644 --- a/net/Makefile +++ b/net/Makefile @@ -444,6 +444,7 @@ SUBDIR += omnitty SUBDIR += onenetd SUBDIR += onion-fec + SUBDIR += onioncat SUBDIR += online-desktop SUBDIR += opal SUBDIR += opal3 diff --git a/net/onioncat/Makefile b/net/onioncat/Makefile new file mode 100644 index 000000000000..e3e3c688f738 --- /dev/null +++ b/net/onioncat/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: onioncat +# Date created: 2010-05-09 +# Whom: +# +# $FreeBSD$ +# + +PORTNAME= onioncat +PORTVERSION= 0.2.1 +CATEGORIES= net security +MASTER_SITES= http://www.cypherpunk.at/ocat/download/Source/stable/ + +MAINTAINER= ports@c0decafe.net +COMMENT= An IP-Transparent Tor Hidden Service Connector + +RUN_DEPENDS= tor:${PORTSDIR}/security/tor + +GNU_CONFIGURE= yes + +USE_RC_SUBR= ${PORTNAME} +MAN1= ocat.1 +PLIST_FILES= bin/ocat + +.include + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/ocat ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/man/ocat.1 ${PREFIX}/man/man1/ocat.1 + +.include diff --git a/net/onioncat/distinfo b/net/onioncat/distinfo new file mode 100644 index 000000000000..939c00bae9e2 --- /dev/null +++ b/net/onioncat/distinfo @@ -0,0 +1,3 @@ +MD5 (onioncat-0.2.1.tar.gz) = 139c9d1f54feab68a3df76975f993b57 +SHA256 (onioncat-0.2.1.tar.gz) = 1a07b62b72ee65d10e70b972e2ade1387e2232bc0652747e03bebe7235c84a8e +SIZE (onioncat-0.2.1.tar.gz) = 179988 diff --git a/net/onioncat/files/onioncat.in b/net/onioncat/files/onioncat.in new file mode 100644 index 000000000000..85e746d24f04 --- /dev/null +++ b/net/onioncat/files/onioncat.in @@ -0,0 +1,25 @@ +#!/bin/sh +# +# PROVIDE: onioncat +# REQUIRE: NETWORKING SERVERS USR tor +# BEFORE: LOGIN +# +# Add the following lines to /etc/rc.conf to enable tor. +# All these options will overide any settings in your local torrc as +# they are command line options. + +. /etc/rc.subr + +name="onioncat" +rcvar=${name}_enable + +load_rc_config ${name} + +: ${onioncat_enable="NO"} +: ${onioncat_options="-C"} +: ${onioncat_hostname="-R"} + +command="%%PREFIX%%/bin/ocat" +command_args="${onioncat_options} ${onioncat_hostname}" + +run_rc_command "$1" diff --git a/net/onioncat/pkg-descr b/net/onioncat/pkg-descr new file mode 100644 index 000000000000..cfe7de1e2e12 --- /dev/null +++ b/net/onioncat/pkg-descr @@ -0,0 +1,9 @@ +OnionCat creates a transparent IP layer on top of Tor's hidden services. +It transmits any kind of IP-based data transparently through the Tor +network on a location hidden basis. + +You can think of it as a point-to-multipoint VPN between hidden services. + +OnionCat is based on anonymizing transport layers like Tor. + +WWW: http://www.cypherpunk.at/onioncat/ diff --git a/net/onioncat/pkg-message b/net/onioncat/pkg-message new file mode 100644 index 000000000000..08747ff81c71 --- /dev/null +++ b/net/onioncat/pkg-message @@ -0,0 +1,8 @@ +If you plan to also receive connections (e.g. because you provide a service or +you use software which opens sockets for incomming connections like Bitorrent) +you MUST the onioncat_hostname in rc.conf and configure the following hidden +service in torrc: + +HiddenServicePort 8060 127.0.0.1:8060 + +Finally, please consider setting up an IPv6 firewall.