tgcd - TCP/IP Gender Changer Daemon utility.

tgcd – TCP/IP Gender Changer Daemon utility.

tgcd is a simple Unix network utility to extend the accessibility of TCP/IP based network services beyond firewalls. This can also be used by network analysts and security experts for penetration testing and analyze the security of their network. It has three different modes:
– ConnectConnect (or CC, specified by option -C)
– ListenListen (or LL, specified by option -L)
– Port Forwarder (or PF, specified by option -F)

The ConnectConnect and ListenListen instances of tgcd are used jointly together, while the Port Forwarder mode acts standalone. The ConnectConnect instance resides somewhere on the network (inside the LAN) where it can access the desired server, while the ListenListen will be where the external client can access it (outside the LAN). The ConnectConnect instance, when started, tries to establish a control connection to ListenListen instance (if failed it will retry every n seconds specified by -i ). The ListenListen instance upon receiving a connection from client, will send a request to ConnectConnect (over the already established control connection) to establish a connection to server as well as another connection to ListenListen for data transferring. In the Port Forwarder mode, tgcd will pump data from one port to another providing a basic port forwarding functionality.

tgcd – TCP/IP Gender Changer Daemon utility.

For all three modes, one can choose (using -m option) between two different ways of handling multiple connections. By choosing the Select method, the program will use less system memory in expense of slower handling of multiple connections, and on the other side by choosing Fork method tgcd will handle the multiple connections faster in expense of system memory.
tgcd links with libwrap (if available at build time) to provide a simple access control mechanism that’s provided by hosts_access(5).

Usage and install:

Download: tgcd-1.1.1.tar.gz (110.3 kB)
Source: http://tgcd.sourceforge.net/