summaryrefslogtreecommitdiff
path: root/hosts/ahmed
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2023-10-21 19:09:27 +0200
committerLinnnus <[email protected]>2023-10-21 19:09:27 +0200
commitcb0697f14a5a13985710e8e2824158c038e03d83 (patch)
tree8a68731cddfea39835b12bf95f5fb8e64ccb536b /hosts/ahmed
parentd8727c5a832fa760e1f62a0fb2aa00b6667727af (diff)
cloudflare-proxy: Block non-cloudflare HTTP(S) connections
Diffstat (limited to 'hosts/ahmed')
-rw-r--r--hosts/ahmed/configuration.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/hosts/ahmed/configuration.nix b/hosts/ahmed/configuration.nix
index 945f29c..f95f449 100644
--- a/hosts/ahmed/configuration.nix
+++ b/hosts/ahmed/configuration.nix
@@ -3,6 +3,7 @@
{
config,
pkgs,
+ metadata,
...
}: {
imports = [
@@ -82,7 +83,10 @@
networking.firewall.allowedTCPPorts = [80 443];
# We are running behind CF proxy.
- modules.cloudflare-proxy.enable = true;
+ modules.cloudflare-proxy = {
+ enable = true;
+ firewall.IPv4Whitelist = [metadata.hosts.muhammed.ipAddress];
+ };
# Use as main driver temporarily.
# modules.graphics.enable = true;