mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
930db90bb4
v0.3 tools. It could probably work with 2.2.x if the ipfilter package was built and installed.
21 lines
765 B
Plaintext
21 lines
765 B
Plaintext
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..]
|