Commit 0c19a727 authored by Lindsay's avatar Lindsay
Browse files

Big cleanup of formatting in Shorewall templates files

parent b90db3c8
# {{ ansible_managed }}
# Shorewall version 4 - Actions File
#
# Shorewall - actions File
#
# For information about entries in this file, type "man shorewall-actions"
#
# The manpage is also online at
# https://shorewall.org/manpages/shorewall-actions.html
#
###############################################################################
#ZONE INTERFACE OPTIONS
{% for action in shorewall_actions %}
......
# {{ ansible_managed }}
# Shorewall version 4 - Hosts File
#
# Shorewall - hosts File
#
# For information about this file, type "man shorewall-hosts"
#
......
# {{ ansible_managed }}
# Shorewall version 4 - Interfaces File
#
# Shorewall - interfaces File
#
# For information about entries in this file, type "man shorewall-interfaces"
#
......
# {{ ansible_managed }}
#
# Shorewall - Mangle File
# Shorewall - mangle File
#
# For information about entries in this file, type "man shorewall-mangle"
#
# See https://shorewall.org/manpages/shorewall-mangle.html for additional information
# The manpage is also online at
# https://shorewall.org/manpages/shorewall-mangle.html
#
############################################################################################
#ACTION SOURCE DEST PROTO DPORT SPORT USER TEST length tos connbytes helper headers probability dscp switch
{% for mangle in shorewall_mangle %}
......
# {{ ansible_managed }}
# For information about entries in this file, type "man shorewall-masq"
#
# Shorewall - masq File
#
# The manpage is online at
# https://shorewall.org/4.6/manpages/shorewall-masq.html
#
################################################################################################################
#INTERFACE:DEST SOURCE ADDRESS PROTO PORT(S) IPSEC MARK USER/ SWITCH ORIGINAL
# GROUP DEST
......
# {{ ansible_managed }}
# Shorewall version 4 - Params File
#
# /etc/shorewall/params
# Shorewall - params File
#
# Assign any variables that you need here.
#
......@@ -23,6 +22,11 @@
#
# net eth0 130.252.100.255 routefilter,norfc1918
#
# For information about entries in this file, type "man shorewall-params"
#
# The manpage is also online at
# https://shorewall.org/manpages/shorewall-params.html
#
###############################################################################
{% for param in shorewall_params %}
......
# {{ ansible_managed }}
# Shorewall version 4 - Policy File
#
# Shorewall - policy File
#
# For information about entries in this file, type "man shorewall-policy"
#
......
# {{ ansible_managed }}
#
# Shorewall - Providers File
# Shorewall - providers File
#
# For information about entries in this file, type "man shorewall-providers"
#
# The manpage is also online at
# https://shorewall.org/manpages/shorewall-providers.html
#
# For additional information, see http://shorewall.net/MultiISP.html
#
############################################################################################
......
# {{ ansible_managed }}
#
# Shorewall - Routes File
# Shorewall - routes File
#
# For information about entries in this file, type "man shorewall-routes"
#
#See https://shorewall.org/manpages/shorewall-routes.html for additional information
# The manpage is also online at
# https://shorewall.org/manpages/shorewall-routes.html
#
############################################################################################
#PROVIDER DEST GATEWAY DEVICE OPTIONS
......
......@@ -4,7 +4,9 @@
#
# For information about entries in this file, type "man shorewall-rtrules"
#
# See https://shorewall.org/manpages/shorewall-rtrules.html for additional information
# The manpage is also online at
# https://shorewall.org/manpages/shorewall-rtrules.html
#
############################################################################################
#SOURCE DEST PROVIDER PRIORITY MASK
{% for rtrules in shorewall_rtrules %}
......
# {{ ansible_managed }}
# Shorewall version 4 - Rules File
#
# Shorewall - rules File
#
# For information on the settings in this file, type "man shorewall-rules"
#
# The manpage is also online at
# http://www.shorewall.net/manpages/shorewall-rules.html
#
######################################################################################################################################################################################################
###################################################################################################################
#ACTION SOURCE DEST PROTO DEST SOURCE ORIGINAL RATE USER/ MARK CONNLIMIT TIME HEADERS SWITCH HELPER
# PORT PORT(S) DEST LIMIT GROUP
......
###############################################################################
# {{ ansible_managed }}
#
# Shorewall Version 4 -- /etc/shorewall/shorewall.conf
# Shorewall - shorewall.conf file
#
# For information about the settings in this file, type "man shorewall.conf"
#
# Manpage also online at http://www.shorewall.net/manpages/shorewall.conf.html
#
###############################################################################
{% for key,value in shorewall_conf.items() %}
......
# {{ ansible_managed }}
#
# Shorewall - SNAT/Masquerade File
#
# For information about entries in this file, type "man shorewall-snat"
#
# See http://shorewall.net/manpages/shorewall-snat.html for additional information
# The manpage is also online at
# http://shorewall.net/manpages/shorewall-snat.html
#
###################################################################################################################
#ACTION SOURCE DEST PROTO PORT IPSEC MARK USER SWITCH ORIGDEST PROBABILITY
{% for rule in shorewall_masq %}
MASQUERADE {{ rule.source | default('-') }} {{ rule.interface | default('-') }} {{ rule.proto | default('-') }} {{ rule.ports | default('-') }} {{ rule.ipsec | default('-') }} {{ rule.mark | default('-') }} {{ rule.user | default('-') }} {{ rule.switch | default('-') }} {{ rule.original_dest | default('-') }}
{% endfor %}
......
# {{ ansible_managed }}
#
# Shorewall version 4.5 - Sample Stoppedrules File for two-interface configuration.
# Copyright (C) 2012 by the Shorewall Team
# Shorewall - stoppedrules File
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# See the file README.txt for further details.
#------------------------------------------------------------------------------
# For information about entries in this file, type "man shorewall-stoppedrules"
#
# The manpage is also online at
# https://shorewall.org/manpages/shorewall-stoppedrules.html
#
###############################################################################
#ACTION SOURCE DEST PROTO DEST SOURCE
# PORT(S) PORT(S)
{% for i in shorewall_stoppedrules %}
{{ i.action }} {{ i.source | default("-") }} {{ i.dest | default("-") }} {{ i.proto | default('') }} {{ i.destports | default('')}} {{ i.sourceports | default('') }}
{{ i.action }} {{ i.source | default("-") }} {{ i.dest | default("-") }} {{ i.proto | default('') }} {{ i.dest_port | default('')}} {{ i.source_port | default('') }}
{% endfor %}
......@@ -7,6 +7,7 @@
# The manpage is also online at
# https://shorewall.org/manpages/shorewall-tcinterfaces.html
#
###############################################################################
#INTERFACE TYPE IN-BANDWIDTH OUT-BANDWIDTH
{% for tci in shorewall_tcinterfaces %}
......
# {{ ansible_managed }}
# Shorewall version 4 - Tunnels File
#
# Shorewall - tunnels File
#
# For information about entries in this file, type "man shorewall-tunnels"
#
......@@ -7,8 +8,7 @@
# http://www.shorewall.net/manpages/shorewall-tunnels.html
#
###############################################################################
#TYPE ZONE GATEWAY(S) GATEWAY
# ZONE(S)
#TYPE ZONE GATEWAY(S) GATEWAY ZONE(S)
{% for i in shorewall_tunnels %}
{{ i.type }} {{ i.zone }} {{ i.gateway }} {{ i.gateway_zone | default('') }}
......
# {{ ansible_managed }}
# Shorewall version 4 - Zones File
#
# Shorewall - zones File
#
# For information about this file, type "man shorewall-zones"
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment