DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th September 2015
gso gso is offline
Port Guard
 
Join Date: Nov 2014
Posts: 35
Default ssh multiplexing issue

From the ssh man page:

Quote:
-O ctl_cmd

Control an active connection multiplexing master process ... ''stop''
(request the master to stop accepting further multiplexing
requests).
The following code configuring socks forwarding works as expected:

Code:
ssh -CN -f -o "ExitOnForwardFailure=yes" -o "ControlMaster=yes" -o "ControlPath=${control_path}/%r@%h:%p" "${sshsocks_user}@${sshsocks_server}"

ssh -O check -S "${control_path}/${sshsocks_user}@%h:%p" "$sshsocks_server"

ssh -O forward -D "${sshsocks_fwd_addr}:${sshsocks_fwd_port}" -S "${control_path}/${shsocks_user}@%h:%p" "$sshsocks_server"
However the problem being when asking the master connection to then not accept any further multiplexing requests:

Code:
ssh -O stop -S "${control_path}/${sshsocks_user}@%h:%p" "$sshsocks_server"
This works occasionally but mostly not for some odd reason.

However if a web page is loaded via the socks proxy and a browser in between establishing forwarding and attempting to stop any further multiplexing requests, then the 'stop' command always works without any problem.

Otherwise the ssh process mostly exits, which from what I can gather would be correct if there were no open connections remaining (assuming 'ControlPersist' is not set to 'yes'), but not if as in this case ssh is forwarding (i.e., an open connection still exists).

Has anyone any clues as to what is going on here?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiplexing traffic schmurfy OpenBSD General 6 26th March 2012 12:46 PM
FTP issue? desreguard OpenBSD General 14 29th August 2011 04:21 PM
VPN Nat issue on 4.8 copetts OpenBSD Security 2 12th April 2011 10:34 AM
Possible SMP Issue? MetalHead OpenBSD General 1 25th November 2008 03:52 AM
RAM issue nikkon FreeBSD General 5 7th May 2008 04:26 AM


All times are GMT. The time now is 02:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick