cstcpproxy -- Version 1.4 cstcpproxy is a daemon that is used to proxy tcp connections. It will listen on any ip:port and connect to and proxy everything to a different ip:port. The outgoing connection can be configured to come from any interface of your machine. ------------ How to Build ------------ To make the server: 1) run configure: ./configure 2) compile it: make ---------- How to Use ---------- Usage: cstcpproxy [-h] [-n] [-s] config.file -h -- this usage -n -- don't fork into background -s -- log to syslog as well as stderr ------------------ Config File Format ------------------ The format of the config file is as follows: proxy src_ip:src_port dest_ip:dest_port [ip_to_bind] src_ip:src_port -- the IP address:port to listen on for connections dest_ip:dest_port -- IP to connect to and proxy the data ip_to_bind -- if specified, the IP of the interface to connect out on allow ip -- allow ip to connect to the 'proxy' statement before it. -- if no proxy statement before it, allow it to any proxy connect_timeout -- timeout connections after 'x' seconds. this affects the proxy statement before it if one exists, else it is a global setting and is used when a proxy statement doesn't define their own connect_timeout queue_limit -- limit queue_size to 'x' bytes. this affects the proxy statement before it if one exists, else it is a global setting and is used when a proxy statement doesn't define their own queue_limit See the example proxy.conf that is included. -------------- Other Notes -------------- Default is to not allow any connections, so an 'allow' statement will definitely be necessary. Only single IP addresses may be specified, but CIDR will be added in a future release. Any number of 'proxy' statements may be specified. The config file can be reloaded by sending a SIGHUP to the proxy daemon. If a proxy statement is removed, all connections in use for that statement will be disconnected upon receiving SIGHUP. -------------- Send comments, suggestions, patches, bug reports, etc to: Chris Gaver Behrens