tunneling

Can I use http tunnel to ping or traceroute through a proxy with firewall?

倖福魔咒の 提交于 2019-12-03 11:05:05
I don't know if there is a way to ping a target outside my LAN proxy which accepts only Http requests through a squid proxy... I read somewhere that one way to deal with such problem is to use a http tunnel so that the proxy still sees the request as a Http request. Can I use this to ping,say, www.google.com which otherwise is giving the following error because the firewall is rejecting the request: $ ping www.google.com ping: unknown host www.google.com If so how is it done...? I have installed httptunnel.Any help in how to use it will be much appreciated. No. Ping and traceroute make use of

Unable to tunnel through proxy. Proxy returns HTTP/1.1 503 Service Unavailable

谁说胖子不能爱 提交于 2019-12-01 05:01:45
I want to connect to an intranet server, the url that I need to connect is: URLConnection conn = new URL("https://mywebsite").openConnection(); When I reach to the connect method call through:` conn.connect(); I'm getting the following exception: java.io.IOException: Unable to tunnel through proxy. Proxy rerurns HTTP/1.1 503 Service Unavailable" at sun.net.www.protocol.httpHttpURLConnection.doTunneling How can I solve this exception, I have tried many solutions published on the net, but without any luck. What helped to me was to unset all proxy properties in the environment ( http_proxy etc

Unable to tunnel through proxy. Proxy returns HTTP/1.1 503 Service Unavailable

半城伤御伤魂 提交于 2019-12-01 02:44:04
问题 I want to connect to an intranet server, the url that I need to connect is: URLConnection conn = new URL("https://mywebsite").openConnection(); When I reach to the connect method call through:` conn.connect(); I'm getting the following exception: java.io.IOException: Unable to tunnel through proxy. Proxy rerurns HTTP/1.1 503 Service Unavailable" at sun.net.www.protocol.httpHttpURLConnection.doTunneling How can I solve this exception, I have tried many solutions published on the net, but

How to connect to a database through a Paramiko Tunnel (or similar package)

余生颓废 提交于 2019-11-30 08:53:03
问题 I am having serious issues setting up a proper tunnel in paramiko to enable a database connection. I have reviewed the example 'forward.py', but am not understanding how to then link the database connection to it. Any pointers woudl be much appreciated. I think I need something the following: t = paramiko.Transport((hostname, port)) t.connect(username=username, password=password, hostkey=hostkey) c = paramiko.Channel(t) #something about assigning a local port to this connection connection =

PuTTY configuration equivalent to OpenSSH ProxyCommand

 ̄綄美尐妖づ 提交于 2019-11-30 03:46:20
I'm just trying to use PuTTY to get an SSH connection to my servers. These servers allow incoming SSH connection only from another specific server ("MySshProxyingServer" in example below). Using Linux this is no problem with the ssh -W command. In PuTTY I can't find the options to create such a connection. Example under Linux ( ~/.ssh/config ): Host MyHostToConnectTo Hostname xx.xx.xx.xx User root Identityfile ~/.ssh/id_rsa ProxyCommand ssh MySshProxyServer -W %h:%p Anyone knows how to use such a config in PuTTY? The equivalent in PuTTY is "local proxy command". You can use the plink.exe with

ssh: check if a tunnel is alive

我的梦境 提交于 2019-11-29 19:52:20
I have written a small bash script which needs an ssh tunnel to draw data from a remote server, so it prompts the user: echo "Please open an ssh tunnel using 'ssh -L 6000:localhost:5432 example.com'" I would like to check whether the user had opened this tunnel, and exit with an error message if no tunnel exist. Is there any way to query the ssh tunnel, i.e. check if the local port 6000 is really tunneled to that server? Tommy This is my test. Hope it is useful. # $COMMAND is the command used to create the reverse ssh tunnel COMMAND="ssh -p $SSH_PORT -q -N -R $REMOTE_HOST:$REMOTE_HTTP_PORT

paramiko: SSH port forwarding to get SQL dump

一世执手 提交于 2019-11-29 11:41:29
I am trying to use a python script to get an SQL dump from a remote host, with an intermediate host as proxy, like so: local machine -> proxy -> remote The proxy needs to be there because the remote host only allows connections through that proxy. Note: I am aware of a similar question at How to connect to a database through a Paramiko Tunnel (or similar package) but the solution seems to be specific to PostgreSQL. I am making the connection using SSH via paramiko. I am aware that forward.py is the paramiko example for port forwarding, but I am not sure if I am using it correctly. This is what

How to connect to a database through a Paramiko Tunnel (or similar package)

半城伤御伤魂 提交于 2019-11-29 09:01:20
I am having serious issues setting up a proper tunnel in paramiko to enable a database connection. I have reviewed the example 'forward.py', but am not understanding how to then link the database connection to it. Any pointers woudl be much appreciated. I think I need something the following: t = paramiko.Transport((hostname, port)) t.connect(username=username, password=password, hostkey=hostkey) c = paramiko.Channel(t) #something about assigning a local port to this connection connection = psycopg2.connect(connectionstring) #and do my stuff connection.close() c.close() t.close() if you have

Google App Engine - permission denied for proxy/tunneling on development server

守給你的承諾、 提交于 2019-11-29 08:09:11
Disclaimer: this is not a duplicate! I'm using requests library, monkey patched under GAE standard environment and everything works flawlessly, except the times when I'm adding the extra proxy argument to the request call. This proxy thing implies tunneling and socket operations which are disabled by default by the standard configuration of both development and deploy environments: NotImplementedError: HTTP CONNECT Tunnelling is not supported https://pastebin.com/YDsG9we7 Nice, so we need to enable real sockets support under our GAE platform, therefore adding: env_variables: GAE_USE_SOCKETS

Java Web Start: Unable to tunnel through proxy since Java 8 Update 111

北慕城南 提交于 2019-11-29 03:30:48
Some of our customers cannot run our Java Web Start client anymore since Java 8 Update 111. They get: java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required Looks like it has to do with this change : Now, proxies requiring Basic authentication when setting up a tunnel for HTTPS will no longer succeed by default. If required, this authentication scheme can be reactivated by removing Basic from the jdk.http.auth.tunneling.disabledSchemes networking property, or by setting a system property of the same name to "" ( empty ) on the command