mirror of
https://github.com/ruanbekker/rpi-ansible.git
synced 2025-04-19 17:01:38 +02:00
add firewall configuration
This commit is contained in:
parent
d62408a9aa
commit
bd52fd5733
@ -79,3 +79,26 @@
|
||||
- include: software.yml
|
||||
- include: users.yml
|
||||
- include: raspi-config.yml
|
||||
|
||||
# Configure firewall
|
||||
- name: allow SSH through UFW
|
||||
ufw:
|
||||
rule: allow
|
||||
port: ssh
|
||||
proto: tcp
|
||||
log: yes
|
||||
|
||||
- name: set default incoming UFW policy to deny
|
||||
ufw:
|
||||
direction: incoming
|
||||
policy: deny
|
||||
|
||||
- name: set default outgoing UFW policy to deny
|
||||
ufw:
|
||||
direction: outgoing
|
||||
policy: allow
|
||||
|
||||
- name: enable UFW
|
||||
ufw:
|
||||
state: enabled
|
||||
logging: yes
|
||||
|
@ -31,5 +31,6 @@
|
||||
- vim
|
||||
- git
|
||||
- python-pip
|
||||
- ufw
|
||||
tags:
|
||||
- sw
|
||||
|
Loading…
x
Reference in New Issue
Block a user