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:
parent
b44c26cd13
commit
0abdc65563
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user