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

Local WebFilter DB

Hi All,

   I runs the steps below to run the webfilter DB on my ASG.

Su root
cc set http sc_local_db disk mem or disk
/var/mdw/scripts/httpproxy restart


   But anyone know how can I check if the db is running correctly on ASG ?

thx.


This thread was automatically locked due to age.
  • You can check if it works by watching the file size and date in /var/chroot-http/var/pattern/sfcontrol. There should be a large file (~380MB) in there.

    Regards
    Manfred
  • Hi Barry and hallowach, thx by the answers,

       Sorry by my mistake, I write mem or disk in the post but in the console I write disk, and the return of the command was "1".

       After this the proxy was successfuly restarted 
    :: Restarting httpproxy
    :: Stopping httpproxy                     done
    :: Starting httpproxy                      done


    Then i start to check with ls command the creation of the file in the "/var/chroot-http/var/pattern/sfcontrol" directory but nothing was created.

    Anyone know why ?

    thx.

    Marc
  • I don't know if it makes a difference but maybe su - root is necesarry to change the environment for the session. Does cc get http sc_local_db show your setting?

    Regards
    Manfred
  • Hi Manfred, thx again by your update.

       yes, as you see below, the command show "disk" as answer, but see also that i do "ls" and dont have any file created in the directory.


    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # cc get http sc_local_db
    disk
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol #

    Very strange right  ?

    Marc
  • Marc what happens if you re-run 
    /var/mdw/scripts/httpproxy restart

    does anything show up in the pattern/sfcontrol folder then?
  • Hi AlanT, thx by your participation.

    I do the httpproxy restart, after this the I don't know if was a file or directory named as sfcontrol start to show in the ls command but some seconds after this sfcontrol was disapear.



    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # /var/mdw/scripts/httpproxy restart
    :: Restarting httpproxy
    :: Stopping httpproxy                                                                                        done
    :: Starting httpproxy                                                                                        done
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    sfcontrol
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    sfcontrol
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    sfcontrol
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # dir
    total 0
    -rw------- 1 httpproxy httpproxy 0 Aug 14 17:30 sfcontrol
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # dir
    total 0
    -rw------- 1 httpproxy httpproxy 0 Aug 14 17:30 sfcontrol
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    sfcontrol
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # cd sfcontrol
    bash: cd: sfcontrol: Not a directory
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    sfcontrol
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    sfcontrol
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # dir
    total 0
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol # ls
    astaro:/var/storage/chroot-http/var/pattern/sfcontrol #
  • that is the correct file name showing up briefly. since it stays 0 bytes, then disappears, i am guessing that the file download is timing out before any data can be received. Is there anything upstream from your UTM that could be blocking it?
  • Hi AlanT,
       
       I think that dont have blocks between this way because we dont have nothing in the front of the ASG, the topology is:

    Local Network -> ASG -> Modem of Link -> Internet

    Any fw rule in ASG are necessary to do that ?

    thx.
  • Hi AlanT, just to complement the post above.

    I create a firewall rule allow the internal address to any in any protocol and do the restart again and the same happen.

    :-(