add gaming network configs
This commit is contained in:
parent
8d5dcef849
commit
e673abb764
5 changed files with 19 additions and 8 deletions
|
@ -21,14 +21,6 @@
|
|||
mode: '0600'
|
||||
vars:
|
||||
ALLOWED_PORTS: [80, 443]
|
||||
- name: Additional pterodactyl rules
|
||||
template:
|
||||
src: files/firewall_pterodactyl-rules.j2
|
||||
dest: /etc/nftables.d/pterodactyl.nft
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0600'
|
||||
when: installation_type == 'gaming'
|
||||
- name: Enable nftables service
|
||||
service:
|
||||
name: nftables
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
- import_playbook: firewall.ansible.yml
|
||||
- import_playbook: modes/gaming.ansible.yml
|
||||
when: installation_type == 'gaming'
|
||||
|
||||
- hosts: localhost
|
||||
tasks:
|
||||
|
|
|
@ -5,6 +5,8 @@ table inet filter {
|
|||
chain input {
|
||||
iifname eth0 tcp dport 8080 accept \
|
||||
comment "Accept local connection to wings"
|
||||
iifname eth0 tcp dport 3306 accept \
|
||||
comment "Accept local conntection to mariadb"
|
||||
}
|
||||
}
|
||||
|
14
network/modes/gaming.ansible.yml
Normal file
14
network/modes/gaming.ansible.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
- hosts: localhost
|
||||
tasks:
|
||||
- name: Install iptables for docker compatibility
|
||||
package:
|
||||
name:
|
||||
- iptables
|
||||
state: present
|
||||
- name: Deploy pterodactyl nft rules
|
||||
template:
|
||||
src: files/firewall_pterodactyl-rules.j2
|
||||
dest: /etc/nftables.d/pterodactyl.nft
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0600'
|
|
@ -18,6 +18,7 @@
|
|||
- curl
|
||||
- rsync
|
||||
- screen
|
||||
- iproute2-ss
|
||||
- name: Systemupdate script
|
||||
template:
|
||||
src: files/base_systemupdate
|
||||
|
|
Loading…
Reference in a new issue