aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules/xinetd/templates')
-rw-r--r--modules/xinetd/templates/port_forward10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/xinetd/templates/port_forward b/modules/xinetd/templates/port_forward
index 1b76b0e1..99518dcd 100644
--- a/modules/xinetd/templates/port_forward
+++ b/modules/xinetd/templates/port_forward
@@ -1,15 +1,15 @@
-service <%= name %>
+service <%= @name %>
{
disable = no
type = UNLISTED
-<%- if proto == 'tcp' -%>
+<%- if @proto == 'tcp' -%>
socket_type = stream
<%- else -%>
socket_type = dgram
<%- end -%>
- protocol = <%= proto %>
+ protocol = <%= @proto %>
user = nobody
wait = no
- redirect = <%= target_ip %> <%= target_port %>
- port = <%= port %>
+ redirect = <%= @target_ip %> <%= @target_port %>
+ port = <%= @port %>
}