From ce0bc2b85691cc8d1d7bc3e3ecc1df61a3b2739d Mon Sep 17 00:00:00 2001 From: Pantelis Roditis Date: Mon, 23 Nov 2026 21:46:37 +0200 Subject: [PATCH 1/2] use venue --- ansible/files/pf.conf | 2 +- ansible/files/pui.service.conf | 3 --- ansible/runonce/pui.yml | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ansible/files/pf.conf b/ansible/files/pf.conf index 5f9feec21..d592d6d4e 100644 --- a/ansible/files/pf.conf +++ b/ansible/files/pf.conf @@ -20,7 +20,7 @@ table persist counters file "/etc/targets.conf" table persist counters { 10.10.0.0/16 } table persist counters { 10.10.0.0/16 } table persist counters -table persist counters +table persist counters file "/etc/venue.conf" table persist counters table persist table persist diff --git a/ansible/files/pui.service.conf b/ansible/files/pui.service.conf index 8abbf5958..f177ad114 100644 --- a/ansible/files/pui.service.conf +++ b/ansible/files/pui.service.conf @@ -14,6 +14,3 @@ pass in quick inet proto tcp from to port 443 rdr-to 127.0.0.1 por pass in on egress inet proto tcp from to port { 80, 443 } label "www-normal" pass in on egress inet proto tcp from to port { 8000:8002 } rdr-to 127.0.0.1 label "www-normal" - -pass in on egress inet proto tcp to port { 80, 443 } label "www-normal" -pass in on egress inet proto tcp to port { 8000:8002 } rdr-to 127.0.0.1 label "www-normal" diff --git a/ansible/runonce/pui.yml b/ansible/runonce/pui.yml index da75e6f98..86bda33fe 100755 --- a/ansible/runonce/pui.yml +++ b/ansible/runonce/pui.yml @@ -307,6 +307,7 @@ - { dest: "/etc/docker_clients.conf" } - { dest: "/etc/docker_servers.conf" } - { content: "0.0.0.0/0", dest: "/etc/maintenance.conf" } + - { content: "0.0.0.0/0", dest: "/etc/venue.conf" } - { dest: "/etc/moderators.conf" } - { dest: "/etc/registry_clients.conf" } - { dest: "/etc/registry_servers.conf" } From f5a5f3339234d348d5f3a21084cf8134e267fa2e Mon Sep 17 00:00:00 2001 From: Pantelis Roditis Date: Mon, 23 Nov 2026 21:46:51 +0200 Subject: [PATCH 2/2] use it when servers are behind cloudflare --- ansible/files/setrealip.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/files/setrealip.sh b/ansible/files/setrealip.sh index 3cba07117..e061c7b34 100644 --- a/ansible/files/setrealip.sh +++ b/ansible/files/setrealip.sh @@ -8,5 +8,6 @@ md5 -qC "$hash" /etc/cloudflare.conf if [ $? -eq 0 ]; then exit 0 fi +pfctl -t venue -T replace -f /etc/cloudflare.conf (for i in $( /etc/nginx/cloudflare.conf rcctl reload participant nginx