aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/templates/port_forward
blob: 9ebdbb916e64aa67a36c42d029c5f7572850b776 (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        = <%= protocol %>
        user            = nobody
        wait            = no
        redirect        = <%= target_ip %> <%= target_port %>
        port            = <%= port %>
}