Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

IPv4 and IPv6 conflict?

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


max at iukkoth

Jan 29, 2010, 1:41 PM

Post #1 of 2 (663 views)
Permalink
IPv4 and IPv6 conflict?

Hello all,

I seem to be experiencing a problem with Cherokee 0.99.38, running on Debian 5, where I am trying to restrict access to a given directory rule based on IP address. I can either set a list of IPv4 address or IPv6 address but not both at the same time.

I am binding both my IPv4 address and IPv6 address in Cherokee's general settings to port 80. This seems to be working.

First I set up one virtual server and attempted to use both IPv4 and 6 addresses in the same rule. This Cherokee the server to crash. Setting only IPv4 or 6 addresses worked without problem.

So I thought I would try to create a new virtual server and separate the IPv4 and 6 addresses, e.g. static.iukkoth.net/secure (static.iukkoth.net being the IPv4 virtual server) and ipv6.iukkoth.net/secure (ipv6.iukkoth.net being the IPv6 virtual server). This caused the same problem as before. The server will not launch with both IPv4 and 6 even if they are sequestered to different virtual servers.

Also on a side note, when I attempt to restart Cherokee with the former settings (both IPv4 and 6), a memory leak seems to be opened, as Python (the Cherokee processes run through it) eat more than 200% of the CPU. Restarting Python resolves this issue.

Is there another method for securing directory rules based on IP address I should be using to resolve this conflict?

I appreciate any insight into the issue, thank you,


Max Countryman
Attachments: smime.p7s (4.54 KB)


alvaro at octality

Feb 8, 2010, 3:31 AM

Post #2 of 2 (616 views)
Permalink
Re: IPv4 and IPv6 conflict? [In reply to]

On 29/01/2010, at 22:41, Max Countryman wrote:

> I seem to be experiencing a problem with Cherokee 0.99.38, running on Debian 5, where I am trying to restrict access to a given directory rule based on IP address. I can either set a list of IPv4 address or IPv6 address but not both at the same time.
>
> I am binding both my IPv4 address and IPv6 address in Cherokee's general settings to port 80. This seems to be working.
>
> First I set up one virtual server and attempted to use both IPv4 and 6 addresses in the same rule. This Cherokee the server to crash. Setting only IPv4 or 6 addresses worked without problem.

I'm afraid you did hit a bug here. The patch is already committed and will be shipped with the next server version:

http://svn.cherokee-project.com/changeset/4209

Thanks a million for reporting the issue!

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.