97,7 → 97,7 |
# Setting SSH port in Alcasar configuration |
SSH_PORT=${SSH_PORT:=22} |
$SED "s/^SSH_WAN=.*/SSH_WAN=$SSH_PORT/g" $ALCASAR_CONF |
LAN_PORT =`$GREP "^SSH_LAN=" $ALCASAR_CONF | cut -d"=" -f2` |
LAN_PORT=`$GREP "^SSH_LAN=" $ALCASAR_CONF | cut -d"=" -f2` |
LAN_PORT=${LAN_PORT:=0} |
# Checking if there is already a port other than the LAN port set |
if [ `grep -E "^.*Port\s[0-9]*" /etc/ssh/sshd_config| grep -vEc "\s$LAN_PORT$"` -gt 0 ] |
131,7 → 131,7 |
# Setting SSH port in Alcasar configuration |
SSH_PORT=${SSH_PORT:=22} |
$SED "s/^SSH_LAN=.*/SSH_LAN=$SSH_PORT/g" $ALCASAR_CONF |
WAN_PORT =`$GREP "^SSH_WAN=" $ALCASAR_CONF | cut -d"=" -f2` |
WAN_PORT=`$GREP "^SSH_WAN=" $ALCASAR_CONF | cut -d"=" -f2` |
WAN_PORT=${WAN_PORT:=0} |
# Checking if there is already a port other than the WAN port set |
if [ `grep -E "^.*Port\s[0-9]*" /etc/ssh/sshd_config| grep -vEc "\s$WAN_PORT$"` -gt 0 ] |