examples: add private / localhost networks to snippets and forgejo/generic examples
This commit is contained in:
20
examples/snippets/networks-private.yml
Normal file
20
examples/snippets/networks-private.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
networks:
|
||||
localhost:
|
||||
# localhost and loopback addresses
|
||||
- prefixes:
|
||||
- "127.0.0.0/8"
|
||||
- "::1/128"
|
||||
private:
|
||||
# Private network CIDR blocks
|
||||
- prefixes:
|
||||
# private networks
|
||||
- "10.0.0.0/8"
|
||||
- "172.16.0.0/12"
|
||||
- "192.168.0.0/16"
|
||||
- "fc00::/7"
|
||||
|
||||
conditions:
|
||||
is-network-localhost:
|
||||
- &is-network-localhost 'remoteAddress.network("localhost")'
|
||||
is-network-private:
|
||||
- &is-network-private 'remoteAddress.network("private")'
|
||||
Reference in New Issue
Block a user