summaryrefslogtreecommitdiff
path: root/www/transproxy
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-03-28 08:20:32 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-03-28 08:20:32 +0000
commit930db90bb494a9fdfbd77f94ef6bd68c768a1fa5 (patch)
tree84e1a476321885467a3f628888787eaa4b7f8c7e /www/transproxy
parentSymbolic link should be to /dev/scgx instead. (diff)
Import a -current only transparent proxy kit, based on the Linux transproxy
v0.3 tools. It could probably work with 2.2.x if the ipfilter package was built and installed.
Notes
Notes: svn path=/head/; revision=10338
Diffstat (limited to 'www/transproxy')
-rw-r--r--www/transproxy/Makefile26
-rw-r--r--www/transproxy/distinfo1
-rw-r--r--www/transproxy/files/patch-aa25
-rw-r--r--www/transproxy/pkg-comment1
-rw-r--r--www/transproxy/pkg-descr20
-rw-r--r--www/transproxy/pkg-plist1
6 files changed, 74 insertions, 0 deletions
diff --git a/www/transproxy/Makefile b/www/transproxy/Makefile
new file mode 100644
index 000000000000..9acbdfece545
--- /dev/null
+++ b/www/transproxy/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: transproxy
+# Version required: 0.3
+# Date created: Fri Mar 27 21:24:13 WST 1998
+# Whom: Peter Wemm <peter@netplex.com.au>
+#
+# $FreeBSD$
+#
+
+DISTNAME= transproxy-0.3
+CATEGORIES= www net
+MASTER_SITES= ftp://ftp.nlc.net.au/pub/linux/www/
+DISTFILES= transproxy-0.3.tgz
+
+MAINTAINER= peter@FreeBSD.ORG
+
+ALL_TARGET= tproxy
+
+OSVERSION!= sysctl -n kern.osreldate
+.if ${OSVERSION} < 300000
+BROKEN= "transproxy requires ipfilter, available in 3.0 or later"
+.endif
+
+do-install:
+ cd ${WRKSRC}; ${INSTALL_PROGRAM} ${WRKSRC}/tproxy ${PREFIX}/sbin
+
+.include <bsd.port.mk>
diff --git a/www/transproxy/distinfo b/www/transproxy/distinfo
new file mode 100644
index 000000000000..7b543eec6049
--- /dev/null
+++ b/www/transproxy/distinfo
@@ -0,0 +1 @@
+MD5 (transproxy-0.3.tgz) = 12e38e77223f5c697fc2a1a5dc0cac36
diff --git a/www/transproxy/files/patch-aa b/www/transproxy/files/patch-aa
new file mode 100644
index 000000000000..7756ab3bb1ad
--- /dev/null
+++ b/www/transproxy/files/patch-aa
@@ -0,0 +1,25 @@
+--- Makefile.dist Mon Feb 17 22:41:07 1997
++++ Makefile Fri Mar 27 21:57:17 1998
+@@ -11,15 +11,15 @@
+ # PAY_THE_PENALTY Slow down if they don't use proxy directly.
+ #
+
+-OPTIONS=-DDNS_LOOKUPS #-DUSELESS_DNS_LOOKUPS
++CFLAGS+=-DIPFILTER -DDNS_LOOKUPS #-DUSELESS_DNS_LOOKUPS
+
+-CC=gcc
+-CFLAGS=-O2 -m486 -Wall $(OPTIONS)
+-LDFLAGS=-s
+-LIBS= #-lresolv
++#CC=gcc
++#CFLAGS=-O2 -m486 -Wall $(OPTIONS)
++#LDFLAGS=-s
++#LIBS= #-lresolv
+
+-RM=rm -f
+-INSTALL=install
++#RM=rm -f
++#INSTALL=install
+
+ TARGETNAME=in.tproxyd
+
diff --git a/www/transproxy/pkg-comment b/www/transproxy/pkg-comment
new file mode 100644
index 000000000000..c9de313ecf2e
--- /dev/null
+++ b/www/transproxy/pkg-comment
@@ -0,0 +1 @@
+transparent www proxy driver for IPFILTER (NOT ipfw!!)
diff --git a/www/transproxy/pkg-descr b/www/transproxy/pkg-descr
new file mode 100644
index 000000000000..3831ae967ae7
--- /dev/null
+++ b/www/transproxy/pkg-descr
@@ -0,0 +1,20 @@
+transproxy - transparently proxy HTTP and other requests.
+
+This program is used with Darren Reed's IPFILTER package and used
+to intercept things like http requests and divert them to a www proxy
+server (eg: squid), without requiring user intervention or configuration.
+
+It accepts connections on the redirected port, connects to the real proxy
+server and transports data between the two sockets.
+
+Unlike some other transparent proxy solutions, this does not require the
+proxy run on the machine itself.
+
+Use something like:
+/usr/local/sbin/tproxy -b 127.0.0.1 -s 8081 [squidip] [squidport]
+
+(bind to localhost for safety), and the following ipnat rules:
+
+rdr ppp0 0.0.0.0/0 port 80 -> 127.0.0.1 port 8081
+rdr ppp1 0.0.0.0/0 port 80 -> 127.0.0.1 port 8081
+[..etc..]
diff --git a/www/transproxy/pkg-plist b/www/transproxy/pkg-plist
new file mode 100644
index 000000000000..c1f8490791f9
--- /dev/null
+++ b/www/transproxy/pkg-plist
@@ -0,0 +1 @@
+sbin/tproxy