This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ASG120 V7.502: how to reactivate site-to-site VPN using a script?

Hello, 
We are using several site-to-site ipsec connections. The problem is with 2 partners, that they do not reconnect after a failure.
I do not know why they are disconnected.
What I do at the moment: go into webadmin, deactivate/reactivate the tunnel, then it gets connected.
As it happens very often (daily) I'd like to use a script for this. 
(SSL Login to the ASG)
Does anyone know how?
Client: Windows XP
Astaro ASG120 FW: 7.502

Thank you in advance
Uwe


This thread was automatically locked due to age.
Parents
  • If astaro use ipsec similar to openswan the following should apply.

    You could setup a cron to run a script to do this.  You need to SSH into the device.

    You will need to find out the connection name of the VPN, I think this command should work ipsec auto --status

    Once you know the conn name you can use the following syntax to stop and start the tunnel.

    ipsec auto --down connection name
    ipsec auto --up connection name

    Once you have it scripted use cron to schedule it.
Reply
  • If astaro use ipsec similar to openswan the following should apply.

    You could setup a cron to run a script to do this.  You need to SSH into the device.

    You will need to find out the connection name of the VPN, I think this command should work ipsec auto --status

    Once you know the conn name you can use the following syntax to stop and start the tunnel.

    ipsec auto --down connection name
    ipsec auto --up connection name

    Once you have it scripted use cron to schedule it.
Children
No Data