1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/network/templates/gateway/iiab-internet-on
2021-04-13 00:38:38 -04:00

10 lines
433 B
Bash

#!/bin/bash
sed -i -e "s/^IIAB_GATEWAY_ENABLED.*/IIAB_GATEWAY_ENABLED=True/" {{ iiab_env_file }}
/usr/bin/iiab-gen-iptables
cat << EOF
WARNING: If you want to _permanently_ change your IIAB's default behavior
(i.e. to specify whether student client devices should have Internet or not,
in general!) then modify variable 'iiab_gateway_enabled' in
/etc/iiab/local_vars.yml — and finally run 'cd /opt/iiab/iiab ; ./iiab-network'
EOF