Create a file in /etc/xinetd.d/service_name with the following contents:

service SERVICE_NAME
{   
    disable = no
    type = UNLISTED
    socket_type = stream
    protocol = tcp
    wait = no
    redirect = DESTINATION_IP DESTINATION_PORT
    bind = LOCAL_IP
    port = LOCAL_PORT
    user = nobody
}


.

Restart xinetd:

# initctl restart xinetd
Advertisements