Guest User!

You are not Sophos Staff.

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

Run process (shutdown and restart one VPN Tunnel) based on automatic process variable imput

I need to run one shutdown and turn on VPN tunnel based on one external parameter.

How I can do this in automatic way?

I can reach access to Terminal Firewall interface and I cannot find the CLI available commands to work with it?

There is another way to run firewall process in base on external issues? The UTM can provide any kind of Web Service? Or another way to run procedures in the FW?

 

Thanks in advance.

Gabriel.



This thread was automatically locked due to age.
  • Hi Gabriel,

    I am unable to understand your requirement , are you trying to restart IPSec services through CLI ? 

    Thanks

    Sachin Gurung
    Team Lead | Sophos Technical Support
    Knowledge Base  |  @SophosSupport  |  Video tutorials
    Remember to like a post.  If a post (on a question thread) solves your question use the 'This helped me' link.

  • Let's assume you have an IPsec connection "Gabriel" that you want to enable.  At the command line as root, type in

    cc
    ipsec
    connections
    exit

    Let's assume that included in the result is a line 0 'REF_SitGabriel' [Gabriel].  Enable it with

    cc change_object 'REF_SitGabriel' status 1

    Similarly, you can disable it with

    cc change_object 'REF_SitGabriel' status 0

    Was that your question?

    Cheers - Bob

    EDIT: Corrected line to disable - thanks to fellow member teched!

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Excelent Bob, this is just the point that i need.

    Thanks a lot.

    Gabriel.