Restart IPSec-Tunnel via script

Hi,

how can I restart an IPSec-tunnel via script? I just don't want to stop and start a connection on the Webinterface ("IPSec Connections"). 
Parents
  • /etc/wfe/conf/ipsecconnections
    There you will find all your IPSec-Connections. You can disable or enable one by settings "status = 0" or "status = 1".

    For example make a cronjob (in /etc/crontab.yourname) that replaces the existing /etc/wfe/conf/ipsecconnections with another one. Then "sleep 5". Then replace the conf again.

    Do you know what I mean. You could make a perl-script, too.

    2x4x  
Reply
  • /etc/wfe/conf/ipsecconnections
    There you will find all your IPSec-Connections. You can disable or enable one by settings "status = 0" or "status = 1".

    For example make a cronjob (in /etc/crontab.yourname) that replaces the existing /etc/wfe/conf/ipsecconnections with another one. Then "sleep 5". Then replace the conf again.

    Do you know what I mean. You could make a perl-script, too.

    2x4x  
Children