Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ziproxy doesn't start when listening port is 80
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mistreated
n00b
n00b


Joined: 03 Dec 2006
Posts: 26
Location: Riga, Latvia

PostPosted: Wed Aug 25, 2010 8:18 pm    Post subject: ziproxy doesn't start when listening port is 80 Reply with quote

I have
Code:
Port = 80
in /etc/ziproxy/ziproxy.conf and ziproxy fails to start.

Code:

# /etc/init.d/ziproxy start
 * Starting ziproxy ...
FATAL ERROR (daemon): Failed to connect socket for receiving connections (port: 80).             [ !! ]


Seems that it doesn't start with any port number less than 1024, but works fine with 1024 and above. I was trying different version of ziproxy, currently i have the latest ziproxy-3.1.3.
Does ziproxy support listening port below 1024?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15995

PostPosted: Wed Aug 25, 2010 9:56 pm    Post subject: Reply with quote

Since 1024 is the magic number for privileged ports, my guess would be that the proxy drops privileges before it binds its socket. Since you started it with root privileges, it would have been able to bind the socket if operations had been done in a different order. A run under dev-util/strace would confirm or disprove my theory. If I am right, you could work around it by disabling the uid change (unsafe) or patching the code to do the operations in a better order.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum