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

restart httpproxy

Hello,

we have an asg 220 and I want to know how I can stop/start the httproxy process within putty and the ASG webadmin.
How can make a cronjob to restart a process or is that not allowed?


This thread was automatically locked due to age.
  • You know, it's funny you mention a cron job, I've actually tried this myself, and despite it showing up in the log as having been run, it never seemed to actually run my script.  I've not had time to dig into this in detail, it's entirely possible my script was fubar'd.

    You should be aware that any changes done in the back-end outside of WebAdmin will void your support agreement with Sophos, you will have to re-image and restore a backup before they can help you with any problems.

    This is the script you're looking for, it responds to the normal 'start' and 'stop' commands. (on 9.100-16 at least)
    /var/mdw/scripts/httpproxy
  • is possible to use AT command ? 
    Edit : again i am a home user 

    thx
  • is possible to use AT command ? 
    Edit : again i am a home user 

    thx



    utm:/home/login # which at
    /usr/bin/at


    Guess so.
  • Ok, when I run out of our support agreement I think about it again. 
    I have a problem with our RAM. The memory SWAP usage is always bigger than the Memory usage. 
    Without IPS: 
    RAM usage 75% (Avarage)
    SWAP usage 80% (Avarage)
    With IPS
    Memory usage 85% (Avarage)
    SWAP usage 98% (Avarage)
    Where can I find an approach.
  • What version are you running, and what components have you got turned on?  

    Resource Consumption Checklist
  • We have about 60 Employee
    2 * ASG 220 V8.309
    Everything without
    - Email Encryption
    - Network visibility
    - Wireless security
  • Hi  ,

    Want you can do ,you can disable http with this option and start again this will help you !

    from dashboard Web protection >web filtering  disable wait for 1 min and again enable it 
    same thing you can do with ips/ids but for for 3 mints or more for ips/ids it take more time to load 

    this will not void any thing hopefully (will it ? )

    edit:my own observation is  (on my system ) when swap usage is more then ram usage browsing become dam slow some time connection timeout 

    thx
  • hippo, please [Go Advanced] and attach pictures from 'Reporting >> Hardware' for 'Weekly' 'CPU' and 'Memory'.  Also, tell us what you have in 'Local networks' for 'Intrusion Prevention', and confirm that you have completed the 'Advanced' tab there.

    Cheers - Bob
  • Hi,
    I have complete the advanced tab with our Servers and here is the Memory Report from last week
  • Since the UTM Version 9.0 and 9.1 have this memory leak and SWAP usage issue, I also did a little putty script to restart the http proxy and snort (IPS) automaticly.

    With a configured cronjob you would lose the support from astaro and the feature request for scheduled restarts was denied, this is the only way for a few of my customers to regulate the performance impacts which will hit over time with growing SWAP. 

    Only the root user will have sufficent rights to restart the services, so first of all, we have to enable the shell access for the root user (Management->System Settings->Authentification ->> root access but only with ssh key)

    Therefore we first need an ssh key. This key is generated with the PuTTYgen Tool. Two keys are generated, a public and a private. The public key has to be loaded into the UTM. The private key will be used to identify our "script" as root. Save both keys!

    Now we make a little batch file (I'm a Windows [;)]) with a code like this:
    "C:\Program Files\PuTTY\putty.exe" root@192.168.0.254 -i "C:\Program Files\PuTTY\privkey.ppk" -m "C:\Scripts\astarocommands.txt"
    exit


    In this example 192.168.0.254 is the IP-Adress of my UTM appliance. With the "-i" we give the path to the private ssh key we generated in the first step. The "-m" command specifies the path to a .txt file which will be executed.

    The content of the astarocommands.txt file.

    /var/mdw/scripts/httpproxy restart
    /var/mdw/scripts/snort restart
    exit


    Of course there could be other commands in this text file, you could also restart the whole appliance, but in my case this was sufficent.

    So now I just made a scheduled task in Windows and let this batch file run once a week on sunday midnight.

    Done. Hope this helps till Sophos really fixes this memory and swap issue or permit the RAM upgrade....