Questions tagged [tunneling]

Tunneling is a technique that enables remote access users to connect to a variety of network resources through a public data network.

Tunneling is a technique that enables remote access users to connect to a variety of network resources (Corporate Home Gateways or an Internet Service Provider) through a public data network.

By using Tunneling one can (for example) carry a payload over an incompatible delivery-network, or provide a secure path through an untrusted network.

Users can also use tunneling to "sneak through" a firewall, using a protocol that the firewall would normally block, but "wrapped" inside a protocol that the firewall does not block, such as HTTP. If the firewall policy does not specifically exclude this kind of "wrapping", this trick can function to get around the intended firewall policy.

Major tunneling protocols (ie: Layer 2 Tunneling Protocol (L2TP), Point to Point Tunneling Protocol (PPTP), and Layer 2 Forwarding (L2F)) encapsulate Layer 2 traffic from the remote user and send it across the public network to the far end of the tunnel where it is de-encapsulated and sent to its destination. The most significant benefit of Tunneling is that it allows for the creation of VPNs over public data networks to provide cost savings for both end users, who do not have to create dedicated networks, and for Service Providers, who can leverage their network investments across many VPN customers.

289 questions
49
votes
10 answers

ssh: check if a tunnel is alive

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…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
35
votes
1 answer

How VPN works in Android and List of APIs available? (lollipop)

###Reference: Android 4.0 has an API to build VPN services. VPNService (Android Docs) VPNService.Builder (Android Docs) Arne Schawbe's Implementation of OpenVPN for Android (github) One such app with a VPN service is NetMotion Mobility® (Google…
NitZRobotKoder
  • 1,046
  • 8
  • 44
  • 74
33
votes
4 answers

targeting dev sites with vhost setup using ngrok

I'm trying to tunnel a clients site in my sites directory with "ngrok http -host-header = client1.dev 80", I get a 404 when accessing the url. After some experimenting, if I put an index.html file in the home directory, it will display that file.…
paul degrand
  • 345
  • 1
  • 3
  • 7
24
votes
1 answer

ssh -D ; but in reverse?

Is it possible to set up an SSH tunnel with dynamic port forwarding like this: ssh -D but do it the other way around? That's to say I want to initiate the connection on my local machine and have the dynamic port forwarding happen there, and have…
user103862
  • 241
  • 1
  • 2
  • 3
22
votes
2 answers

SSH to server behind firewall

I am currently trying to work out how to SSH to servers behind firewalls that deny all incoming connections. The servers can SSH out, so I am wondering if there is a way to get the server behind the firewall to create an SSH tunnel to my…
Harry
  • 4,660
  • 7
  • 37
  • 65
21
votes
5 answers

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

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…
Marcus
  • 1,857
  • 4
  • 22
  • 44
18
votes
3 answers

UDP Hole Punching Java Example

I want to do UDP Hole Punching with two clients with the help of a server with a static IP. The server waits for the two clients on port 7070 and 7071. After that it sends the IP address and port to each other. This part is working fine. But I'm not…
Crossader
  • 316
  • 1
  • 2
  • 9
14
votes
1 answer

SSH stuck to client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0

I am trying to connect to a vagrant machine on my mac (I'm using Mac OS High Sierra). I'm using a private key to connect to it but I get stuck on this line: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 I use the following…
net_programmer
  • 360
  • 1
  • 2
  • 11
13
votes
2 answers

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

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…
pflz
  • 1,891
  • 4
  • 26
  • 32
13
votes
5 answers

HTTPS proxy tunneling with the ssl module

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…
Eli Courtwright
  • 186,300
  • 67
  • 213
  • 256
11
votes
2 answers

Subversion through a tunnel

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…
tlunter
  • 724
  • 1
  • 5
  • 14
10
votes
4 answers

PHP connect via SSH tunnel to LDAP in other network

I'm developing website for my school. In that school we authenticate users via LDAP, so there was an idea to do the same via school-site. On that site everything is working perfectly, but during developing I need very often to test if such solution…
Hfaua
  • 103
  • 1
  • 7
9
votes
1 answer

ftp through ssh tunnel

I have a machine running an ftp server and I'd like to access it from a machine located on another network behind a router only authorizing port 80. I was thinking of a ssh tunnel like: ssh -L local_port:${ftphost}:20 user@{sshhost} Where…
Luc
  • 16,604
  • 34
  • 121
  • 183
9
votes
1 answer

SSH Remote Port Forwarding Specify Interface

I use this for remote port forwarding over SSH tunnel: ssh root@X.X.X.X -R 443:127.0.0.1:443 this binds to 0.0.0.0:443 and forwards to 127.0.0.1:443 . The remote server has multiple IPs. Is it possible to specify the IP I want to bind to, for…
Stefan D
  • 1,229
  • 2
  • 15
  • 29
8
votes
3 answers

Port Forwarding

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…
Muthu
  • 2,675
  • 4
  • 28
  • 34
1
2 3
19 20