cloudflared-mirror/socks
Lee Valentine 206523344f TUN-4017: Add support for using cloudflared as a full socks proxy.
To use cloudflared as a socks proxy, add an ingress on the server
side with your desired rules. Rules are matched in the order they
are added.  If there are no rules, it is an implicit allow.  If
there are rules, but no rule matches match, the connection is denied.

ingress:
  - hostname: socks.example.com
    service: socks-proxy
    originRequest:
      ipRules:
        - prefix: 1.1.1.1/24
          ports: [80, 443]
          allow: true
        - prefix: 0.0.0.0/0
          allow: false

On the client, run using tcp mode:
cloudflared access tcp --hostname socks.example.com --url 127.0.0.1:8080

Set your socks proxy as 127.0.0.1:8080 and you will now be proxying
all connections to the remote machine.
2021-03-10 21:26:12 +00:00
..
auth_handler.go AUTH-2394 added socks5 proxy 2020-04-07 13:30:28 -05:00
authenticator.go AUTH-2394 added socks5 proxy 2020-04-07 13:30:28 -05:00
connection_handler.go AUTH-2394 added socks5 proxy 2020-04-07 13:30:28 -05:00
connection_handler_test.go TUN-4017: Add support for using cloudflared as a full socks proxy. 2021-03-10 21:26:12 +00:00
dialer.go AUTH-2394 added socks5 proxy 2020-04-07 13:30:28 -05:00
request.go AUTH-2394 added socks5 proxy 2020-04-07 13:30:28 -05:00
request_handler.go TUN-4017: Add support for using cloudflared as a full socks proxy. 2021-03-10 21:26:12 +00:00
request_handler_test.go TUN-4017: Add support for using cloudflared as a full socks proxy. 2021-03-10 21:26:12 +00:00
request_test.go AUTH-2394 added socks5 proxy 2020-04-07 13:30:28 -05:00