Move Remote-ACL to config file
Signed-off-by: Blackyfff <freifunk@freifunk-herpf.de>
This commit is contained in:
parent
c8f327ae70
commit
cd0ae2f041
|
@ -9,5 +9,7 @@ CommunitySubnets="10.50.0/16 10.83.0/16 fd43:5602:29bd::/48"
|
||||||
### master file in remote needs to be named: db.$CommunityDomain
|
### master file in remote needs to be named: db.$CommunityDomain
|
||||||
RemoteLocation="https://git.freifunk-franken.de/freifunk-franken/dns/raw/branch/master/"
|
RemoteLocation="https://git.freifunk-franken.de/freifunk-franken/dns/raw/branch/master/"
|
||||||
|
|
||||||
|
RemoteACL="https://gw01.herpf.fff.community/ffdns/icvpn-acl.conf"
|
||||||
|
|
||||||
### TTL Refresh Retry Expire Minimum
|
### TTL Refresh Retry Expire Minimum
|
||||||
TTLReReExMi="3600 2000 6400 2419200 86400"
|
TTLReReExMi="3600 2000 6400 2419200 86400"
|
|
@ -15,7 +15,7 @@ rm -f "$IncludeFile"
|
||||||
if [ -z "$Tables" ]; then
|
if [ -z "$Tables" ]; then
|
||||||
# this is only a rude fallback and not recommended
|
# this is only a rude fallback and not recommended
|
||||||
# create your own file on a gateway with the community routing tables and use this one
|
# create your own file on a gateway with the community routing tables and use this one
|
||||||
RemoteFile="$(curl -s -S -f "https://gw01.herpf.fff.community/ffdns/icvpn-acl.conf")"
|
RemoteFile="$(curl -s -S -f "$RemoteACL")"
|
||||||
if [ -n "$RemoteFile" ]; then
|
if [ -n "$RemoteFile" ]; then
|
||||||
echo "$RemoteFile" > "$IncludeFile"
|
echo "$RemoteFile" > "$IncludeFile"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue