aboutsummaryrefslogtreecommitdiffstats
path: root/modules/xinetd/templates
diff options
context:
space:
mode:
Diffstat (limited to 'modules/xinetd/templates')
-rw-r--r--modules/xinetd/templates/port_forward15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/xinetd/templates/port_forward b/modules/xinetd/templates/port_forward
new file mode 100644
index 00000000..99518dcd
--- /dev/null
+++ b/modules/xinetd/templates/port_forward
@@ -0,0 +1,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 %>
+}