doc: add ufw description
This commit is contained in:
parent
83b6a38999
commit
cab15e590e
@ -28,8 +28,12 @@ ansible-galaxy collection install -r requirements.yml
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
If you have a password on your ssh key `--ask-pass` is recommended, `--ask-become-pass` is always asked in these roles, as most tasks require elevated privileges. These are dropped time to time when the default user privilege is enough.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ansible-playbook -i inventory/hosts.yml playbook.yml --ask-become-pass
|
ansible-playbook -i inventory/hosts.yml playbook.yml \
|
||||||
|
--ask-pass \
|
||||||
|
--ask-become-pass
|
||||||
```
|
```
|
||||||
|
|
||||||
## Target devices configuration
|
## Target devices configuration
|
||||||
|
|||||||
@ -35,4 +35,5 @@
|
|||||||
port: "{{ nfs_port }}"
|
port: "{{ nfs_port }}"
|
||||||
proto: any
|
proto: any
|
||||||
direction: in
|
direction: in
|
||||||
|
comment: "Network File System (NFS)"
|
||||||
with_items: "{{ nfs_server_firewall_allowed_sources | default([]) }}"
|
with_items: "{{ nfs_server_firewall_allowed_sources | default([]) }}"
|
||||||
|
|||||||
@ -45,4 +45,5 @@
|
|||||||
proto: udp
|
proto: udp
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
direction: in
|
direction: in
|
||||||
|
comment: "NTP traffic"
|
||||||
loop: "{{ ntp_firewall_allowed_sources | default([]) }}"
|
loop: "{{ ntp_firewall_allowed_sources | default([]) }}"
|
||||||
|
|||||||
@ -26,6 +26,7 @@
|
|||||||
proto: tcp
|
proto: tcp
|
||||||
from: "{{ ssh_allowed_network }}"
|
from: "{{ ssh_allowed_network }}"
|
||||||
direction: in
|
direction: in
|
||||||
|
comment: "SSH from local network"
|
||||||
|
|
||||||
- name: Allow SSH VPN incoming connection
|
- name: Allow SSH VPN incoming connection
|
||||||
ufw:
|
ufw:
|
||||||
@ -34,6 +35,7 @@
|
|||||||
proto: tcp
|
proto: tcp
|
||||||
from: "{{ ssh_allowed_vpn_network }}"
|
from: "{{ ssh_allowed_vpn_network }}"
|
||||||
direction: in
|
direction: in
|
||||||
|
comment: "SSH from VPN network"
|
||||||
|
|
||||||
- name: Add SSH public key to authorized_keys
|
- name: Add SSH public key to authorized_keys
|
||||||
authorized_key:
|
authorized_key:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user