diff --git a/cluster/apps/game-servers/kustomization.yaml b/cluster/apps/game-servers/kustomization.yaml index 8e28a9f..9a33a69 100644 --- a/cluster/apps/game-servers/kustomization.yaml +++ b/cluster/apps/game-servers/kustomization.yaml @@ -2,6 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./namespace.yaml -- ./network_policy.yaml +#- ./network_policy.yaml #- ./factorio - ./palworld \ No newline at end of file diff --git a/cluster/apps/game-servers/network_policy.yaml b/cluster/apps/game-servers/network_policy.yaml index 8a325e7..4db1e88 100644 --- a/cluster/apps/game-servers/network_policy.yaml +++ b/cluster/apps/game-servers/network_policy.yaml @@ -25,14 +25,12 @@ spec: egress: - to: - ipBlock: - cidr: 192.168.87.0/24 # server lan - ports: - # palworld - - protocol: UDP - port: 8211 - - protocol: UDP - port: 38211 - - protocol: UDP - port: 25575 - - protocol: UDP - port: 32575 \ No newline at end of file + # allow all IPs + cidr: 0.0.0.0/0 + except: + # except the private IP ranges: https://en.wikipedia.org/wiki/Private_network + - 10.0.0.0/8 + - 192.168.0.0/16 + - 172.16.0.0/20 + - ipBlock: + cidr: 192.168.87.250/24 # server \ No newline at end of file