1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Generalize+explain LAN-side 172.18.96.1/255.255.224.0

This commit is contained in:
A Holt 2019-09-04 16:02:07 -04:00 committed by GitHub
parent 785c73d1bc
commit c52c4e9705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,14 +12,15 @@ Alias {{ nextcloud_url }} {{ nextcloud_prefix }}/nextcloud
# PERMIT ACCESS FROM ALL IPv4 ADDRESSES:
Require all granted
# PERMIT ACCESS FROM THESE IPv4 ADDRESS RANGES ONLY:
#Require ip 127.0.0.1 172.18.96.1/255.255.224.0 192.168 10
#Require ip 127.0.0.1 {{ lan_ip }}/{{ lan_netmask }} 192.168 10
{% else %}
# PERMIT ACCESS FROM ALL IPv4 ADDRESSES:
#Require all granted
# PERMIT ACCESS FROM THESE IPv4 ADDRESS RANGES ONLY:
Require ip 127.0.0.1 172.18.96.1/255.255.224.0 192.168 10
Require ip 127.0.0.1 {{ lan_ip }}/{{ lan_netmask }} 192.168 10
{% endif %}
# AVOID THIS LINE WHICH CAUSES PROBLEMS IN SCHOOLS WITH 192.168.1.x etc:
{# Reminder that {{ lan_ip }}/{{ lan_netmask }} is 172.18.96.1/255.255.224.0 #}
# AVOID THIS LINE AS IT OVERLY RESTRICTS SCHOOLS W/ 192.168.1.x, 10.x.y.z:
#Require ip 127.0.0.1 {{ lan_ip }}/{{ lan_netmask }} {{ nextcloud_required_ip }} {{ openvpn_server_virtual_ip }}/255.255.255.0
</IfModule>
<IfModule !mod_authz_core.c>