mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-02-21 23:10:29 +01:00
17 lines
419 B
Plaintext
17 lines
419 B
Plaintext
{% from "openssh/map.jinja" import openssh with context %}
|
|
{% set openssh_pillar = pillar.get('openssh', {}) %}
|
|
{% set listen_port = salt['pillar.get']('openssh:listen_port', '22') %}
|
|
|
|
sshd.iptables.input:
|
|
iptables.insert:
|
|
- table: filter
|
|
- chain: INPUT
|
|
- position: 1
|
|
- match: state
|
|
- connstate: NEW,ESTABLISHED
|
|
- dport: {{ listen_port }}
|
|
- proto: tcp
|
|
- jump: ACCEPT
|
|
- save: True
|
|
|