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
7
votes
1 answer

how to define a tunnel connection to remote desktop in putty?

I need to connect (in rdp ) to a machine (let's call it #1) in my college network ( I have the internal IP of it ) , I also have access the to Linux server machine in the same network in ssh , that I can use to access the #1 , I'm using putty, can…
nabil
  • 904
  • 3
  • 12
  • 28
6
votes
4 answers

Routing all packets through my program?

I want to build an application that routes all network traffic (not just HTTP) through my application. Basically, what I want is all the traffic to be given to my application (they should never reach the actual target, my application should handle…
Bogdacutu
  • 763
  • 7
  • 24
6
votes
0 answers

SSH Tunnel in Python script gets stuck

I need to tunnel with SSH to get access to the database. After creating the tunnel in Python code with sshtunnel (https://github.com/pahaz/sshtunnel/), the script hangs, no further commands are being executed. The last print I see from the provided…
Jim B
  • 641
  • 5
  • 18
6
votes
2 answers

Security implications of a socket race when tunnelling a sub-command

I want to tunnel a sub-command through a connection by listening to a port, running the sub-command (to connect to that port), and then forwarding the data through the connection: package main import ( "fmt" "net" "os" …
Sean Kelleher
  • 1,952
  • 1
  • 23
  • 34
6
votes
1 answer

how to terminate ssh tunnel child process upon bash script exit

I have a bash script that creates ssh tunnel to connect remote mysql server securely as shown below. ssh -f -N -L $LOCAL_PORT:localhost:3306 $REMOTE_USER@$REMOTE_IP mysql -P $LOCAL_PORT -h 127.0.0.1 -u lapl_stg -p${REMOTE_DB_PASS} < ./t1.sql >…
user1026669
  • 143
  • 3
  • 14
6
votes
1 answer

HTTP Tunnel Servlet (Java)

I am trying to write an HTTP tunnel as we want to be able to connect to a remote machine through our web application. While I am aware of the security risks involved, it's something we would like to do. It's not hosted on the internet, but on…
mrswadge
  • 1,659
  • 1
  • 20
  • 43
5
votes
1 answer

Ngrok giving authentication failed: Your account is not permitted to use the agent ingress "connect.ngrok-agent.com"

I have been using ngrok for quite a long time. But today when I try to run ngrok using command ngrok http 3000, The following error pops up. Any idea what's happening? NAME: http - start an HTTP tunnel USAGE: ngrok http [address:port | port]…
Hassan Haroon
  • 94
  • 1
  • 6
5
votes
4 answers

Good tool to manage ssh tunnels on OSX

I'm looking for a good tool to manage ssh tunnels. Currently I'm using SSHTunnel (cocoa-sshtunnel) but its not very secure, if you look at a ps while connected you see the password in plaintext. And there is no way to configure a private key file…
Paul Jacobse
  • 424
  • 1
  • 5
  • 14
5
votes
2 answers

Use Envoy to setup a tunnel between networks

For a hybrid-cloud use-case we are looking into the suitability of EnvoyProxy to act as a solution to move data across an on-premise firewall. The intended setup is as follows: App A is located in an on premise network with no direct outbound or…
Joost Reuzel
  • 308
  • 1
  • 10
5
votes
2 answers

How to allow only tunneled connections to port?

I'd like to make a git-daemon go through a permanent ssh tunnel. I accomplished this task. How do I block any remote untunneled connection to the GIT_DAEMON port (9418 in my case)? I already tried simple rules in iptables (block everything except…
kravitz
  • 973
  • 2
  • 10
  • 22
5
votes
1 answer

How to tunnel remote UNIX socket on Windows machine

On remote UNIX machine I have running MySQL on UNIX socket and I want to have a connection to this MySQL on my local Windows machine. Previously I used next command that works on my Mac: ssh -nNT -L 127.0.0.1:3307:
5
votes
3 answers

Create a passwordless secondary ssh key for setting up a ssh tunnel

I need to create a script that automatically setup a ssh tunnel. I think that a dedicated ssh key without password is a good start but I couldn't find if this is possible and how to do it. This key should have limited privileges (only set the…
ascobol
  • 7,554
  • 7
  • 49
  • 70
5
votes
2 answers

Trying to access remote jupyter notebook via ssh tunnel

I need some help accessing a remote jupyter notebook instance normally, when I am trying to access a jupyter notebook running on a remote server on my mac, I will write the following in a terminal window to create the tunnel ssh -NL…
SirYansalot
  • 53
  • 1
  • 2
  • 5
5
votes
3 answers

Is there a way to get the socket descriptor of the started VPN Tunnel on iPhone so that I could use it in a C++ library

In the simpleTunnel sample app provided by apple, the container app and the packet tunnel provider use IPC for communication. Whenever connect toggle button is enabled startVPNTunnel() API will be called and the OS starts the packet tunnel provider…
bobbydev
  • 525
  • 3
  • 12
5
votes
1 answer

NEVPNErrorDomain Error 1 when trying to start TunnelProvider network extension

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…
Locksleyu
  • 5,192
  • 8
  • 52
  • 77