0
0
mirror of https://github.com/saltstack-formulas/openssh-formula.git synced 2026-02-21 23:10:29 +01:00
openssh-formula/openssh/iptables-input.sls
David J. M. Karlsen 7ec208cba5 will this work?
2014-04-24 09:07:40 +02:00

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