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

Reset Allowed Network

¡Hola!

Me interesa saber cómo puedo restablecer las redes permitidas en Sophos a través de SSH. Sé que esto se puede hacer de la siguiente manera:
SSH:
DC
webadmin
allowed_networks @
= [ 'REF_Networkany']

Sin embargo, lo que necesito es hacer esto en una sola línea, estaba investigando y lo intenté:

cc set webadmin allowed_networks ['REF_NetworkAny']

intenta también:

cc set webadmin allowed_networks "['REF_NetworkAny']"

Desafortunadamente, esto no funcionó para mí. ¿Alguien ha hecho esto? ¿Usted me podría ayudar?

Gracias



This thread was automatically locked due to age.
Parents
  • ¡Hola Eduaro!

    Well, I don't think that's possible without doing some fancy Linux scripting, and I don't know that we have anyone here with those skills.  Based on what I've seen before, the following might work or it might destroy your configuration.  I would definitely get a backup before trying this and be ready to restore it from the command line:

    # echo -e 'webadmin\n allowed_networks@\n =["REF_Networkany"]\n' | cc --batch

    To check the result:

    cc get webadmin allowed_networks

    Did that do what you want?

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Reply
  • ¡Hola Eduaro!

    Well, I don't think that's possible without doing some fancy Linux scripting, and I don't know that we have anyone here with those skills.  Based on what I've seen before, the following might work or it might destroy your configuration.  I would definitely get a backup before trying this and be ready to restore it from the command line:

    # echo -e 'webadmin\n allowed_networks@\n =["REF_Networkany"]\n' | cc --batch

    To check the result:

    cc get webadmin allowed_networks

    Did that do what you want?

    Cheers - Bob

     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
Children