head	1.3;
access;
symbols
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2;
locks; strict;
comment	@# @;


1.3
date	2009.08.09.13.20.47;	author erwin;	state dead;
branches;
next	1.2;

1.2
date	2006.07.22.19.17.00;	author miwi;	state Exp;
branches;
next	1.1;

1.1
date	2006.07.22.09.56.26;	author miwi;	state Exp;
branches;
next	;


desc
@@


1.3
log
@security/dns-proxy-tor
security/trans-proxy-tor: trans-proxy-tor is rendered obsolete by Tor\'s TransPort option  (currently only available in tor-devel)

Approved by:	maintainer
@
text
@--- trans-proxy-tor.orig	Wed Jun 21 03:17:50 2006
+++ trans-proxy-tor	Thu Jun 22 14:53:59 2006
@@@@ -121,9 +121,21 @@@@
 
   BEGIN {
     if ($^O =~ /^(?:open|net|free)bsd\z/) {
-      require 'sys/ioctl.ph';
-      require 'netinet/in.ph';
-      require 'net/pfvar.ph';
+
+# These perl headers can be created on FreeBSD as well,
+# but it leads to headaches if the user compiled world
+# and kernel without IPv6 support or has incomplete headers
+# installed.
+#
+# As the port maintainer was too lazy anyway, the values
+# for PF_OUT and IPPROTO_TCP are now hard coded instead.
+# The information how to do that came from tun,
+# the creator of trans-proxy-tor.
+#
+#      require 'sys/ioctl.ph';
+#      require 'netinet/in.ph';
+#      require 'net/pfvar.ph';
+
       *_get_original_destination = \&_get_original_destination_pf;
       if ($^O eq 'openbsd') {
         sysopen $Pf, '/dev/pf', O_RDONLY
@@@@ -159,9 +171,9 @@@@
 
     my %pnl = map { $_ => 0 } @@pfioc_natlook;
 
-    $pnl{direction} = PF_OUT();
+    $pnl{direction} = 2; #PF_OUT();
     $pnl{af}        = AF_INET;
-    $pnl{proto}     = IPPROTO_TCP();
+    $pnl{proto}     = 6; #IPPROTO_TCP();
 
     @@pnl{qw/sport saddr/} = sockaddr_in $self->{client}{sockaddr};
     @@pnl{qw/dport daddr/} = sockaddr_in getsockname $self->{client}{handle};
@


1.2
log
@- Update to 0.1.0

PR:		ports/100717
Submitted by:	Fabian Keil <fk@@fabiankeil.de>
Approved by:	krion (mentor)
@
text
@@


1.1
log
@Add trans-proxy-tor,  transparent proxy used to redirect TCP
connections into Tor.

trans-proxy-tor is a transparent proxy
that uses PF to redirect TCP connections
through Tor (http://tor.eff.org/).

Programs that aren't aware of Tor
will use it without their knowledge,
and their traffic no longer leaves the
system unencrypted.

PR:		ports/99034
Submitted by:	Fabian Keil <fk at fabiankeil.de>
@
text
@d1 3
a3 3
--- trans-proxy-tor.orig	Sun Jun 11 04:33:35 2006
+++ trans-proxy-tor	Sun Jun 11 16:48:35 2006
@@@@ -119,9 +119,20 @@@@
d6 1
a6 1
     if ($^O =~ /^(?:open|free)bsd\z/) {
d24 1
d28 3
a30 3
@@@@ -159,9 +170,9 @@@@
     my %pnl;
     $pnl{$_} = 0 for @@pfioc_natlook;
@

