tunneling

Unable to tunnel through proxy - Jsoup

百般思念 提交于 2019-12-24 19:43:16
问题 I am getting the below exception while creating an HTTP connection. 2017-08-07 17:07:43,219 ERROR au.com.scraper.sites.ScraperSite - Exception in parsing Categories: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden" at line number 153 java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 403 Forbidden" at sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:2085) at sun.net.www.protocol.https

HTTPS proxy tunneling with the ssl module

醉酒当歌 提交于 2019-12-18 16:08:34
问题 I'd like to manually (using the socket and ssl modules) make an HTTPS request through a proxy which itself uses HTTPS . I can perform the initial CONNECT exchange just fine: import ssl, socket PROXY_ADDR = ("proxy-addr", 443) CONNECT = "CONNECT example.com:443 HTTP/1.1\r\n\r\n" sock = socket.create_connection(PROXY_ADDR) sock = ssl.wrap_socket(sock) sock.sendall(CONNECT) s = "" while s[-4:] != "\r\n\r\n": s += sock.recv(1) print repr(s) The above code prints HTTP/1.1 200 Connection

MYSQL ERROR 2003 (HY000) (113) in SSH remote tunneling, but telnet from SSH tunnel works

♀尐吖头ヾ 提交于 2019-12-12 03:34:32
问题 I have spent all day trying to solve this. The thing I want to do is that: I have a MYSQL server, namely A with CentOS 7, in a private network, cannot be NAT or connected to VPN. Now I want to access this server from a remote machine, namely B with CentOS 6. I have ssh access to machine B remotely, and ssh access to machine A locally. This approach I tried is to use SSH tunneling. On machine A terminal: ssh -R 9001:localhost:3306 user@B Then on B, I tried mysql --port=9001 -u root -p which

How i can establish connection ssh from c#

霸气de小男生 提交于 2019-12-11 07:57:47
问题 This is my first post on stackoverflow, sorry for anything. On my scope: private SshClient client; private ForwardedPortDynamic port; I have a sample code to connect with ssh similar at putty: private void Connect() { try { client = new SshClient("myserverproxy.net", "user", "password"); client.KeepAliveInterval = new TimeSpan(0, 0, 60); client.ConnectionInfo.Timeout = new TimeSpan(0, 0, 20); client.Connect(); port = new ForwardedPortDynamic("127.0.0.1", 20141); client.AddForwardedPort(port);

.NET Native application equivalent of Modify Headers Firefox Addon

核能气质少年 提交于 2019-12-07 16:05:25
问题 I am trying to develop a socks tunneling application in c# that is able to open a website by using add and modified header requests (something similar to Modify Header Firefox Addon) and tunnel the data through a proxy (socks preferable). Please can anyone specify any resources I might need for this? Or any alternative that can perform the same function, open source that I can build on maybe, etc. Thanks! ps: the applications should also be able to open https and other common network

How to view the logs of a spark job after it has completed and the context is closed?

旧街凉风 提交于 2019-12-06 02:47:53
问题 I am running pyspark , spark 1.3 , standalone mode , client mode . I am trying to investigate my spark job by looking at the jobs from the past and comparing them. I want to view their logs, the configuration settings under which the jobs were submitted, etc. But I'm running into trouble viewing the logs of jobs after the context is closed. When I submit a job, of course I open a spark context. While the job is running, I'm able to open the spark web UI using ssh tunneling. And, I can access

.NET Native application equivalent of Modify Headers Firefox Addon

主宰稳场 提交于 2019-12-05 21:38:49
I am trying to develop a socks tunneling application in c# that is able to open a website by using add and modified header requests (something similar to Modify Header Firefox Addon ) and tunnel the data through a proxy (socks preferable). Please can anyone specify any resources I might need for this? Or any alternative that can perform the same function, open source that I can build on maybe, etc. Thanks! ps: the applications should also be able to open https and other common network protocols TheCodeKing One way is to use HttpSys and create a local proxy server to handle request on the

Port Forwarding

落花浮王杯 提交于 2019-12-05 20:58:20
问题 I have a simple requirement of a software level port forwarding/tunnelling of socket based communication. I have a source server and port using Sockets. This is a java program which works both in windows and linux and this is irrelevant. I have devices which keep sending data to this port. There may be a bi-directional communication I want to redirect this data to another remote server and port. So for the clients they will not have to worry about change of ip address whenever I move my app

Subversion through a tunnel

巧了我就是萌 提交于 2019-12-04 18:26:00
问题 For work, I work in a closed network. There are a few IP addresses that we have set up that are only accessible from inside our network. There is one box, though, that we can SSH into and tunnel through to get to our respective developer boxes. I know I can get traffic from our developer box by using the -L argument of ssh. I was wondering if there was a way I could tunnel through our open box, to get into a closed box were our Subversion (SVN) repository is stored? My computer --> Open box -

Subversion through a tunnel

爷,独闯天下 提交于 2019-12-03 12:10:17
For work, I work in a closed network. There are a few IP addresses that we have set up that are only accessible from inside our network. There is one box, though, that we can SSH into and tunnel through to get to our respective developer boxes. I know I can get traffic from our developer box by using the -L argument of ssh. I was wondering if there was a way I could tunnel through our open box, to get into a closed box were our Subversion (SVN) repository is stored? My computer --> Open box --> Developer boxes/SVN repository I can't ssh into the SVN box, but is there a way to use ssh like a