Saltstack Official UFW Formula
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

72 lines
1.5KB

  1. ufw:
  2. enabled: True
  3. settings:
  4. ipv6: True
  5. default_input_policy: 'DROP'
  6. default_output_policy: 'ACCEPT'
  7. default_forward_policy: 'DROP'
  8. default_application_policy: 'SKIP'
  9. manage_builtins: False
  10. ipt_sysctl: '/etc/ufw/sysctl.conf'
  11. ipt_modules:
  12. - nf_conntrack_ftp
  13. - nf_nat_ftp
  14. - nf_conntrack_netbios_ns
  15. sysctl:
  16. forwarding: 1
  17. rp_filter: 1
  18. accept_source_route: 0
  19. accept_redirects: 0
  20. icmp_echo_ignore_broadcasts: 1
  21. icmp_ignore_bogus_error_responses: 1
  22. icmp_echo_ignore_all: 0
  23. log_martians: 0
  24. tcp_syncookies: 0
  25. tcp_sack: 1
  26. ipv6_autoconf: 1
  27. use_tempaddr: 1
  28. services:
  29. # Allow 80/tcp (http) traffic from only two remote addresses.
  30. http:
  31. protocol: tcp
  32. from_addr:
  33. - 10.0.2.15
  34. - 10.0.2.16
  35. # Allow 443/tcp (https) traffic from network 10.0.0.0/8 to an specific local ip.
  36. https:
  37. protocol: tcp
  38. from_addr:
  39. - 10.0.0.0/8
  40. to_addr: 10.0.2.1
  41. # Allow from a service port.
  42. smtp:
  43. protocol: tcp
  44. # Allow from an specific port, by number.
  45. 139:
  46. protocol: tcp
  47. # Allow from a range of ports, udp.
  48. "10000:20000":
  49. protocol: udp
  50. # Allow from two specific ports, udp.
  51. "30000,40000":
  52. protocol: udp
  53. # Allow an application defined at /etc/ufw/applications.d/
  54. applications:
  55. OpenSSH:
  56. enabled: True
  57. # Allow all traffic in on the specified interface
  58. interfaces:
  59. - eth1