Deny remote access to local domains

This commit is contained in:
Sam A. 2023-09-24 02:45:30 +02:00
parent cbb672fe74
commit 43aed3e6b7
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -23,9 +23,17 @@
-Server -Server
} }
@local {
remote_ip 192.168.0.0/16
}
handle @local {
reverse_proxy ipfs_kubo:5001 reverse_proxy ipfs_kubo:5001
} }
respond 403
}
{{ services.ipfs.gateway_domain }}, {{ services.ipfs.gateway_domain }},
*.ipfs.{{ services.ipfs.gateway_domain }}, *.ipfs.{{ services.ipfs.gateway_domain }},
*.ipns.{{ services.ipfs.gateway_domain }} { *.ipns.{{ services.ipfs.gateway_domain }} {
@ -76,5 +84,13 @@
-Server -Server
} }
@local {
remote_ip 192.168.0.0/16
}
handle @local {
reverse_proxy pihole:80 reverse_proxy pihole:80
} }
respond 403
}