Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 79888a13 authored by freezed's avatar freezed :mountain:
Browse files

:sparkles: Allow known IP in UFW

parent 71e44e39
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,26 @@
direction: outgoing
policy: allow
- name: UFW | allow local IPs on port 22 IN
when: inventory_hostname in groups.station
loop: "{{ groups['station'] }}"
community.general.ufw:
direction: in
port: '22'
proto: tcp
rule: allow
src: "{{hostvars[item]['ansible_host']}}"
- name: "UFW | allow {{gateway}} IP on port 22 IN"
when: (inventory_hostname in groups.production) or
(inventory_hostname in groups.devel)
community.general.ufw:
direction: in
port: '22'
proto: tcp
rule: allow
src: "{{gateway}}"
- name: UFW | limit tcp port 22 IN
community.general.ufw:
direction: in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment