tunnel

tunnel failed in blackberry bold. why?

冷暖自知 提交于 2019-12-08 07:17:06
问题 I created a j2me program and ported it to the blackberry bold. The program does some http queries. Every now and then these fail with the exception: 'tunnel failed' My APN settings are correct (since sometimes it does work). I connect with ' ;deviceside=true ' appended to the url I notice that when the browser has just been active, the program always works. However when the browser hasn't been active for some minutes and I start the program, I get the tunnel failed errors. 回答1: The problem

How to use JProfiler over two-hop SSH tunnel

心已入冬 提交于 2019-12-08 02:41:28
问题 I'm trying to connect JProfiler to a JVM running on a server that I'll call remote . This server is only accessible from my workstation ( local ) via another server that I'll call middle . My plan for connecting JProfiler to remote was this: Install the JProfiler instrumentation on remote Establish SSH tunnel from local , through middle , to remote : ssh -v -N -L 8849:[remote's private address (192.168... etc)]:8849 [middle] Establish a new JProfiler session on localhost:8849 , choosing

SSH tunnel Complex Problem

你。 提交于 2019-12-06 16:15:54
for a programming project I have to do some strange setup. Now, first of all, I have root rights on both servers, and I think an ssh tunnel is the best way (if you have a better idea, please feel free to tell me) I have to write a piece of software running on an IRC server. That is not difficult, but the IRC server is only reachable on localhost. So I have to ssh to the box first and then use irssi or similar to connect to localhost:6667 Now I tried to do an ssh-tunnel from a second server (where I have irssi running all the time) and then tunnel to the server and use localhost through the

How to use JProfiler over two-hop SSH tunnel

拈花ヽ惹草 提交于 2019-12-06 09:33:39
I'm trying to connect JProfiler to a JVM running on a server that I'll call remote . This server is only accessible from my workstation ( local ) via another server that I'll call middle . My plan for connecting JProfiler to remote was this: Install the JProfiler instrumentation on remote Establish SSH tunnel from local , through middle , to remote : ssh -v -N -L 8849:[remote's private address (192.168... etc)]:8849 [middle] Establish a new JProfiler session on localhost:8849 , choosing "Startup immediately, connect later with JProfiler GUI" However, I end up getting an error: Connection error

NEVPNErrorDomain Error 1 when trying to start TunnelProvider network extension

时光毁灭记忆、已成空白 提交于 2019-12-06 00:44:30
I'm trying to make a custom TunnelProvider network extension by starting with the XCode template for the TunnelProvider and then adding the code to the host app in order to configure it and start it. I am using an instance of NETunnelProviderManager to configure it, and when I call saveToPreferencesWithCompletionHandler: I get success (error = 0). However, when I call startVPNTunnelAndReturnError: on the (non-zero) connection I always get the below error: Error Domain=NEVPNErrorDomain Code=1 "(null)" I have read through all of the related Apple documentation as well as tried to make my program

TCP tunnel over SSH in Rust

不打扰是莪最后的温柔 提交于 2019-12-05 08:04:39
I'm trying to write a small program in Rust to accomplish basically what ssh -L 5000:localhost:8080 does: establish a tunnel between localhost:5000 on my machine and localhost:8080 on a remote machine, so that if an HTTP server is running on port 8080 on the remote, I can access it on my local via localhost:5000 , bypassing the remote's firewall which might be blocking external access to 8080. I realize ssh already does exactly this and reliably, this is a learning project, plus I might be adding some functionality if I get it to work :) This is a barebones (no threading, no error handling)

pip install failing with 407 Proxy Authentication Required

你离开我真会死。 提交于 2019-12-05 02:01:01
I am trying to use the below pip install command, but its failing with Proxy authentication required issue. I have already configured my proxies inside my RHEL7.x Server. Command Used: `pip install --proxy https://'username:pwd'@proxy:host --upgrade pip` Logs: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/ Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect

How to debug a ssh tunnel

余生颓废 提交于 2019-12-04 20:38:45
问题 I want to setup a simple ssh tunnel from a local machine to a machine on the internet. I'm using ssh -D 8080 -f -C -q -N -p 12122 <username>@<hostname> Setup works fine (I think) cause ssh returs asking for the credentials, which I provide. Then i do export http_proxy=http://localhost:8080 and wget http://www.google.com Wget returns that the request has been sent to the proxy, but no data is received back. What i need is a way to look at how ssh is processing the request.... 回答1: To get more

SSLSocket over another SSLSocket

。_饼干妹妹 提交于 2019-12-04 18:31:38
I'm writing an Android client for a system that requires me open an SSLSocket to a proxy server, do a tunnel handshake and then create ANOTHER SSLSocket over the tunnel. Here is my code to create the tunnel: SSLSocketFactory sslsocketfactory = securityService.getSslContextNoCerts().getSocketFactory(); SSLSocket sslSocket = (SSLSocket) sslsocketfactory.createSocket(proxyAddress.getAddress(), proxyAddress.getPort()); sslSocket.setEnabledProtocols(new String[] { SecurityService.TLS10 }); sslSocket.setEnabledCipherSuites(SecurityService.CIPHERS); sslSocket.startHandshake(); Then I do tunnel

Emulating SSH's SOCKS Proxy Tunnel in Python

天大地大妈咪最大 提交于 2019-12-04 16:34:15
I used to create a SOCKS connection between a windows client and linux server using SSH server and putty. However, the firewall between the client and server is now able to identify SSH packets and drop them. I was wondering if I can emulate such behavior of SSH tunnels using python? Any recommendations on libraries or readings? Thanks in advance. synthesizerpatel Yes, yes you can. Pick your poison. http://socksipy.sourceforge.net/ http://sourceforge.net/projects/pysocks/ http://code.google.com/p/socksipy-branch/ How can I use a SOCKS 4/5 proxy with urllib2? http://google-api-python-client