Forum Discussion

thaynes2016_297's avatar
thaynes2016_297
Icon for Nimbostratus rankNimbostratus
Apr 26, 2017

iControl with PHP and ssh proxy?

Has anyone successfully implemented iControl using PHP and a local ssh proxy?

 

All my F5s are on a management rail, I can only connect to them via a jump server. I can successfully establish ssh / http connections using SSH "-D" and setup a quick and dirty SOCKS5 proxy using ssh. But I cannot get iControl to work using the proxy.

 

I have attempted to use the proxy_host and proxy_port options in the SoapClient in php, but even though I see a connection hit the "proxy? it fails. seems that the out of the box SoapClient() does not work with SOCKS5 proxy. All I see happening on the wire is a Socks request and then the local "proxy server" (ssh port forwarder) sends a reset.

 

I can set firefox to use the local SOCKS5 proxy and I can call the wsdl just fine.

 

I need a way to get my SoapClient connections to work. I cannot place the server on the management rail, nor can I open a firewall hole. I have to use a ssh port-forwarding solution.

 

Any help you can provide would be overwhelmingly welcome.

 

No RepliesBe the first to reply