NAT3 / entrypoint.sh
Fred808's picture
Update entrypoint.sh
eecc4ab verified
raw
history blame contribute delete
348 Bytes
#!/bin/bash
set -e
echo "Starting SSH/SOCKS5 Gateway..."
# Ensure SSH host keys exist
if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
ssh-keygen -A
fi
# Start SSH
/usr/sbin/sshd -D -e -f /etc/ssh/sshd_config &
echo "SSH server started."
# Start Dante
/usr/sbin/danted -D &
echo "Dante SOCKS5 server started."
# Stay alive
exec tail -f /dev/null