You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Alan M. Carroll (JIRA)" <ji...@apache.org> on 2013/07/31 01:37:49 UTC

[jira] [Comment Edited] (TS-1625) ATS doesn't support localhost services for full IPT connections

    [ https://issues.apache.org/jira/browse/TS-1625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13724614#comment-13724614 ] 

Alan M. Carroll edited comment on TS-1625 at 7/30/13 11:37 PM:
---------------------------------------------------------------

I don't see a need for this patch. I tested this with a fully transparent TS and made it work with the base 3.3.5. I set up an HTTPD on local port 80 and did the redirect if a specific header field was present. I tracked the requests and with that header field, the request would be serviced by the local HTTPD, not the actual origin server. I did this successfully in both the READ_REQUEST_HDR and OS_DNS hooks. This should work just as well in 3.2.

I used
{code}
sockaddr_in ip; // Set to loopback:80
TSHttpTxnServerAddrSet(txnp, &ip); // redirect connection
TSHttpTxnOutgoingTransparency(txnp, 0); // prevent outbound transparent
{code}
                
      was (Author: amc):
    I don't see a need for this patch. I tested this with a fully transparent TS and made it work with the base 3.3.5. I set up an HTTPD on local port 80 and did the redirect if a specific header field was present. I tracked the requests and with that header field, the request would be serviced by the local HTTPD, not the actual origin server. I did this successfully in both the READ_REQUEST_HDR and OS_DNS hooks. This should work just as well in 3.2.

I used
{code:c}
sockaddr_in ip; // Set to loopback:80
TSHttpTxnServerAddrSet(txnp, &ip); // redirect connection
TSHttpTxnOutgoingTransparency(txnp, 0); // prevent outbound transparent
{code}
                  
> ATS doesn't support localhost services for full IPT connections
> ---------------------------------------------------------------
>
>                 Key: TS-1625
>                 URL: https://issues.apache.org/jira/browse/TS-1625
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Core
>            Reporter: Aidan McGurn
>            Assignee: Alan M. Carroll
>             Fix For: 3.5.0
>
>         Attachments: CCOD-309-IPT_LocalServices.patch, INTD-1782-IPT_LocalServices.patch
>
>
> We have at least 2 use cases where we want to connect the backend (OS) connection to localhost.
> This currently won't work under full IPT as the backend connection socket is bound to the client src ip. It needs to be bound to localhost also otherwise e.g. <client src ip>  ---> 127.0.0.1  //this will fail
> needs to be: 127.0.0.1 ----> 127.0.0.1 (for ipv6: ::1 ---> ::1)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira