Hi Hugo, On Sat, May 04, 2013 at 08:05:54PM +0100, Hugo Silva wrote: > Hello, > > I've been going through the docs and attempting several solutions but > without any success so far. What we need is to capture the 1st packet of > a xmpp connection and based on the 'to="domain"', decide which server > (for now they're in the same backend, unsure if this would make better > sense in the frontend) to send the request to. > > A naive attempt was using payload(X,Y) on an acl and then trying to > match it, but in time (as the acl became broader and broader to the > point it HAD to match, but didn't) it because obvious that it couldn't > be done this way. > > I suspect the solution lies somewhere in the use of stick table and > similar configuration options, but I have been unable to come up with > the right syntax to express the idea. > > > From what I understand, we would need to create a table of type string > (maybe binary? not sure), then somehow put the captured buffer in this > table, and finally somehow use "use-server bla if $someacl" that makes > use of the table.
No, the use-server rule should work. There might be something else or even a bug. Did you ensure to use the inspect delay to wait for the data to come ? Willy

