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

Release Cleanup of validate_vars, default_vars, local_vars, Stages 0-4, SSHD

This commit is contained in:
root 2020-09-24 19:01:11 -04:00
parent dbd1f37e74
commit ac22723b43
15 changed files with 145 additions and 66 deletions

View file

@ -43,7 +43,7 @@
lineinfile:
dest: /etc/avahi/services/ssh.service
regexp: '</port>$'
line: ' <port>{{ ssh_port }}</port>'
line: ' <port>{{ sshd_port }}</port>'
state: present
backrefs: yes

View file

@ -46,7 +46,7 @@ echo -e "WAN: $wan\n"
ports_externally_visible={{ ports_externally_visible }}
#services_externally_visible= [deprecated]
gw_block_https={{ gw_block_https }}
ssh_port={{ ssh_port }}
sshd_port={{ sshd_port }}
#gui_wan= [no longer needed]
gui_port={{ gui_port }}
iiab_gateway_enabled={{ iiab_gateway_enabled }}
@ -132,7 +132,7 @@ if [ "$wan" != "none" ]; then
# 1 = ssh only
if [ "$ports_externally_visible" -ge 1 ]; then
$IPTABLES -A INPUT -p tcp --dport $ssh_port -m state --state NEW -i $wan -j ACCEPT
$IPTABLES -A INPUT -p tcp --dport $sshd_port -m state --state NEW -i $wan -j ACCEPT
fi
# 2 = ssh + http-or-https (for Admin Console's box.lan/admin too)