mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2025-04-20 04:42:08 +02:00
restructure a little
This commit is contained in:
parent
7ec208cba5
commit
764d4204d1
@ -2,10 +2,21 @@
|
||||
{% set openssh_pillar = pillar.get('openssh', {}) %}
|
||||
{% set listen_port = salt['pillar.get']('openssh:listen_port', '22') %}
|
||||
|
||||
sshd.iptables.chain:
|
||||
iptables.chain_present:
|
||||
- name: sshd_input
|
||||
|
||||
#ideally this should be flushed in case the port changes so it will not accumulate ports:
|
||||
sshd.iptables.input:
|
||||
iptables.insert:
|
||||
- table: filter
|
||||
- chain: INPUT
|
||||
- jump: sshd_input
|
||||
|
||||
sshd.iptables.input:
|
||||
iptables.insert:
|
||||
- table: filter
|
||||
- chain: sshd_input
|
||||
- position: 1
|
||||
- match: state
|
||||
- connstate: NEW,ESTABLISHED
|
||||
|
Loading…
x
Reference in New Issue
Block a user