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