.TH micro_proxy 8 "16 March 1999" .SH NAME micro_proxy \- really small HTTP/HTTPS proxy .SH SYNOPSIS .B micro_proxy .SH DESCRIPTION .PP .I micro_proxy is a very small HTTP/HTTPS proxy. It runs from inetd, which means its performance is poor. But for low\-traffic sites, it's quite adequate. It implements all the basic features of an HTTP/HTTPS proxy, in only 260 lines of code. .PP To install it, add a line like this to /etc/inetd.conf: .nf webproxy stream tcp nowait nobody /usr/sbin/micro_proxy micro_proxy .fi Make sure the path to the executable is correct. Then add a line like this to /etc/services: .nf webproxy port/tcp .fi Change "port" to the port number you want to use \- 3128, or whatever. Then restart inetd by sending it a "HUP" signal, or rebooting. .PP On some systems, inetd has a maximum spawn rate \- if you try to run inetd services faster than a certain number of times per minute, it assumed there's either a bug of an attack going on and it shuts down for a few minutes. If you run into this problem \- look for syslog messages about too\-rapid looping \- you'll need to find out how to increase the limit. Unfortunately this varies from OS to OS. On FreeBSD, you add a "\-R 10000" flag to inetd's initial command line. On some Linux systems, you can set the limit on a per-service basis in inetd.conf, by changing "nowait" to "nowait.10000". .SH AUTHOR Copyright (C) 1999 by Jef Poskanzer . All rights reserved. .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE.