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/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 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" }