Guest User!

You are not Sophos Staff.

Astaro useful shell commands.

Hi to All.
I'm opening this thread so any of you which happens to run into useful Shell commands, can add it in here.
My goal is to create a document with many Astaro useful shell commands.
You are welcome to add, remark or reject any of the commands in here.
[:)]



This thread was automatically locked due to age.
[unlocked by: BAlfson at 2:53 PM (GMT -7) on 4 Jun 2021]
Parents
  • Enable local URL FIlter Database on Sophos UTM (Astaro ASG) 

    To set the database as local:

    cc set http sc_local_db [mem/disk/none]
    none     - default, don't use local categorization at all use online query as default.
    disk     - use local Database, but use it only on disk. Useful for boxes with little RAM.
    mem     - use local Database, and keep it in memory for faster access.


    Reload the service:
    /var/mdw/scripts/httpproxy restart


    Verify first DB download (Web surfing will be stopped until done - about 370 MB):
    ls -lh /var/chroot-http/var/pattern/sfcontrol


    Verify DB settings:
    cc get http sc_local_db
  • Enable local URL FIlter Database on Sophos UTM (Astaro ASG) 

    To set the database as local:

    cc set http sc_local_db [mem/disk/none]

    /var/mdw/scripts/httpproxy restart
    ..


    Rather than trying the local content filter database, I'd recommend enabling the newer SXL lookups. We've had excellent success switching customers to it, when traditional cf lookup performance was suffering. If you're using web protection in UTM endpoint, then it should be enabled already - but you can manually enable it with the following:

    cc set http use_sxl_urid 1 

    I don't recall if it needs a restart of the proxy, it wouldn't hurt. If you've enabled local cf db already, you'll need to set it to none, and definitely need restart the proxy then.

    sxl lookups use a vastly improved caching mechanism that can greatly improve lookup performance, to rival the local cf database performance, and without the extra memory or disk burden. You also don't have to worry about the local db auto-updating randomly, and disruptively at unpredictable times.
Reply
  • Enable local URL FIlter Database on Sophos UTM (Astaro ASG) 

    To set the database as local:

    cc set http sc_local_db [mem/disk/none]

    /var/mdw/scripts/httpproxy restart
    ..


    Rather than trying the local content filter database, I'd recommend enabling the newer SXL lookups. We've had excellent success switching customers to it, when traditional cf lookup performance was suffering. If you're using web protection in UTM endpoint, then it should be enabled already - but you can manually enable it with the following:

    cc set http use_sxl_urid 1 

    I don't recall if it needs a restart of the proxy, it wouldn't hurt. If you've enabled local cf db already, you'll need to set it to none, and definitely need restart the proxy then.

    sxl lookups use a vastly improved caching mechanism that can greatly improve lookup performance, to rival the local cf database performance, and without the extra memory or disk burden. You also don't have to worry about the local db auto-updating randomly, and disruptively at unpredictable times.
Children
  • Goldy, thx very much for this great article and for keeping it alive!!

    Unfortunately I have lost access to my home-use virtual appliance (v9.0) and can not login anymore, neither on console nor via ssh.
    Trying the steps outlined in "Locked out – How to regain all logins" (just as in the knowledge base article) does not  help. However passwd root in single user mode returns "password changed", I still get "Login incorrect" after reboot. Tried it with lots different passwords to eliminate keyboard layout trouble and mistypings and whatever, but nothing helps.

    Does anybody have any idea where to look any further? I am helpless...  [:S][:O][:S]

    Thx in advance!
    felix