the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: proxy
Version: 2.2.4
Revision: 1
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Maintainer: Brad Robel-Forrest
HomePage: http://proxy.sourceforge.net/
License: GPL
Description: TCP port redirector and filter
Source-MD5: 8096408a5993c8ec84f86ee475680c73
DocFiles: README LICENSE proxy.filters_example
BuildDepends: fink (>= 0.24.12)
PatchFile: %n.patch
PatchFile-MD5: 7c4a87ae914ed1b6e015f4248295b4e4
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
CompileScript: make
InstallScript: <<
install -d %i/bin
install proxy %i/bin
<<
DescDetail: <<
Proxy is not a caching proxy server, but is more a port redirector
(which can be used for NATing packets behind a linux firewall). You
would set up Proxy to listen on a certain port and forward all traffic
that comes in on that port to some port on a remote machine. The
current version of Proxy only handles TCP, but there are plans to add
support for UDP. We also plan to add a caching engine to proxy at some
point in the future as well. For every client that connects to proxy
on it's listening port, Proxy spawns a thread to deal with that
client.
Proxy can also do IP filtering, please don't confuse this with packet
filtering for which there is a huge differnce. Proxy can read the IP
address of a client and compare it with rules in a filters file to
determine whether or not to drop the connection.
<<
diff -urN proxy-2.2.4/README proxy-2.2.4.new/README
--- proxy-2.2.4/README Mon May 22 17:19:20 2000
+++ proxy-2.2.4.new/README Wed Oct 27 23:40:14 2004
@@ -37,8 +37,8 @@
FILTERING
Proxy-2.2.4 can also do filtering. In order to take advantage of the
filtering rules of proxy-2.2, you must make a config file. The file will
-reside in the /etc directory and it will be called "proxy.filters"
-(i.e. /etc/proxy.filters). The filter file can contain comments, only if
+reside in the @PREFIX@/etc directory and it will be called "proxy.filters"
+(i.e. @PREFIX@/etc/proxy.filters). The filter file can contain comments, only if
the first character of the line starts with the pound sign '#'. Example:
Example 1:
diff -urN proxy-2.2.4/proxy.c proxy-2.2.4.new/proxy.c
--- proxy-2.2.4/proxy.c Mon May 22 17:19:20 2000
+++ proxy-2.2.4.new/proxy.c Wed Oct 27 23:40:17 2004
@@ -250,7 +250,7 @@
char *access_str, *deny_str;
int i;
- access = fopen ("/etc/proxy.filters", "r");
+ access = fopen ("@PREFIX@/etc/proxy.filters", "r");
if (access == NULL)
return 0;
diff -urN proxy-2.2.4/tcp_listen.c proxy-2.2.4.new/tcp_listen.c
--- proxy-2.2.4/tcp_listen.c Tue Mar 21 18:42:15 2000
+++ proxy-2.2.4.new/tcp_listen.c Mon Nov 8 22:54:06 2004
@@ -10,6 +10,7 @@
struct addrinfo hints, *res, *ressave;
bzero (&hints, sizeof (struct addrinfo));
+ hints.ai_family = AF_INET;
hints.ai_flags = AI_PASSIVE;
hints.ai_socktype = SOCK_STREAM;