Src IP HTTP header insertion problem

I have configured a vserver to loadbalance to 2 proxy servers over TCP port 8080.
I use a policy to insert the source ip address of the client workstation to be
inserted in the HTTP header.
We use the same vserver to loadbalance HTTPS traffix.
Appearantly the CSM also tries to insert the ip address when HTTPS traffic
is passing this vserver.
Is this a correct beheavior? How can I solve this one?
Thanks!
Regards Wim

Actually mozilla lets you specify different ports for proxy http and proxy https.
Anyway, are the servers behing your CSM proxy servers ?
Do you have 'persistent rebalance" configured ?
If so, could you try to turn do 'no persistent rebalance' and see if that solves your problem.
Normally, https connection via a proxy are still done with HTTP connection with the request "CONNECT x.x.x.x:443" and the CSM should be able to inset the requested info.
But we need to avoid the CSM to inspect further packets as this would be ssl traffic -> so disable peristent rebalance.
Just an idea.
Regards,
Gilles.

Similar Messages

  • HTTP header insertion problem with ACE

    Hi
    I try to configure the HTTP header insertion feature based on the action-list type modify http. Unfortunately it does not works.
    The config looks like that
    action-list type modify http TEST
    header insert both Host header-value test:test.
    I added this action-list to the correct policy-map.
    When I checked the snifer output on the server side, there is no test value in the HTTP header.
    I test the same feature based on the "insert-http" command in the policy-map and this one works.
    Could anybody help me with this problem?
    Thank you in advance
    Regards
    Lucas

    Hi Lukas,
    Add a new parameter-map named PRMAP_PERST_REBLNC and add this to the policy map using command appl-parameter http advanced-options PRMAP_PERST_REBLNC as shown below:
    action-list type modify http test-insert
    header insert both My-Header header-value test
    header insert both SSL header-value TRUE
    policy-map type loadbalance http first-match HtppInsert
    class class-default
    serverfarm linux1-80
    action test-insert
    policy-map multi-match SLB1
    class VIP-122-80
    loadbalance vip inservice
    loadbalance policy HtppInsert
    loadbalance vip icmp-reply active
    loadbalance vip advertise active
    loadbalance vip advertise metric 1
    connection advanced-options SetTos
    appl-parameter http advanced-options PRMAP_PERST_REBLNC
    parameter-map type http PRMAP_PERST_REBLNC
    persistence-rebalance
    Hope this will make all the packets are inserted with the http header not the first one only.
    If it works then plz inform.
    Kind Regards.
    Sachin Garg

  • Http header insertion with MSISDN

    Hi
    I know that we can define a http header insertion on the ACE to insert a custom header and a string in to the value. Is there a way for me to insert a dynamic string read from a database in to the value field. My exact requirement is to insert the MSISDN of mobile subscribers in to their http traffic. The MSISDN can be extracted form the Radius accounting messages
    Any ideas, I have no clue as to how to do such a thing.
    thanks

    I don't know about this feature. I think it's not possible. ACE can insert/generate only cookie. All other L7 methods (e.g. http header) are using existing data in communication.
    MSISDN inserting to http header/uri is role of wap-gw, or something like that device in data flow process.
    martin

  • ACE One-Arm Source-NAT HTTP Header Insert

    Hellow ACE Gurus,
    This is probably a dumb question but I'm looking for info on HTTP Header Insert for SSL sessions.  Does the HTTP header re-write action list work for SSL traffic?  I guess I'm not clear on whether or not the header is encrypted and if the ACE can modify on an HTTPS session.  Any input would be greatly appreciated.
    /r
    Rob

    Hi Rob,
    When using HTTPS, all the data is encrypted, including the HTTP headers.
    In such a situation, if you want to insert headers (or do any other kind of L7 processing), you will have to configure the ACE to do SSL termination. Once the connection is decrypted, the ACE can do any processing it needs before sending the connection towards the server either in clear text or again using HTTPS.
    I would recommend you to have a look at the link below. This is an example of how to configure an ACE for end-to-end SSL (so, HTTPS on both sides of the ACE). In the example, the only L7 processing that is being done is matching on the URL, but it would be enough to replace that part with whatever header insertion commands you need
    http://www.cisco.com/en/US/partner/products/hw/modules/ps2706/products_configuration_example09186a00809c6f37.shtml
    If you still need more help to understand any of the points involved in the process, please, do not hesitate to contact me again.
    Regards
    Daniel

  • HTTP Header SOAPAction Problem

    hi Everyone,
    this is an extract of my test soap program:
    SOAPConnectionFactory soapfactory = SOAPConnectionFactory.newInstance();
    SOAPConnection connection = soapfactory.createConnection();
    URL endpoint = new URL("http://url.asmx");
    MessageFactory messagefactory = MessageFactory.newInstance();
    SOAPMessage message = messagefactory.createMessage();
    SOAPPart soapPart = message.getSOAPPart();
    SOAPEnvelope envelope = soapPart.getEnvelope();
    SOAPBody body = envelope.getBody();
    soapFactory = SOAPFactory.newInstance();
    Name insertNewUser = soapFactory.createName("insertNewUser","","namespace");
    SOAPBodyElement bodyElement = body.addBodyElement(insertNewUser);
    response = connection.call(message, endpoint);
    response.writeTo(System.out);
    connection.close();when i send the call, this the response from the server:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="...">
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Client</faultcode>
    <faultstring>Server did not recognize the value of HTTP Header SOAPAction:.</faultstring>
    <detail />
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>
    This is my question:
    How can I set the HTTP Header SOAPAction?
    Thanks.
    Roberto

    Hi try out the following code.
    MimeHeaders hd = message.getMimeHeaders();
    hd.addHeader("SOAPAction", "http://tempuri.org/HelloWorld");This will add the SOAP Action header to ur HTTP headers.
    Regards
    Aditya

  • HTTP header size problem

    We have been using weblogic to serve the jnlp for a while now (there is a servlet that generates jnlp and sends to client) without any problems. Yesterday the following error occurred for the first time and the server stopped working. Does anyone have a clue as to in which situation can the header size exceed this limit? After restarting the server, it started working properly again.
    weblogic.socket.MaxMessageSizeExceededException: [Incoming HTTP request headers of size 4129 bytes  exceeds the configured maximum of 4096 bytes]
    at weblogic.socket.MuxableSocketHTTP.incrementBufferOffset(MuxableSocketHTTP.java:111)
    at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:245)
    Thanks.

    My first reaction was that if you are using version protocol, and if you had many versions of some resources in the cache, maybe the request from java web start kept growing with each version.
    http://xxx.com/yyy/zzz.jar version="1.9"&current_version="1.1"&current_version="1.2"&current_version="1.3"...
    but in that case can't see how restarting the server would help.
    /Dietz

  • Header Insert Statistics on SSL Module

    Hi,
    I use an SSL Module running SW 2.1.8. Within ouput of "sh ssl-proxy stats hdr" I have a lot of "Service Errors" without any configured http header insertion policy.
    Any idea what could cause this ??
    Any answer is appreciated.
    Volker Kreisel
    Header Insert Statistics:
    Session Headers Inserted : 0 Custom Headers Inserted : 0
    Session Id's Inserted : 0 Client Cert. Inserted : 0
    Client IP/Port Inserted : 0
    No End of Hdr Detected : 0 Payload no HTTP header : 0
    Desc Alloc Failed : 0 Buffer Alloc Failed : 0
    Client Cert Errors : 0 Malloc failed : 0
    Service Errors : 28730384 Conn Entry Invalid : 0
    Buffers allocated : 0 Buffers Scanned : 0
    Insertion Points Found : 0 Header Overflow : 0
    End of Header Found : 0 Buffers Accumulated : 0

    CSCsb82589
    show ssl-proxy stats hdr counter Service Errors is erroneously increment
    This has been fixed in 3.1.1 and will be fixed soon in the next 2.1 release.
    Regards,
    Gilles.

  • Problem adding HTTP header to request

    Hi all,
    My company is wanting to access our Adobe Connect through our
    SAP portal without requiring the user to stop and enter their Adobe
    Connect password.
    The documentation available says that this should be possible
    using a combination of SAPSSOEXT (to interrogate the SAP ticket and
    authenticate the user coming from the SAP portal) and HTTP header
    authentication within Adobe Connect (by inserting the authenticated
    username into a custom HTTP header).
    However the problem is that I'm intending to use Java, but I
    can't find any Java functionality that will allow me to add a
    header into an HTTP request.
    Has anyone done anything like this before? Any ideas on how
    to go about it?
    Thanks in advance,
    David

    In 10.1.3.5, there were several examples or samples in the Oracle BPEL folder. I think there were ones called HTTPGetService and HTTPPostService. You might check to see if they are still around.

  • Problem setting Unicode (utf-8) in http header using tomcat

    Hi:
    I am trying to set a file name in utf-8 to http header using the following code:
    response.setContentType("text/html; charset=utf-8");
    response.setHeader("Content-disposition", "attachment; filename=&#35299;&#27770;.zip");
    // I actually has file name in utf-8 here to set to the header, and I know that the name is correctly
    // and I also looked into the response object MimeHeaders object and saw the head is correctly there
    then write the content of zip file using ServletOutputStream.
    The problem I have is that the file name is not displayed correctly when prompted to save or open in the pop up window next. I found out using Fiddler that the request header is wrong:
    Content-disposition: attachment; filename=&#65533;zn&#65533;�.zip
    I am using Tomcat 5.0.28. Any idea how to get this working?
    Thanks in advance!

    You are setting the charset for the content to be UTF-8. (That is why the method is called setContentType.) But HTTP headers are not part of the content and so that has no effect on the header.
    The original specification for HTTP only allowed US-ASCII characters in headers. It is possible that more recent versions have features that allow for non-ASCII header data, but I don't know if that is the case or how you would use those features if they exist.

  • Custom Inserted HTTP Header not showing up in Iplanet Logs

    ALL:
    I have some iPlanet Enterprise/6.0 web servers sitting behind a LoadBalancer. The LoadBalancer is setup in an 'one-armed mode', and takes a client HTTP request passes it onto the server, but during this process, changes the client source IP to that of local static IP that the LoadBalancer has. Due to our setup we cannot change this.
    By changing the client source IP to a local address, we have lost any useful user session tracking that was done by source IP.
    To get around this, I have the LoadBalancer inserting an HTTP header with the client real source IP. Reading the NSAPI Programmer's Guide (Table 7-1 "http://docs.sun.com/source/816-5686-10/07_magnu.htm"), there is an option "%Req->headers.headername%" that can be used with 'flex-int' to log any header value.
    My output from snoop looks as follows:
    HTTP: ----- HyperText Transfer Protocol -----
    HTTP:
    HTTP: GET /plugin.do HTTP/1.1
    HTTP: OrigClientAddr:10.5.4.28
    HTTP: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    HTTP: Accept-Language: en-us
    HTTP: Accept-Encoding: gzip, deflate
    HTTP: User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
    HTTP:
    I have set the value to "%Req->headers.OrigClientAddr%" and it still does not show up in the log file. Any clues?
    Works fine in Apache with:
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{OrigClientAddr}i\" \"%{User-Agent}i\"" headerinsert
    CustomLog logs/access_log headerinsert

    Always nice to find resolution to one's own question.
    Fix was to change the header value to all lower case.
    From:
    "%Req->headers.OrigClientAddr%"
    To:
    "%Req->headers.origclientaddr%"

  • OSB http Header Problem

    Hello all,
    (I hope I'm right here with my Oracle Service Bus problem)
    I have a Oracle Service Bus Proxy Service, that calls a Business Service (not in my control).
    That business service is somehow crap, cause it doesn't respond correctly (in sense of http protocol):
    POST / HTTP/1.1
    Content-Type: text/xml; charset=utf-8
    User-Agent: Java1.6.0_05
    Host: somehost.net:8080
    Accept: text/html, image/gif, image/jpeg, */*; q=.2
    Connection: Keep-Alive
    0093
    <?xml version="1.0" encoding="UTF-8"?>
    <somePayload/>
    0000
    *<TheResponse/>*
    <TheResponse/> is all i get from that service. No http header..
    My Proxy service doesn't like responses with no HTTP/1.1 200 OK
    and returns an error (although its a correct answer.. from the service)
    Is there a posibility to avoid this error and get the plain response instead?
    Thanx in advance
    Pat

    You're right, that service doesn't respond correctly as defined by HTTP. I don't think there is an out of the box feature in OSB you could use to overcome this.
    However, you can possibly write your own transport implementation as described here:
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/transportsdk/architecture.html
    There's also sample implementation that could be useful:
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/transportsdk/example.html

  • Problems with http header "Content-Location"

    Does anyone know how to override the
    "Content-Location" http header. We are having issues with search engines and this header being returned from Apache/oc4j. In a nutshell, I have a site that uses the
    Struts framework, where the actual urls submitted would be for example
    (http://mysite/home.do), where ".do" is just a servlet mapping. When we have
    tried to follow the one link that has been spidered, it actually contains
    the full path that appears in the "Content-Location" header (i.e.
    http://mysite/web-inf/jsps/bogus.jsp) which in this case can't even be
    accessed. The feedback we get from third-party utilities that try to spider
    the site is that it is stopping because it has already indexed "bogus.jsp",
    which in reality will always appear since it is a template, where the actual
    urls will be different as is above.
    Because the "Content-Location" header is being returned to any
    client hitting the site, search engine spiders stop indexing at the first page because the value in "Content-Location" is the same.
    Solutions tried:
    mod_headers in Apache - have tried "Header unset"
    HttpServletResponse.setHeader()
    Any help would be appreciated

    Hi there,
    i'm having a similar problem to this when trying to run some web page speed optimisation software...
    i think the issue also causes problems with the Opera browser (although this may have been fixed in the latest version).
    anybody any ideas how to stop the header being sent in the response?
    many thanks,
    Andy

  • BPEL HTTP Header Problem

    Hello @all
    I�m new to Open ESB and NetBeans.
    Does anybody has an idea how to put HTTP-Header to the BPEL-Process?
    I have to call a WebService (from BPEL) which expects user authentication (sessionId) in the HTTP-Header . How do I do that? Do I have to modify my WSDL-File?
    Thanks for your posts in advance

    You would have already defined your WSDL accommodating this requirement. If not, then yes, you might have to change your wsdl.
    Assuming you are sending the user info all the way from the BPEL process and assuming soap-http protocol. Typically the way i see this done is, you define a wsdl message with the parts that correspond to your business logic and parts that you would use in the "soap headers". In the BPEL it is always "business as usual" you deal with the abstract wsdl message. It would be developers responsibility to fill the wsdl message parts correctly. Once this message goes through the soap-http BC, it would be the BC's job to then put things as required by the HTTP protocol.
    hope that helps,
    Kiran B.

  • HTTP header and Filter: problem

    Hi,
    Let's suppose I need to check HTTP header values for some reason. I created a filter to analyze request information before passing it to servlet.
    Anyway filter's method doFilter() takes a ServletRequest as a parameter, not HttpServletRequest, therefore I can't use HttpServletRequestWrapper and its method getHeaders(). ServletRequestWrapper does not have such a method. Casting from ServletRequest to HttpServletRequest won't work - Weblogic does not allow this.
    Anyway I need to extract headers information for the request and I know for sure it is an HTTP request, of course.
    Does anyone here know how can I extract header information in this case?

    Anyway filter's method doFilter() takes a
    ServletRequest as a parameter, not
    HttpServletRequest, therefore I can't use
    HttpServletRequestWrapper and its method
    getHeaders().However you are actually getting an HttpServletRequest object as your actual parameter, so just cast it to HttpServletRequest and do what you need to do.

  • ESB requires "SOAPAction" to be set in HTTP header?

    I'm trying to insert an ESB flow between an existing web service and client. The service and client were previously built with Apache Axis.
    By generating an appropriate WSDL (doc/wrapped rather than Axis' default RPC style) for the existing service, I'm able to connect the ESB to the service.
    The problem is that the existing client (built using Axis) sets the SOAPAction in the HTTP header to empty (SOAPAction: ""), and the ESB appears to require this to be set to the desired operation. If this is a hard requirement, then I can't directly connect the existing client to the ESB flow.
    So, the question is whether it's possible to have the ESB relax the requirement for the SOAPAction header. And if so, how?
    If I can't get the ESB to accept SOAP requests with an empty SOAPAction, then I'll have to create a custom adapter or insert an additional proxy layer (yuk). Anyone else have any suggestions?

    This is all done automatically by FB.
    Just to try something out I just now made a simple app with a label only and tried to upload to Google... FAILED!!!!
    "Market requires versionCode to be set to a positive 32-bit integer in AndroidManifest.xml"
    LOL, FB can't even create this. :-/
    <?xml version="1.0" encoding="utf-8" standalone="no"?>
    <application xmlns="http://ns.adobe.com/air/application/3.1">
    <!-- Adobe AIR Application Descriptor File Template.
              Specifies parameters for identifying, installing, and launching AIR applications.
              xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/3.1
                                  The last segment of the namespace specifies the version
                                  of the AIR runtime required for this application to run.
              minimumPatchLevel - The minimum patch level of the AIR runtime required to run
                                  the application. Optional.
    -->
    Message was edited by: KesherMedia.Com

Maybe you are looking for