|
NAMEtproxy - transparently re-direct HTTP requests to a HTTP cache.SYNOPSIStproxy [ -t | -p ] [ -f forced-url ] [ -s bind-port[ -d ] [ -b bind-address ] [ -r runas-uid ] [ -a access-ip-address ] ] [ -l log-file ] proxyhost proxyport DESCRIPTIONtproxy accepts HTTP requests and forwards them to a cache host. If the HTTP request has been transparently re-directed, the URL is re-written so that the cache host knows what web server to fetch the document from. Tcp_wrappers is used to provide host access control.The proxy-cache host's address and port are given by proxyhost and proxyport. OPTIONS
FINE POINTStproxy is not an all-in-one transparent proxy solution. It requires support from the operating system, and configuration from the system administrator, to transparently capture HTTP requests.tproxyrun provides an example script to add firewall commands and start tproxy running. It currently supports FreeBSD-3.x and various versions of Linux. See the environment variable definitions at the top of the file. tproxywatch provides a mechanism of ensuring that tproxy is re-started should it fail. Whenever tproxy exits an email is sent to the root account and then tproxy is re-started. FreeBSD-3.x provides two methods of transparently capturing packets. The first is ipfw(8) using the following example configuration. ipfw add 1000 allow tcp from 192.168.1.1 to any 80 ipfw add 1001 fwd 192.168.1.1,8081 tcp from any to any 80 The second is ipnat(1) using the following example configuration. Note that a rule is required for every interface you wish to transparently re-direct for. rdr ppp0 0.0.0.0/0 port 80 -> 192.168.1.1 port 8081 Linux provides the same mechanism with either the ipchains(8) command, kernels 2.1.x and up, using the following example configuration. ipchains -A input -p tcp -d 0.0.0.0/0 80 -j REDIRECT 8081 Or the ipfwadm(8) command, kernels 2.0.x, using the following example configuration. ipfwadm -I -a accept -P tcp -D 0.0.0.0/0 80 -r 8081 SEE ALSOhosts_access(5), tcpserver(1), ipfw(8), ipnat(1), ipfwadm(8), ipchains(8)AUTHORSWritten by John Saunders <john@nlc.net.au>Copyright 1998, 1999, 2000 NORTHLINK COMMUNICATIONS PTY LTD. All rights reserved. Visit the GSP FreeBSD Man Page Interface. |