Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansible/files/pf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ table <targets> persist counters file "/etc/targets.conf"
table <offense_activated> persist counters { 10.10.0.0/16 }
table <offense_network> persist counters { 10.10.0.0/16 }
table <heartbeat> persist counters
table <venue> persist counters
table <venue> persist counters file "/etc/venue.conf"
table <banned> persist counters
table <rule_flush_only> persist
table <vip_flush_only> persist
Expand Down
3 changes: 0 additions & 3 deletions ansible/files/pui.service.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,3 @@ pass in quick inet proto tcp from <maintenance> to port 443 rdr-to 127.0.0.1 por

pass in on egress inet proto tcp from <venue> to port { 80, 443 } label "www-normal"
pass in on egress inet proto tcp from <venue> 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"
1 change: 1 addition & 0 deletions ansible/files/setrealip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/cloudflare.conf);do echo "set_real_ip_from $i;";done; echo "real_ip_header CF-Connecting-IP;"; echo "real_ip_recursive on;") > /etc/nginx/cloudflare.conf
rcctl reload participant nginx
1 change: 1 addition & 0 deletions ansible/runonce/pui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down