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 = 3389
 bind =
 port = 3389
 user = nobody