diff options
author | Damien Miller <djm@mindrot.org> | 2014-07-18 14:11:24 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-07-18 14:11:24 +1000 |
commit | 7acefbbcbeab725420ea07397ae35992f505f702 (patch) | |
tree | bfb07917715d425438dab987a47ccd7a8d7f118b /PROTOCOL | |
parent | 6262d760e00714523633bd989d62e273a3dca99a (diff) |
- millert@cvs.openbsd.org 2014/07/15 15:54:14
[PROTOCOL auth-options.c auth-passwd.c auth-rh-rsa.c auth-rhosts.c]
[auth-rsa.c auth.c auth1.c auth2-hostbased.c auth2-kbdint.c auth2-none.c]
[auth2-passwd.c auth2-pubkey.c auth2.c canohost.c channels.c channels.h]
[clientloop.c misc.c misc.h monitor.c mux.c packet.c readconf.c]
[readconf.h servconf.c servconf.h serverloop.c session.c ssh-agent.c]
[ssh.c ssh_config.5 sshconnect.c sshconnect1.c sshconnect2.c sshd.c]
[sshd_config.5 sshlogin.c]
Add support for Unix domain socket forwarding. A remote TCP port
may be forwarded to a local Unix domain socket and vice versa or
both ends may be a Unix domain socket. This is a reimplementation
of the streamlocal patches by William Ahern from:
http://www.25thandclement.com/~william/projects/streamlocal.html
OK djm@ markus@
Diffstat (limited to 'PROTOCOL')
-rw-r--r-- | PROTOCOL | 52 |
1 files changed, 51 insertions, 1 deletions
@@ -232,6 +232,56 @@ The contents of the "data" field for layer 2 packets is: | |||
232 | The "frame" field contains an IEEE 802.3 Ethernet frame, including | 232 | The "frame" field contains an IEEE 802.3 Ethernet frame, including |
233 | header. | 233 | header. |
234 | 234 | ||
235 | 2.4. connection: Unix domain socket forwarding | ||
236 | |||
237 | OpenSSH supports local and remote Unix domain socket forwarding | ||
238 | using the "streamlocal" extension. Forwarding is initiated as per | ||
239 | TCP sockets but with a single path instead of a host and port. | ||
240 | |||
241 | Similar to direct-tcpip, direct-streamlocal is sent by the client | ||
242 | to request that the server make a connection to a Unix domain socket. | ||
243 | |||
244 | byte SSH_MSG_CHANNEL_OPEN | ||
245 | string "direct-streamlocal@openssh.com" | ||
246 | uint32 sender channel | ||
247 | uint32 initial window size | ||
248 | uint32 maximum packet size | ||
249 | string socket path | ||
250 | string reserved for future use | ||
251 | |||
252 | Similar to forwarded-tcpip, forwarded-streamlocal is sent by the | ||
253 | server when the client has previously send the server a streamlocal-forward | ||
254 | GLOBAL_REQUEST. | ||
255 | |||
256 | byte SSH_MSG_CHANNEL_OPEN | ||
257 | string "forwarded-streamlocal@openssh.com" | ||
258 | uint32 sender channel | ||
259 | uint32 initial window size | ||
260 | uint32 maximum packet size | ||
261 | string socket path | ||
262 | string reserved for future use | ||
263 | |||
264 | The reserved field is not currently defined and is ignored on the | ||
265 | remote end. It is intended to be used in the future to pass | ||
266 | information about the socket file, such as ownership and mode. | ||
267 | The client currently sends the empty string for this field. | ||
268 | |||
269 | Similar to tcpip-forward, streamlocal-forward is sent by the client | ||
270 | to request remote forwarding of a Unix domain socket. | ||
271 | |||
272 | byte SSH2_MSG_GLOBAL_REQUEST | ||
273 | string "streamlocal-forward@openssh.com" | ||
274 | boolean TRUE | ||
275 | string socket path | ||
276 | |||
277 | Similar to cancel-tcpip-forward, cancel-streamlocal-forward is sent | ||
278 | by the client cancel the forwarding of a Unix domain socket. | ||
279 | |||
280 | byte SSH2_MSG_GLOBAL_REQUEST | ||
281 | string "cancel-streamlocal-forward@openssh.com" | ||
282 | boolean FALSE | ||
283 | string socket path | ||
284 | |||
235 | 3. SFTP protocol changes | 285 | 3. SFTP protocol changes |
236 | 286 | ||
237 | 3.1. sftp: Reversal of arguments to SSH_FXP_SYMLINK | 287 | 3.1. sftp: Reversal of arguments to SSH_FXP_SYMLINK |
@@ -356,4 +406,4 @@ respond with a SSH_FXP_STATUS message. | |||
356 | This extension is advertised in the SSH_FXP_VERSION hello with version | 406 | This extension is advertised in the SSH_FXP_VERSION hello with version |
357 | "1". | 407 | "1". |
358 | 408 | ||
359 | $OpenBSD: PROTOCOL,v 1.23 2013/12/01 23:19:05 djm Exp $ | 409 | $OpenBSD: PROTOCOL,v 1.24 2014/07/15 15:54:14 millert Exp $ |