Xinetd – forward port to another host

Sometimes it is useful to forward port from one machine to another. There are probably two most popular ways how to do it (IPTables which are not really convenient for this) and Xinetd.d which is much more reliable.

Here is an example config

# cat /etc/xinetd.d/rdp
service rdp
{
 disable = no
 type = UNLISTED
 socket_type = stream
 protocol = tcp
 wait = no
 redirect = 192.168.10.10 3389
 bind = 0.0.0.0
 port = 3389
 user = nobody
}