Update over Proxy

ramsed

New Member
Jul 10, 2005
2
0
1
Hi all,

I've just installed Proxmox on a VMWare Machine and it works great. Unfortunately my PC is currently behind a HTTP-Proxy and I am not able to connect to the Internet directly in the WEB-Admin interface for Updates.

Is there any solution providing the Update-System with the Proxy's Adress, Port and User-id & Password ?

Thanks,

David
 
Hello ramsed!

If you are using a transparent proxy this should be no problem.

Otherwise you can add a proxy manually:

1) Connect to your proxmox mail agteway via ssh
2) First open /var/lib/proxmox/templates/freshclam.conf.in
3) Add HTTPProxyServer your.proxy.tld
4) Then type "proxconfig -s" to syncronize the new configuration

Be aware, that you have to do step 1-4 after every installation, update and/or backup restore.

We have decided to include a possibility to configure this via web interface
in one of the next versions.

regards,
Christian
 
Proxy with Authentication

Hello,

we also have a Proxy-Server, but we are using authentication.

Which settings are necessary to connect over this proxy

Regards
Andreas
 
See man freshclam.conf for a detailed description of all options. The following 4 options are useful for Proxies:

Code:
HTTPProxyServer STR, HTTPProxyPort NUM
              Use given proxy server and TCP port for database downloads.

HTTPProxyUsername STR,HTTPProxyPassword STR
              Proxy usage is authenticated through given  username  and  pass-
              word.
              Default: no proxy authentication

(Be aware that you have to apply those changes after each software update)
 
Other Problem with update via Proxy

First thanx for your Help, i've found out, that our Proxy does not accept "normal" authentication, only via windows ntlm, so we created a user for it.

BUT:
I have removed the autentication data and since that, the automatic updates doesnt work anymore.

If i manually update the ClamAV it works fine,
here can you see my "freshclam.conf.in":

Code:
   DatabaseOwner clamav
   LogSyslog
   MaxAttempts 5
   Checks 24
   DatabaseMirror __SYSTEM:CLAMAV:DBMIRROR__
   NotifyClamd
   DNSDatabaseInfo current.cvd.clamav.net




   ~
   ~
   ~

Regards
GWAdmin[/img]
 
Did you run "proxconfig -s" (or press save on the web interface (Virus detector configuration tab))?

After that the file /etc/clamav/freshclam.conf should look like:

Code:
DatabaseOwner clamav
LogSyslog
MaxAttempts 5
Checks 24
DatabaseMirror database.clamav.net
NotifyClamd
DNSDatabaseInfo current.cvd.clamav.net

Please can you verify that. What happens if you run freshclam on the console?

- Dietmar
 
Other Problem with update via Proxy

Yes, the /etc/clamav/freshclam.conf looks exacty like the template, but (also in the template) i have 4 lines of spaces, is that maybe the failure??

i also did the proxyconfig -s

- Andreas
 
So what exactly does not work? What happens if you run freshclam on the console? Is there something in the logs (/var/log/syslog)?

- Dietmar
 
No Automtic freshclam

dietmar said:
So what exactly does not work? What happens if you run freshclam on the console? Is there something in the logs (/var/log/syslog)?

- Dietmar

So, the updates runs correct, if i make it manually, only the automaic updates are not running

Manually Update:
Nov 23 11:59:03 freshclam Clamd successfully notified about the update.
Nov 23 11:59:03 freshclam Database updated (41270 signatures) from database.clamav.net (IP:
81.223.20.171)
Nov 23 11:59:03 freshclam daily.cvd updated (version: 1185, sigs: 1645, f-level: 6, builder:
diego)
Nov 23 11:59:02 freshclam main.cvd is up to date (version: 34, sigs: 39625, f-level: 5,
builder: tkojm)
Nov 23 11:59:02 freshclam DON'T PANIC! Read http://www.clamav.net/faq.html
Nov 23 11:59:02 freshclam WARNING: Local version: 0.87 Recommended version: 0.87.1
Nov 23 11:59:02 freshclam WARNING: Your ClamAV installation is OUTDATED!
Nov 23 11:59:02 freshclam ClamAV update process started at Wed Nov 23 11:59:02 2005
Nov 23 11:59:02 freshclam Daemon started.

Automatic update:
cant find any hint about automatic updates of freshclam

- Andreas
 
freshclam runs as background service. To see if the service is running try:

ps -auxww|grep freshclam

or simply make sure the service is running by:

/etc/init.d/clamav-freshclam restart

does that help?
 
dietmar said:
freshclam runs as background service. To see if the service is running try:

ps -auxww|grep freshclam

or simply make sure the service is running by:

/etc/init.d/clamav-freshclam restart

does that help?

have done: seems to work because i have the "ClamAV update process started" in the logfile. Now i'll keep an eye on it and take a look in 1 hour

regards
Andreas
 
AutoUpdate Has worked

Seems that it has worke, because i found the entry "ClamAV update process started" at 14:46 what measn, that is exact 1 hour after i had restarted the daemon :wink:

thanx for your Help :o
regard
Andreas


> Paß auf! Denn nur ein braver Hai
> ißt täglich seinen Haferbrei!


GWAdmin said:
dietmar said:
freshclam runs as background service. To see if the service is running try:

ps -auxww|grep freshclam

or simply make sure the service is running by:

/etc/init.d/clamav-freshclam restart

does that help?

have done: seems to work because i have the "ClamAV update process started" in the logfile. Now i'll keep an eye on it and take a look in 1 hour

regards
Andreas
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!