changed firewall config for icmp
This commit is contained in:
@@ -16,12 +16,17 @@
|
|||||||
proto: tcp
|
proto: tcp
|
||||||
src: 'any'
|
src: 'any'
|
||||||
|
|
||||||
- name: system setup | firewall | allow monitoring traffic from internal networks
|
- name: system setup | firewall | allow ping (ICMP) from internal networks
|
||||||
|
community.general.ufw:
|
||||||
|
rule: allow
|
||||||
|
src: '192.168.1.0/24' # Passe dies an dein internes Netzwerk an
|
||||||
|
proto: icmp
|
||||||
|
|
||||||
|
- name: system setup | firewall | allow other monitoring traffic from internal networks
|
||||||
community.general.ufw:
|
community.general.ufw:
|
||||||
rule: allow
|
rule: allow
|
||||||
proto: "{{ item.proto }}"
|
proto: "{{ item.proto }}"
|
||||||
port: "{{ item.port | default(omit) }}"
|
port: "{{ item.port | default(omit) }}"
|
||||||
src: '192.168.1.0/24' # Passe dies an dein internes Netzwerk an
|
src: '192.168.1.0/24' # Passe dies an dein internes Netzwerk an
|
||||||
loop:
|
loop:
|
||||||
- { proto: 'icmp', comment: 'Allow Ping' }
|
|
||||||
- { proto: 'udp', port: '161', comment: 'Allow SNMP' }
|
- { proto: 'udp', port: '161', comment: 'Allow SNMP' }
|
||||||
|
|||||||
Reference in New Issue
Block a user