Github user oknet commented on the issue:

    https://github.com/apache/trafficserver/issues/1175
  
    @06chaynes There are 2 patches to resolve this issue, please try to apply 
them.
    
    https://github.com/apache/trafficserver/pull/1274/files
    https://github.com/apache/trafficserver/pull/1275/files
    
    I have try it with dante-server. The /etc/danted.conf list below:
    ```
    external: 172.22.21.211
    internal: 127.0.0.1 port = 10800
    logoutput: /var/log/socks.log
    method: none
    clientmethod: none
    user.privileged: proxy
    user.notprivileged: nobody
    user.libwrap: nobody
    
    client pass {
        from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0
        log: connect disconnect error
    }
    
    pass {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        protocol: tcp udp
        log: connect disconnect error
    }
    ```
    
    Try to make a HTTP request to 172.21.21.254:80 by connect-proxy
    ```
    root@xuc:~/package/oknet-ats# connect-proxy -S localhost:1080 172.21.21.254 
80
    GET / HTTP/1.0
    Host: 172.21.21.254
    
    HTTP/1.0 200 OK
    Date: Fri, 23 Dec 2016 08:41:40 GMT
    Server: ATS/7.1.0
    Last-Modified: Tue, 07 Jul 2015 12:21:55 GMT
    ETag: "22682-b1-51a481162477f"
    Accept-Ranges: bytes
    Content-Length: 177
    Vary: Accept-Encoding
    Content-Type: text/html
    X-Pad: avoid browser bug
    Age: 0
    
    <html><body><h1>It works!</h1>
    <p>This is the default web page for this server.</p>
    <p>The web server software is running but no content has been added, 
yet.</p>
    </body></html>
    ```
    
    the /var/log/socks.log:
    ```
    Dec 23 15:28:33 (1482478113) danted[21091]: pass(1): tcp/accept [: 
127.0.0.1.50906 -> 127.0.0.1.10800
    Dec 23 15:28:33 (1482478113) danted[21092]: pass(1): tcp/connect [: 
127.0.0.1.50906 -> 172.21.21.254.80
    Dec 23 15:30:28 (1482478228) danted[21096]: pass(1): tcp/connect ]: 484 -> 
127.0.0.1.50906 -> 158,  158 -> 127.0.0.1.10800 -> 484: remote closed
    Dec 23 15:30:28 (1482478228) danted[21096]: pass(1): tcp/connect ]: 484 -> 
127.0.0.1.50906 -> 158,  158 -> 172.21.21.254.80 -> 484: remote closed
    ```
    
    and the ats configs:
    
    ```
    /etc/trafficserver/records.config:
    CONFIG proxy.config.socks.socks_needed INT 1
    CONFIG proxy.config.socks.accept_enabled INT 1
    CONFIG proxy.config.socks.default_servers STRING 127.0.0.1:10800
    CONFIG proxy.config.socks.socks_version INT 5
    ```
    
    or
    
    ```
    /etc/trafficserver/records.config:
    CONFIG proxy.config.socks.socks_needed INT 1
    CONFIG proxy.config.socks.accept_enabled INT 1
    CONFIG proxy.config.socks.socks_version INT 5
    
    /etc/trafficserver/socks.config:
    dest_ip=172.21.21.254 parent="127.0.0.1:10800"
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to