Koozali.org: home of the SME Server

Updating the Antivirus definition through proxy on LAN

Offline vedad

  • 2
  • +0/-0
Updating the Antivirus definition through proxy on LAN
« on: December 31, 2009, 12:07:54 PM »
HI all,

I am new user of SME Server and have one problem. Firs to note that I am using it in a "Server only" mode.
I have two networks in my company. One network (let's call it LAN1) has a gateway to Internet and the other (LAN2) has a proxy (port 8080) which regulates who can go outside (trough gateway on LAN1) and what he can access.
My SME Server is connected to LAN2, so it doesn't have a direct access (gateway) to the Internet.

The only thing I want to access outside my LAN2 with SME Server is Antivirus update website.

How can I configure this on the SME?

Thank you all in advance.

Cheers,
Vedad

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Updating the Antivirus definition through proxy on LAN
« Reply #1 on: December 31, 2009, 12:41:05 PM »
Hi Vedad, welcome here

open a shell as root and give

Code: [Select]
config setprop clamav HTTPProxyServer your_proxy_ip
config setprop clamav HTTPProxyPort your_proxy_port
expand-template /etc/freshclam.conf
runsvctrl t /service/freshclam

it should do the trick

HTH

Offline vedad

  • 2
  • +0/-0
Re: Updating the Antivirus definition through proxy on LAN
« Reply #2 on: December 31, 2009, 01:15:05 PM »
Hi Stefano,

thanks a lot for your quick response. I tried your suggestion and first three commands worked smoothly. The third one "runsvctrl" said that the command does not exist. As I said I am new with this and have no idea what this one does and what is the problem.

Another thing, I said my antivirus definition to be updated daily. Now I want to update it manually by force. Is there a command to do this?

Thanks again,
Vedad

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Updating the Antivirus definition through proxy on LAN
« Reply #3 on: December 31, 2009, 01:35:41 PM »
thanks a lot for your quick response. I tried your suggestion and first three commands worked smoothly. The third one "runsvctrl" said that the command does not exist. As I said I am new with this and have no idea what this one does and what is the problem.

well, try
Code: [Select]
service freshclam restart

Quote
Another thing, I said my antivirus definition to be updated daily. Now I want to update it manually by force. Is there a command to do this?

well, simply call
Code: [Select]
freshclam

HTH