aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/templates/port_forward
blob: 7138dba260066d72d71ed824b1fe125324bb1914 (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 %>
}