mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-02 23:05:46 +00:00
test: Add test cases for NETWORK_ACCESS=internal
This commit is contained in:
committed by
Nicolas Duchon
parent
28c74e8dae
commit
2509fc1076
11
test/test_internal/network_internal.conf
Normal file
11
test/test_internal/network_internal.conf
Normal file
@ -0,0 +1,11 @@
|
||||
# Only allow traffic from internal clients
|
||||
allow 127.0.0.0/8;
|
||||
allow 10.0.0.0/8;
|
||||
allow 192.168.0.0/16;
|
||||
allow 172.16.0.0/12;
|
||||
allow fc00::/7; # IPv6 local address range
|
||||
deny all;
|
||||
|
||||
# Dummy header for testing
|
||||
add_header X-network internal;
|
||||
|
Reference in New Issue
Block a user