Questions tagged [tunnel]

A network tunnel is a virtual bidirectional point-to-point connection between a pair of nodes through an arbitrary number of networks/network-nodes.

A network tunnel is a virtual bidirectional point-to-point connection between a pair of nodes through an arbitrary number of networks/network-nodes.

Types of network tunnels

HTTP tunnel

ICMP tunnel

597 questions
169
votes
20 answers

ngrok command not found

I'm trying to install ngrok (which I've been using for a while on Windows with no issues) on my 1 week old yosemite and these are the steps I've followed so far. Downloaded ngrok from here https://ngrok.com/download. Unziped the file and copied the…
Valina
  • 1,739
  • 2
  • 11
  • 9
79
votes
2 answers

PostgreSQL via SSH Tunnel

I'd like to use RazorSQL to connect to my database which is running on a remote server. I create a SSH tunnel on my localhost with the following command: ssh -L 1111:remote.server.com:5432 myuser@remote.server.com I configure my connection via…
kozooh
  • 2,035
  • 1
  • 21
  • 31
38
votes
6 answers

Import a local SQL File To MySQL on a Remote Server Using SSH Tunnel

I have a connection between my localhost and a remote server using putty SSH tunnel. Thats fine. Now I need a command to get the sql file on my local machine i.e. c:\folder\test.sql and import it into mysql on the remote server I thought…
Jkk
  • 381
  • 1
  • 3
  • 3
36
votes
2 answers

Connecting to Mongo database through SSH tunnel in Java

FIXED (edited code to reflect changes I made) I'm trying to connect to a Mongo database through an SSH tunnel using Java. I'm using the Mongo driver 3.0.2 and jcraft (JSch) to create an SSH tunnel. The idea is that I: connect to the machine hosting…
David V
  • 360
  • 3
  • 6
31
votes
3 answers

Unable to tunnel through proxy. Proxy returns “HTTP/1.1 407” via https

I am faced with a curious behaviour of java6/8. I try to tunnel through a proxy which needs basic user authentication. Doing this by the standard java Authenticator. If I try to access a https url as the first url, an exception is…
PPr
  • 315
  • 1
  • 3
  • 7
31
votes
4 answers

python bind socket.error: [Errno 13] Permission denied

I have a python script which gets packets from a remote machine and writes them (os.write(self.tun_fd.fileno(), ''.join(packet))) to a tun interface gr3: Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.0.0.6…
NELOUNI
  • 593
  • 2
  • 6
  • 14
28
votes
4 answers

DBeaver ssh tunnel invalid private key

Just want to leave it here, so the link to the solution won't be lost. I have a private 4096-byte RSA key (probably it was generated using this guide https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent). I've…
zinovyev
  • 2,084
  • 1
  • 22
  • 32
28
votes
4 answers

How to interface with the Linux tun driver

I'm having a hard time figuring this problem out - I am trying to write a program that will interact with the Linux tunnel driver. At a very basic level, I simply want to create an application that is able to transfer data over a network tunnel. …
rmrobins
  • 435
  • 2
  • 5
  • 6
27
votes
13 answers

Tunnel over HTTPS

At my workplace, the traffic blocker/firewall has been getting progressively worse. I can't connect to my home machine on port 22, and lack of ssh access makes me sad. I was previously able to use SSH by moving it to port 5050, but I think some…
ephemient
  • 198,619
  • 38
  • 280
  • 391
24
votes
6 answers

Something compareable to 'localtunnel' for Windows

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…
woezelmann
  • 1,355
  • 2
  • 19
  • 39
21
votes
2 answers

ngrok speed became slow

Ive been using ngrok to test an app on my phone, with react-native for the past 2 weeks. And so far its been pretty decent and quick. Until today. Now it suddenly takes about 50 seconds for a request to make a roundtrip from my phone, to my…
Kylie
  • 11,421
  • 11
  • 47
  • 78
19
votes
2 answers

Simple SSH Tunnel in Java

I want to create an SSH Tunnel in Java. I noticed quite a few Java SSH libraries on another post. Before I dig into each option, maybe someone can give me some code snippets of how they did it or at least tell me which client library would work…
User1
  • 39,458
  • 69
  • 187
  • 265
19
votes
3 answers

Tunneling httplib Through a Proxy

I am trying to figure out how to send data to a server through a proxy. I was hoping this would be possible through tor but being as tor uses SOCKS it apparently isn't possible with httplib (correct me if I am wrong) This is what I have right…
Max00355
  • 827
  • 2
  • 12
  • 28
19
votes
1 answer

what's distinction of HTTP proxy, tunnel, gateway?

all, I see the terms from RFC 2616. http://www.w3.org/Protocols/rfc2616/rfc2616-sec1.html#sec1 But I can't understand the distinction of the proxy, tunnel and gateway? Can anyone give me a simple explanation of them? Thanks.
flygoast
  • 2,591
  • 3
  • 15
  • 8
18
votes
1 answer

How to keep ngrok running even when signing off of a server

I have ngrok running on a server I remote into. I start it by using the obvious, ngrok.exe http 80. The problem is that when I sign off on that particular server, ngrok will close out and I will lose my tunnel. Is there a way I can keep the ngrok…
Yusha
  • 1,496
  • 2
  • 14
  • 30
1
2 3
39 40