debian/0000755000000000000000000000000012166010143007160 5ustar debian/dirs0000644000000000000000000000001012166010076010040 0ustar usr/bin debian/README.Debian0000644000000000000000000000065712166010076011236 0ustar Getting onioncat running on Debian ================================== 1. Create a Tor hidden service listening on port 8060 and pointing to 127.0.0.1:8060. 2. In /etc/default/onioncat, pass the hidden service hostname via DAEMON_OPTS. 3. In /etc/default/onioncat, uncomment ENABLED=yes. 4. Start the service with the "service onioncat start" command. -- intrigeri , Mon, 5 Sep 2011 16:52:44 +0200 debian/compat0000644000000000000000000000000212166010076010363 0ustar 7 debian/gbp.conf0000644000000000000000000000021112166010076010576 0ustar [DEFAULT] upstream-branch = upstream debian-branch = debian upstream-tag = onioncat/%(version)s debian-tag = onioncat_debian/%(version)s debian/changelog0000644000000000000000000000752212166010076011045 0ustar onioncat (0.2.2+svn559-1) unstable; urgency=low * New upstream SVN snapshot, including: - Unclean initialization in strsockaddr() and add_lister() fixed. - Add support for unidirectional connections (important security improvement) and make them the default. - Fixed double free() segfault in case of multiple option -f. * Bump Standards-Version to 3.9.4, no change required. * Use canonical Vcs-Git URL. * New patch: 0001-Fix-typo-in-debug-message.patch. -- intrigeri Sat, 06 Jul 2013 14:25:34 +0200 onioncat (0.2.2+svn553-3) unstable; urgency=low * Clarify setup instructions in README.Debian. * Use my @debian.org email address. * Update copyright years. * Use dh-autoreconf. * Set hardening flags with dpkg_buildflags. * Update and fix debian/copyright with cme. * Point Vcs-* control fields to collab-maint. * Bump Standards-Version to 3.9.3, no change required. * Upload to Debian (Closes: #626380) -- intrigeri Sat, 23 Jun 2012 20:00:19 +0200 onioncat (0.2.2+svn553-2) unstable; urgency=low * Add Vcs-Git control field. * Make it clear in debian/copyright what kind of BSD license is used. * Make initscript POSIX and slightly neater. * Don't delete the onioncat user upon purge. * Remove wrong and useless comment in /etc/default/onioncat. * README.Debian: replace imprecise and likely obsolete information with basic steps to get the service up and running. -- intrigeri Mon, 05 Sep 2011 12:52:46 +0200 onioncat (0.2.2+svn553-1) unstable; urgency=low * Imported Upstream version 0.2.2+svn553: - fix spelling typos and escape minus signs in manpage * Build-depend on debhelper version that has the features we use. * Add licensing information about i2p/onioncat-privatehosts.pl. * Fix syntax of the Files fields in debian/copyright. * Drop all patches: merged upstream. * Add watch file. * New snapshot. -- intrigeri Wed, 24 Aug 2011 18:18:37 +0200 onioncat (0.2.2+svn552-1~7.gbp9cb656) UNRELEASED; urgency=low ** SNAPSHOT build @9cb656a690666b6466192499d37532b91f50f602 ** * New patch: 0001-Fix-spelling-typos-in-manpage * New patch: 0002-Don-t-use-hyphen-as-minus-sign-in-manpage * Set myself as the maintainer. * Bump standards version, no change required. * Improve short and long descriptions. * Mostly rewrite the initscript and /etc/default/onioncat. * debian/ directory cleanup. * Create, and run as, the onioncat dedicated user. * Use a dedicated sub-directory in /var/run/. * Disable daemon start by default. * Disable local controller interface. * Compile in the possibility to get debug output at runtime. -- intrigeri Thu, 18 Aug 2011 21:20:48 +0200 onioncat (0.2.2+svn552-1~1) UNRELEASED; urgency=low * New upstream release. * Convert to dh7 minimal rules. * Convert to quilt (3.0) source format. * Update copyright and licensing information. * Convert debian/copyright to DEP-5. * Init script: depend on Tor to be running, depend on $remote_fs * Build with hardening wrapper. * Bump standards version to 3.9.1. -- intrigeri Sun, 10 Jul 2011 01:11:11 +0200 onioncat (0.2.0.r514) jaunty; urgency=low * Upstream svn build debian unstable -- Bernhard Fischer Thu, 09 Sep 2009 14:08:00 +0100 onioncat (0.12.493) jaunty; urgency=low * Upstream svn build debian unstable -- Ferdinand Haselbacher Thu, 19 Mar 2009 13:27:29 +0100 onioncat (0.436) hardy; urgency=low * Upstream svn build -- Ferdinand Haselbacher Thu, 19 Feb 2009 13:27:29 +0100 onioncat (0.435) hardy; urgency=low * Initial Debian Package Release. -- Ferdinand Haselbacher Thu, 19 Feb 2009 13:27:29 +0100 debian/rules0000755000000000000000000000035012166010076010243 0ustar #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk %: dh $@ --with autoreconf override_dh_auto_configure: dh_auto_configure -- --enable-debug debian/onioncat.default0000644000000000000000000000064712166010076012354 0ustar # Defaults for onioncat initscript # sourced by /etc/init.d/onioncat # This is a POSIX shell fragment # Uncomment to enable the initscript and start onioncat on system startup #ENABLED=yes # User the daemon run as DAEMON_USER="onioncat" # Options passed to onioncat on startup. # At least the hidden service hostname must generally be provided. # Example: # DAEMON_OPTS="-d 0 gfwljfhnapq91sz4.onion" DAEMON_OPTS="-d 0" debian/onioncat.postinst0000755000000000000000000000053112166010076012606 0ustar #!/bin/sh set -e case $1 in configure) if ! getent passwd onioncat >/dev/null ; then echo "adding onioncat user..." adduser \ --quiet --system --group \ --home '/var/lib/onioncat' \ --shell '/bin/sh' \ --gecos 'OnionCat user,,,' \ onioncat fi esac #DEBHELPER# exit 0 debian/patches/0000755000000000000000000000000012166010076010614 5ustar debian/patches/series0000644000000000000000000000004512166010076012030 0ustar 0001-Fix-typo-in-debug-message.patch debian/patches/0001-Fix-typo-in-debug-message.patch0000644000000000000000000000126412166010076017047 0ustar From: intrigeri Date: Sat, 6 Jul 2013 12:33:29 +0000 Subject: Fix typo in debug message. Forwarded: yes --- src/ocatlibe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocatlibe.c b/src/ocatlibe.c index 60a7d91..fade3c9 100644 --- a/src/ocatlibe.c +++ b/src/ocatlibe.c @@ -134,7 +134,7 @@ int strsockaddr(const char *src, struct sockaddr *addr) return AF_INET; default: - log_debug("adress family 0x%04x not supported", ((struct sockaddr_in*) addr)->sin_family); + log_debug("address family 0x%04x not supported", ((struct sockaddr_in*) addr)->sin_family); return -1; } } debian/onioncat.links0000644000000000000000000000007412166010076012042 0ustar /usr/share/man/man1/ocat.1.gz /usr/share/man/man1/gcat.1.gz debian/watch0000644000000000000000000000026212166010076010216 0ustar version=3 opts="uversionmangle=s/\.r(\d+)/+svn$1/" \ http://www.cypherpunk.at/ocat/download/Source/current/ ^onioncat-(\d[\d.-]+(?:\.r\d+)?)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$ debian/source/0000755000000000000000000000000012166010076010465 5ustar debian/source/format0000644000000000000000000000001412166010076011673 0ustar 3.0 (quilt) debian/onioncat.init0000644000000000000000000000577212166010076011677 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: onioncat # Required-Start: $network $local_fs $remote_fs tor # Required-Stop: $remote_fs tor # Should-Start: $named # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: IP-Transparent Tor hidden service connector # Description: OnionCat creates a transparent IP layer on top of Tor hidden # services. ### END INIT INFO # Do NOT "set -e" PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/ocat NAME=ocat NAMEL=onioncat DESC="OnionCat Tor hidden service connector" SCRIPTNAME=/etc/init.d/$NAMEL PIDDIR=/var/run/$NAME PIDFILE=$PIDDIR/pid test -x $DAEMON || exit 0 . /lib/lsb/init-functions # Default options - overriden by /etc/default/onioncat DAEMON_OPTS="" DIETIME=10 STARTTIME=1 DAEMON_USER="onioncat" ENABLED=no if [ -f /etc/default/$NAMEL ] ; then . /etc/default/$NAMEL fi is_true() { [ "$1" = "true" ] || [ "$1" = "yes" ] || [ "$1" = "0" ] } check_piddir() { if test ! -d $PIDDIR; then mkdir -m 02700 "$PIDDIR" chown onioncat:onioncat "$PIDDIR" if ! [ -x $IDDIR ]; then echo "Cannot access '$PIDDIR' directory, are you root?" >&2 exit 1 fi fi } do_start() { if is_true "$ENABLED"; then check_piddir start-stop-daemon --start --quiet --pidfile $PIDFILE \ --exec $DAEMON -- -u $DAEMON_USER -P $PIDFILE -C $DAEMON_OPTS \ || return 2 else log_warning_msg " $NAMEL disabled, edit /etc/default/$NAMEL to enable." exit 0 fi } do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=INT/30/KILL/5 \ --user $DAEMON_USER --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 return "$RETVAL" } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; status) if is_true "$ENABLED" ; then status_of_proc -p "${PIDFILE}" "${DAEMON}" "${NAME}" else echo "" echo "$NAMEL not configured to start" fi ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2 exit 3 ;; esac exit 0 debian/copyright0000644000000000000000000000511312166010076011120 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Source: http://www.cypherpunk.at/onioncat/ Files: * Copyright: © 2008-2010 Bernhard R. Fischer License: GPL-3 Files: i2p/onioncat-privatehosts.pl Copyright: © 2008 zzz License: PD This file has been placed in the public domain. Files: src/cygwin/openbsd_netinet_icmp6.h src/cygwin/openbsd_netinet_ip6.h Copyright: © 2008-2009 Bernhard R. Fischer © 1995-1998 WIDE Project © 1982-1993 The Regents of the University of California License: BSD-3-clause Files: src/cygwin/openbsd_netinet_if_ether.h Copyright: © 2008-2009 Bernhard R. Fischer © 1982-1993 The Regents of the University of California License: BSD-3-clause Files: src/strlcat.c src/srlcpy.c Copyright: © 1998 Todd C. Miller License: BSD-3-clause Files: debian/* Copyright: © 2009 Ferdinand Haselbacher © 2011-2012 intrigeri License: GPL-3 License: BSD-3-clause All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: GPL-3 The full text of the GPL is distributed as COPYING in onioncat source, and is distributed in /usr/share/common-licenses/GPL-3 on Debian systems. debian/docs0000644000000000000000000000005412166010076010037 0ustar glob_id.txt NEWS README TODO hosts.onioncat debian/control0000644000000000000000000000223712166010076010574 0ustar Source: onioncat Section: comm Priority: optional Maintainer: intrigeri Build-Depends: autotools-dev, debhelper (>= 7.0.50~), dh-autoreconf, dpkg-dev (>= 1.16.1.1~) Standards-Version: 3.9.4 Homepage: http://www.cypherpunk.at/onioncat Vcs-Git: git://anonscm.debian.org/collab-maint/onioncat.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/onioncat.git Package: onioncat Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, tor Description: IP-Transparent Tor hidden service connector OnionCat creates a transparent IP layer on top of Tor hidden services. It transparently transmits any kind of IP-based data 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 a stand-alone application which runs in userland and is a connector between Tor and the local OS. Any protocol based on IP, such as UDP or TCP, can be transmitted. . OnionCat supports IPv6; native IPv4 forwarding, though still available, is deprecated: the recommended solution for IPv4 forwarding is to build a IPv4-through-IPv6 tunnel through OnionCat.