You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
440 B
13 lines
440 B
#!/usr/bin/env bash
|
|
|
|
# changes in /etc/sympa/auth.conf
|
|
sed -i 's/.*host 192.168.1.254:389.*/ host 127.0.0.1:3890 # remote connection through SSH/' /etc/sympa/auth.conf
|
|
|
|
# start SSH port translation if needed
|
|
if ! ss -tln | grep -q 127.0.0.1:3890; then
|
|
ssh -fN listes.artcode.re -L 3890:192.168.1.254:389
|
|
echo 'SSH port translation 3890 is now active!'
|
|
systemctl restart wwsympa.socket
|
|
else
|
|
echo 'SSH already enabled!'
|
|
fi
|