diff --git a/onap/gateway/onap-tunnel.service b/onap/gateway/onap-tunnel.service new file mode 100644 index 0000000..6302a44 --- /dev/null +++ b/onap/gateway/onap-tunnel.service @@ -0,0 +1,16 @@ +[Unit] +Description=SSH tunnel for stable neworking connection +ConditionPathExists=|/usr/bin +After=network.target +Conflicts=ssh-tunnel.service + +[Service] +User=cloud +ExecStart=/usr/bin/ssh -NT -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -i /home/cloud/.ssh/intelvm-rsa.key -L 28888:10.7.211.16:1080 onap@onap-1.sc.intel.com + +# Restart every >2 seconds to avoid StartLimitInterval failure +RestartSec=5 +Restart=always + +[Install] +WantedBy=multi-user.target