0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2026-02-21 12:28:09 +01:00

manage iptables along with service

This commit is contained in:
David J. M. Karlsen 2014-04-23 09:11:02 +02:00
parent b44c26cd13
commit 0abdc65563

View File

@ -8,3 +8,13 @@ openssh:
- name: {{ openssh.service }}
- require:
- pkg: {{ openssh.server }}
iptables.insert:
- position: 0
- protocol: tcp
- dport: 22
- table: filter
- chain: INPUT
- jump: ACCEPT
- match: state
- connstate: NEW, ESTABLISHED
- save: True