Add more firewall rules

This commit is contained in:
Gerald Pinder
2025-05-17 22:18:15 -04:00
parent 4adfb4a2ef
commit d51297fec9
10 changed files with 35 additions and 7 deletions

View File

@@ -0,0 +1,2 @@
[keyfile]
unmanaged-devices=interface-name:flannel*;interface-name:cali*;interface-name:tunl*;interface-name:vxlan.calico;interface-name:vxlan-v6.calico;interface-name:wireguard.cali;interface-name:wg-v6.cali

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>RKE Common</short>
<description>Common ports for RKE services.</description>
<port protocol="tcp" port="10250"/>
<port protocol="tcp" start="30000" end="32767"/>
<port protocol="udp" port="8472"/>
<port protocol="tcp" port="9099"/>
<port protocol="udp" port="51820"/>
<port protocol="udp" port="51821"/>
<port protocol="tcp" port="179"/>
<port protocol="udp" port="4789"/>
<port protocol="tcp" port="5473"/>
<port protocol="tcp" port="9098"/>
<port protocol="tcp" port="9099"/>
</service>

View File

@@ -10,5 +10,6 @@ fi
# Add 'rke' to docker group # Add 'rke' to docker group
echo "Adding 'rke' to docker group" echo "Adding 'rke' to docker group"
usermod -aG docker rke usermod -aG docker rke
usermod -aG systemd-journal rke
echo "Done" echo "Done"

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>RKE Server</short>
<description>Ports for RKE server services.</description>
<port protocol="tcp" port="6443"/>
<port protocol="tcp" port="9345"/>
<port protocol="tcp" port="2379"/>
<port protocol="tcp" port="2380"/>
<port protocol="tcp" port="2381"/>
</service>

View File

@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>RKE API</short>
<description>Open port 6443 for Kubernetes API Server.</description>
<port protocol="tcp" port="6443"/>
</service>

View File

@@ -26,7 +26,7 @@ modules:
- curl -sfL https://get.rke2.io | sh - curl -sfL https://get.rke2.io | sh
- type: files - type: files
files: files:
- source: rke_setup - source: rke-common
destination: / destination: /
- type: systemd - type: systemd
system: system:

View File

@@ -7,6 +7,10 @@ image-version: 42
description: The image of Wunker OS for JP's Minisforum PCs. description: The image of Wunker OS for JP's Minisforum PCs.
modules: modules:
- from-file: common/jp-minis.yml - from-file: common/jp-minis.yml
- type: files
files:
- source: rke-server
destination: /
- type: script - type: script
snippets: snippets:
- curl -sfL https://get.rke2.io | INSTALL_RKE2_SKIP_RELOAD=true sh - curl -sfL https://get.rke2.io | INSTALL_RKE2_SKIP_RELOAD=true sh