AUTHOR
 Sasha Pachev <sasha@direct1.com>
 http://www.sashanet.com/

ABOUT

 tcpgate is a server that listens on a TCP port and when connection is established,
 proxies it to a different host-port specified in the configuration file. Great
 for reading news from a server that would not allow you to connect to from where you
 are if you have a an account on a Unix machine that is allowed to connect to the
 news server.

VERSION
 0.0.2 

HISTORY
 March 23, 1999 - first release
 April 22, 1999 - added ip-based access control

INSTALL

 install libtcp++ (available at http://www.sashanet.com/internet/download.html )
 gunzip -c tcpgate-0.0.1.tar.gz | tar xvf -
 make tcpgate

USAGE
 ./tcpgate config_file

 example of config_file

 to_port 119
 to_host news.mydomain.com
 port 1234
 log_file tcpgate.log
 ip_rules_file site.rules

 to_port - port to which the packets are proxied, 
 to_host - the host to which the packets are proxied,
 port - port that tcpgate listens on
 log_file - file where tcpgate writes the log :)
 ip_rules_file - if present, enables IP-based access control, and must contain a set
  of allow rules. Any host not matched by those rules will be denied connection. Example
  of ip_rules_file:

127.0.0.1/255.255.255.255
128.187.0.0/255.255.0.0

The above example will allow localhost to connect, as well as any machine coming from 
 128.187.0.0 subnet

TO DO
 -thorough testing
 -better documentation

 If you feel inclined to do it, I will include your work in the distribution provided I 
 find it acceptable, and give you credit, of course.

LICENSE
 You may modify the source as long as you give proper credit. I assume no legal 
 responsibility for any damage resulting from the use of tcpgate. If you have a web
 site, a link to your favorite page at http://www.sashanet.com/ will be appreciated

