tunnel

HttpClient: how do I obtain the underlying socket from an existing connection?

落爺英雄遲暮 提交于 2020-01-13 16:30:12
问题 I am using HttpClient 4.02 to create a connection via proxy (using the CONNECT method) to tunnel a connection to a remote server. HttpClient is very convenient for this but I am new to the API and cannot see how to get at the underlying Socket of the tunneled connection. The following code taken from: http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.0.1/httpclient/src/examples/org/apache/http/examples/client/ClientExecuteProxy.java // make sure to use a proxy that supports

TCP tunnel over SSH in Rust

不羁的心 提交于 2020-01-13 09:16:30
问题 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

Show an animation before show my index.html

时间秒杀一切 提交于 2020-01-03 04:43:30
问题 I have a website, with few content. So, it loads fast in the navigator. I want to load an jquery animation before show the first index.htm. Sincerely I don't know how implement this idea. I don't want that the user clicks in the animation to continue to the main site. I want make an animation of 'x' time and when it finish, charges automatically the next html, or the rest of the page. Thanks very much. 回答1: Change your page the way that it loads all content at once including the animation.

NEVPNErrorDomain Error 1 when trying to start TunnelProvider network extension

ぐ巨炮叔叔 提交于 2020-01-02 07:18:11
问题 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

pip install failing with 407 Proxy Authentication Required

本秂侑毒 提交于 2020-01-02 01:20:48
问题 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

Shutting Down SSH Tunnel in Paramiko Programmatically

徘徊边缘 提交于 2020-01-01 19:07:13
问题 We are attempting to use the paramiko module for creating SSH tunnels on demand to arbitrary servers for purposes of querying remote databases. We attempted to use the forward.py demo that ships with paramiko but the big limitation is there does not seem to be an easy way to close an SSH tunnel and the SSH connection once the socket server is started up. The limitation we have is that we cannot activate this from a shell and then kill the shell manually to stop the listner. We need to open

Something compareable to 'localtunnel' for Windows [closed]

*爱你&永不变心* 提交于 2019-12-30 00:51:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I found this here http://github.com/progrium/localtunnel , and it's exactly what I need, but I am working on Windows and localtunnel is Unix... Some backgorund: I am currently developing a Facebook app and the Single-Sign-On won't work on my local Tomcat. 回答1: PageKite (disclaimer: I made this!) solves the same

How to SSH from Perl script from windows machine to EC2 machine

只谈情不闲聊 提交于 2019-12-25 05:27:13
问题 I want to set and ssh tunnel between my windows machine and EC2 machine, I want to use perl for that, according to this documentation, I have to use ./driver.pl script which I couldn't find. I use this string to ssh to my machine using command line. ssh -2 -p 22 username@id-address -i keyfile.ssh -L p8600/Localhost/3306 I tried this from this post but I get this error: my $ssh_pid= open("ssh -2 -p 22 username@id-address -i keyfile.ssh -L p8600/Localhost/3306 |") or die; Can't use string ("ssh

Connect to tunneled DB through phpMyAdmin

谁说胖子不能爱 提交于 2019-12-25 03:37:15
问题 So I've tunneled the DB to port 3307 on 127.0.0.1 .. I can connect to the database and do whatever I want by using Ubuntu's MySQL Workbench, however I really dislike the interface of the GUI so I want to use the ol'friend phpMyAdmin. The connection parameters I am using are: $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['port'] = 3307; $cfg['Servers'][$i]['extension'] = 'mysql'; $cfg['Servers'][$i]['connect_type']= 'tcp'; $cfg['Servers'][$i]['compress'] = false; $cfg['Servers

How to create Proxy Server using jetty8?

情到浓时终转凉″ 提交于 2019-12-25 02:28:22
问题 I had created a Proxy Server (Fwd and Reverse) using Java sockets. which would listen to Incoming Request on 8080 configured in browser and forward them to another Proxy Server2. And Read the Response sent by the server2 and write it to the browser. Meanwhile code will be logging requests and response and also blocking certain predefined request types from browser. Now I want to do this using Jetty and also support HTTPS request. I searched for example but I found none. This starts server at