Advertisement
Guest User

Untitled

a guest
Sep 11th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.37 KB | None | 0 0
  1. [ssh-iptables]
  2.  
  3. enabled  = true
  4. filter   = sshd
  5. action   = iptables[name=SSH, port=ssh, protocol=tcp]
  6. logpath  = /var/log/secure
  7. maxretry = 3
  8.  
  9. {% for port in pillar['ports'] %}
  10. [custom-iptables-{{ port }}]
  11.  
  12. enabled  = true
  13. filter   = sshd
  14. action   = iptables[name=CUSTOM-{{ port }}, port={{ port}}, protocol=tcp]
  15. logpath  = /var/log/secure
  16. maxretry = 3
  17. {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement