commit
38533a15e0
|
@ -50,6 +50,7 @@ None
|
|||
- rule: allow
|
||||
to_port: 22
|
||||
protocol: tcp
|
||||
comment: 'allow incoming connection on standard ssh port'
|
||||
```
|
||||
|
||||
##### Allow all traffic on eth1
|
||||
|
@ -62,6 +63,7 @@ None
|
|||
- rule: allow
|
||||
interface: eth1
|
||||
to_port: ''
|
||||
comment: 'allow all traffic on interface eth1'
|
||||
```
|
||||
|
||||
##### Allow snmp traffic from 1.2.3.4 on eth0
|
||||
|
|
|
@ -63,6 +63,7 @@
|
|||
protocol: "{{ item.protocol | default('any') }}"
|
||||
route: "{{ item.route | default(omit) }}"
|
||||
log: "{{ item.log | default(false) }}"
|
||||
comment: "{{ item.comment | default(omit) }}"
|
||||
with_items: "{{ ufw_rules }}"
|
||||
notify: reload ufw
|
||||
tags:
|
||||
|
|
Loading…
Reference in New Issue