Merge pull request #35 from NanoPish/master

take comment in account
This commit is contained in:
Mischa ter Smitten 2020-04-23 09:21:27 +02:00 committed by GitHub
commit 38533a15e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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: