Ticket #2607 (closed enhancement: fixed)

Opened 8 years ago

Last modified 20 months ago

Support PAC files for proxy configuration

Reported by: anonymous Owned by: dkocher
Priority: normal Milestone: 4.6
Component: core Version: 3.0.2
Severity: normal Keywords:
Cc: Architecture:
Platform: Mac OS X 10.6

Description

I normally connect to WebDAV using an SSH tunnel and SOCKS proxy within the browser. I would like to use Cyberduck instead of the Mac OS X WebDAV client, which uses SOCKS if it's configured in Network Preferences. Note that SOCKS can be specified either as a specific SOCKS proxy server, or by using a PAC file that specifies SOCKS based on its own logic.

Please add support in Cyberduck to connect to a WebDAV server using these parameters:

hostname: subdomain.domain.com username: <none provided> password: <not needed> port: <not specified as SOCKS v5 is used> protocol: WebDAV (no SSH)

Change History

comment:1 follow-up: ↓ 2 Changed 7 years ago by dkocher

SOCKS Proxy settings are read from System Preferences and should be used. Have you tried?

comment:2 in reply to: ↑ 1 Changed 7 years ago by anonymous

Replying to dkocher:

SOCKS Proxy settings are read from System Preferences and should be used. Have you tried?

I have tried, and the System Preferences for Network settings (SOCKS) are not used.

comment:3 Changed 7 years ago by dkocher

  • Status changed from new to closed
  • Resolution set to worksforme

I cannot replicate this in version 3.3. Please reopen if this is still an issue for you.

comment:4 Changed 5 years ago by dmulter

  • Status changed from closed to reopened
  • Resolution worksforme deleted

This is still an issue with the latest version (3.8.1) on Snow Leopard (10.6.6). Sorry for the delay in re-opening, but just noticed it. Let me be a bit more specific:

First some assumptions:

  • The host "server.domain.com" (SERVER) is a publicly accessible SSH server that also runs DNS services and a WebDAV server.
  • SERVER is also configured to resolve multiple subdomains of the form: SUBDOMAIN.domain.com. Clients can make DNS requests over SSH to resolve these subdomains, but the server won't resolve them over the public net.

Steps to reproduce:

  • Go to System Preferences->Network, then Advanced, then Proxies, and select Automatic Proxy Configuration. Select a PAC file with contents like:
    function FindProxyForURL(url, host)
    {
      // SOCKS proxy everything to SUBDOMAIN.domain.com
      if (isPlainHostName(host))
        return "DIRECT";
      else if (shExpMatch(url, "http://www.domain.com*"))
        return "DIRECT";
      else if (shExpMatch(url, "http://*.domain.com*"))
        return "SOCKS localhost:8001";
      else
        return "DIRECT";
    }
    
    
  • Open an SSH tunnel using a command like the following from a Terminal window. Note that it accesses a public server URL and maps the local SOCKS port. Also note that the PAC file will also route DNS requests over the tunnel, so SUBDOMAIN.domain.com will not be resolvable on the public DNS.
    ssh server.domain.com -D 8001
    
  • Now try to configure CyberDuck for a connection to WebDAV (non-SSL) using http://SUBDOMAIN.domain.com/webdav/. The connection will always fail.
  • Now you'll see the confusion in Cyberduck. There is no need for a username, password, or port specification. If it really used the system network settings, it would dynamically route all requests over the SSH tunnel via system settings and the PAC file.

comment:5 Changed 5 years ago by dkocher

  • Platform set to Mac OS X 10.6
  • Component changed from webdav to core
  • Summary changed from WebDAV using SOCKS to Support PAC files for proxy configuration

The setting for a PAC file is currently ignored set in the system network settings on Mac OS X.

comment:6 Changed 3 years ago by dkocher

  • Milestone set to 4.4.1

comment:7 Changed 3 years ago by dkocher

  • Milestone changed from 4.4.1 to 4.5

comment:8 Changed 2 years ago by dkocher

  • Milestone 4.5 deleted

comment:9 Changed 23 months ago by dkocher

PAC configuration is supported for Cyberduck on Windows as of r10643. See #6968.

comment:10 Changed 23 months ago by dkocher

#8085 closed as duplicate.

comment:11 Changed 22 months ago by dkocher

  • Status changed from reopened to new
  • Milestone set to 5.0

comment:12 Changed 20 months ago by dkocher

  • Status changed from new to assigned
  • Milestone changed from 5.0 to 4.5.3

comment:13 Changed 20 months ago by dkocher

  • Status changed from assigned to closed
  • Resolution set to fixed

In r15291.

Note: See TracTickets for help on using tickets.
swiss made software