HTTP Anti-Virus Proxy
http://havp.hege.li/forum/

Havp: connect() failed: Permission denied
http://havp.hege.li/forum/viewtopic.php?f=3&t=350
Page 1 of 1

Author:  lebensgefahr [ 31 Mar 2008 07:11 ]
Post subject:  Havp: connect() failed: Permission denied

Havp+squid works fine more than two months. After upgrading from HAVP 0.86 released to HAVP 0.87 released i have some message in havp log-file. LOGLEVEL set to 0

26/03/2008 16:45:54 connect() failed: Permission denied
26/03/2008 16:45:55 connect() failed: Permission denied
26/03/2008 16:45:55 connect() failed: Permission denied
26/03/2008 16:45:55 connect() failed: Permission denied
26/03/2008 16:45:55 connect() failed: Permission denied
26/03/2008 16:45:55 connect() failed: Permission denied
26/03/2008 16:45:56 connect() failed: Permission denied
26/03/2008 16:46:26 connect() failed: Permission denied
26/03/2008 16:46:26 connect() failed: Permission denied
26/03/2008 16:46:26 connect() failed: Permission denied
26/03/2008 16:46:26 connect() failed: Permission denied

Before upgrading havp started like clamav:clamav, after upgrading it is starting like clamav:havp. Havp ignore that in config-file user and group set to "clamav".

Before upgrading i saw that message but it was two or three times.
In spite of these messages, it works pretty well.
What can i do with havp to remove this message?

Author:  hege [ 31 Mar 2008 07:32 ]
Post subject: 

Hmm..

Code:
The connect() system call will fail if:

     [EACCES]           The destination address is a broadcast address and the
                        socket option SO_BROADCAST is not set.


Is it possible that someone requests to connect to *.*.*.255 IP?

Author:  lebensgefahr [ 31 Mar 2008 07:53 ]
Post subject: 

Thanks for quick answer.
Two days ago i set LOGLEVEL to 1. This is content of log.


31/03/2008 08:48:34 connect() failed: Permission denied
31/03/2008 08:48:34 Could not connect to server (81.19.66.205/raf01.rambler.ru:8080)
31/03/2008 08:48:34 connect() failed: Permission denied
31/03/2008 08:48:34 Could not connect to server (81.19.66.205/raf01.rambler.ru:8080)
31/03/2008 08:48:34 connect() failed: Permission denied
31/03/2008 08:48:34 Could not connect to server (81.19.66.205/raf01.rambler.ru:8080)

I tried to request broadcast address:

31/03/2008 08:56:39 connect() failed: Permission denied
31/03/2008 08:56:39 Could not connect to server (192.168.2.255/192.168.2.255:80)
31/03/2008 08:56:40 connect() failed: Permission denied
31/03/2008 08:56:40 Could not connect to server (192.168.2.255/192.168.2.255:80)


What do you think about?

Author:  lebensgefahr [ 01 Apr 2008 10:42 ]
Post subject: 

HAVP Developer what do you think about my problem?

Author:  hege [ 01 Apr 2008 10:45 ]
Post subject: 

I have no idea, never seen this error before. Only reason it "should" happen is on broadcast address. Maybe there is something funky in your networking.

Author:  hege [ 01 Apr 2008 11:06 ]
Post subject: 

You didn't mention your OS?

Quick googling reveals this:
http://www.dovecot.org/list/dovecot-cvs ... 10316.html

Are you on FreeBSD? Or do you use some packet filtering? Maybe the code needs some additional retries on this error..

Author:  lebensgefahr [ 01 Apr 2008 11:21 ]
Post subject: 

My server OS is FreeBSD 6.2
I use IPFW.

Page 1 of 1 All times are UTC + 2 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/