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