Browse Source

Adding comment option to iptables rule

Change-Id: I9d93052cfc197a364b42240448344d5543e8805f
pull/13/head
Dmitry Stremkouski 7 years ago
parent
commit
afb406c73f
3 changed files with 5 additions and 1 deletions
  1. +1
    -0
      README.rst
  2. +3
    -0
      iptables/_rule.sls
  3. +1
    -1
      tests/pillar/iptables_server.sls

+ 1
- 0
README.rst View File

destination_port: 22 destination_port: 22
source_network: 192.168.1.0/24 source_network: 192.168.1.0/24
jump: ACCEPT jump: ACCEPT
comment: Blah


IPv6 is supported as well IPv6 is supported as well



+ 3
- 0
iptables/_rule.sls View File

{%- if rule.match is defined %} {%- if rule.match is defined %}
- match: {{ rule.match }} - match: {{ rule.match }}
{%- endif %} {%- endif %}
{%- if rule.comment is defined %}
- comment: {{ rule.comment }}
{%- endif %}
{%- if rule.connection_state is defined %} {%- if rule.connection_state is defined %}
- connstate: {{ rule.connection_state }} - connstate: {{ rule.connection_state }}
{%- endif %} {%- endif %}

+ 1
- 1
tests/pillar/iptables_server.sls View File

destination_port: 8088 destination_port: 8088
source_network: 127.0.0.1 source_network: 127.0.0.1
jump: ACCEPT jump: ACCEPT
comment: Blah

Loading…
Cancel
Save