Last active
May 13, 2018 23:48
-
-
Save linux-modder/4c8014056c154ce9d9cb5d880e26390e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Set defaults for firewall # (For security purposes,reject anything not started by an internal connection, only allow | |
via service/port) | |
firewalld: | |
enabled: true | |
become: true | |
zone: drop | |
interface: | |
eth0 | |
permanent: true | |
port: | |
9090/tcp # Cockpit | |
14623/tcp # SSH (Internal Joke) | |
user: root | |
masquerade: none | |
service: | |
fail2ban | |
ssh | |
cockpit | |
mosh | |
zone: dmz | |
interface: eth0 | |
port: | |
8080/tcp # Jenkins | |
user: root | |
permanent: true | |
masquearade: none | |
service: | |
ssh | |
cockpit | |
copy: | |
src=/templates/firewall.j2 | |
dest=/etc/firewalld/firewalld.conf | |
group=root | |
user=root | |
mode=644 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment