aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/templates/port_forward
blob: 3fe7903bb76b58ef1c9e9a8c52a57d61779d1d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
service <%= name %>
{
        disable         = no
        type            = UNLISTED
<%- if protocol == 'tcp' -%>
        socket_type     = stream
<%- else -%>
        socket_type     = dgram
<%- end -%>
        protocol        = <%= proto %>
        user            = nobody
        wait            = no
        redirect        = <%= target_ip %> <%= target_port %>
        port            = <%= port %>
}