NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

Hossa's avatar
Hossa
Tutor
Feb 11, 2014

Add an option to manually update the virus definition file!

Hello,

we use our ReadyNAS 314 in the company. Everything running pretty good, since the last update to 6.1.6.
The only problem I have is, that the NAS does not have internet access. So it can not update the virus definitions automatically! :-(

It would be great to have one of the following options:
1. Possibillity to "upload" an up-to-date definition file to the NAS by hand. If we can get a hand on this file !?
2. Possibillity to set somewhere the proxy server with user and password for the antivirus to be able to connect to the internet!

Hope I am not the only one with this problem, and that you will give us a solution soon! :-)

Cheers
Hossa

6 Replies

  • Hi,

    thanks for your reply!

    I already tried that. The problem is that the manual update only triggers the "normal" update!
    And, as it doesn't have an internet connection. It can not make an update! :-(

    Any other idea?

    Cheers
    Hossa
  • virus definitions are in:

    /opt/ctch/share

    The best solution is of we can get netgear/av vendor to add option to allow access through proxy servers. This might be as simple as dropping a .avdu_proxy, or ctscan_proxy config (my choice of names - for example only!) file some place under the /opt/ctch directory.

    Best thing for people with similar problems is to submit support ticket to netgear asking that they provide supported solution.

    A quick solution might be for Netgear/av vendor to create an new app that can be installed which performs the download function -- only for machines behind proxies.
  • // C# test for middle server downloading the definitions to a NAS. Have not put error logic in. This is just a test in console. MS VS 2012 on Windows 7.
    // I have not built anything to install the new definitions into the NAS for use. Again this is just a test of the front end download. Remember that just because it works today does not mean it will work in the future.
    // Should really be directed by readyNAS team.
    // We have other vendors that have built what they call a broker html that can be run on a middle device that can download and pass to their devices, very similar to offline loading of apps.
    // This request has been submitted to have us offline users have the benefit of antivirus updates.
    :idea:


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Net;
    using System.IO;


    namespace ConsoleApplication1
    {
    class Program
    {
    static void Main(string[] args)
    {
    string myLoginName = "0001E241P1281I072105";
    string myLoginPassword = "MDAwMUUyNDFQMTI4MUkwNzIxMDU6";
    string myBaseURL = "http://avdl.ctmail.com";
    string myURL = "http://avdl.ctmail.com/csav/deffiles/def5/antivir-hit.ini";

    NetworkCredential myCreds = new NetworkCredential(myLoginName,myLoginPassword);
    CredentialCache credCache = new CredentialCache();
    // Cached credentials can only be used when requested by
    // specific URLs and authorization schemes
    credCache.Add(new Uri(myBaseURL), "Basic", myCreds);

    WebRequest myReq = WebRequest.Create(myURL);
    // Must be a cache, basic credentials are cleared on redirect
    myReq.Credentials = credCache;
    myReq.PreAuthenticate = true; // More efficient, but optional

    WebResponse myResponse = myReq.GetResponse();
    StreamReader responseStreamReader = new StreamReader(myResponse.GetResponseStream());
    String result = responseStreamReader.ReadToEnd();
    responseStreamReader.Close();
    if (result.StartsWith("[Current]\r\ndefId="))
    {
    string myDataString = result.Substring(17,12);
    string myDownloadFile = "http://avdl.ctmail.com/csav/deffiles/def5/antivir-z-" + myDataString + ".zip";
    using (WebClient myWebClient = new WebClient())
    {
    string myFileDest = "\\\\D7InNAS2\\apps\\APPS\\ReadtNAS_Virus_Definitions\\" + myDataString + ".zip";
    if (!File.Exists(myFileDest))
    {
    myWebClient.Credentials = credCache;
    myWebClient.DownloadFile(myDownloadFile, myFileDest);
    }
    }
    }
    }
    }
    }

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More