diff options
author | Jonathan Bauer | 2017-10-13 17:03:54 +0200 |
---|---|---|
committer | Jonathan Bauer | 2017-10-13 17:03:54 +0200 |
commit | fc498ac22159f309e923a4a1d7a7f821338f135b (patch) | |
tree | b4ccdfd8cb6330ee870ae22f7fccd30fdb4814a2 /core | |
parent | [dnbd3-proxy-mode] SLX_BGR for bg replication (diff) | |
download | mltk-fc498ac22159f309e923a4a1d7a7f821338f135b.tar.gz mltk-fc498ac22159f309e923a4a1d7a7f821338f135b.tar.xz mltk-fc498ac22159f309e923a4a1d7a7f821338f135b.zip |
[dnbd3-proxy-mode] generate basic rpc.acl
Diffstat (limited to 'core')
-rwxr-xr-x | core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy b/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy index 1d5d2de2..d84fe9b2 100755 --- a/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy +++ b/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy @@ -90,9 +90,14 @@ add_alt_server ${SLX_DNBD3_PUBLIC} add_alt_server '-' ${SLX_DNBD3_PRIVATE} # To this day, only the sat IP is in SLX_KCL_SERVERS afaik [ -z "${FOUND_SAT}" ] && add_alt_server ${SLX_KCL_SERVERS} - chmod a+Xr "${DNBD3_CONF_DIR}" +# create rpc.acl to allow the satellite only +rm -f "${DNBD3_CONF_DIR}/rpc.acl" +cat <<EOF > "${DNBD3_CONF_DIR}/rpc.acl" +${SLX_KCL_SERVERS} STATS CLIENT_LIST IMAGE_LIST +EOF + rm -f "/opt/openslx/iptables/rules.d/99-dnbd3" # now create iptables helper rules DNBD3_IPTABLES_CONF="/opt/openslx/iptables/rules.d/99-dnbd3" |