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

mysqldump via SSH tunnel

I have a server setup as follows: webserver (gateway machine, accessible from the Internet via SSH) dbserver (database server, not accessible from the web) My goal is to use mysqldump to pull a backup from dbserver to my laptop via the web. Up to…
SigmaX
  • 463
  • 6
  • 13
7
votes
2 answers

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

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…
ManKeer
  • 543
  • 2
  • 6
  • 27
6
votes
1 answer

ssh port forwarding (tunneling) in linux

I have a specific scenario that I want to solve. I currently connect to a host via port forwarding: laptop -> gateway -> remote_server_1 and another host: laptop -> remote_server_2 with passwordless login working on both. Neither of the remote…
tdc
  • 8,219
  • 11
  • 41
  • 63
6
votes
4 answers

WPF Tunneling, practical use?

What practical scenarios need to use Tunneling of events? I know a vague answer to this could be that it is used when we want to handle a event across the visual/logical on which event is raised. But that's just theory. In practice why should I…
WPF-it
  • 19,625
  • 8
  • 55
  • 71
6
votes
1 answer

How to build a localtunnel / ngrok clone

Services like ngrok and localtunnel exist so you can (and I'm not very keen in describing this) put your localhost on the public web for access on a public URL. Localtunnel appears more popular. My question is, at a general level / high-level…
Lance
  • 75,200
  • 93
  • 289
  • 503
6
votes
2 answers

Curl through an intermediate server

I need to send PUT/GET/POST request with curl through a custom port from client1 to server2. However, server2 only accepts these requests from server1, and denies client1 if connected directly. What would be the best way to tunnel curl requests from…
Arman
  • 927
  • 3
  • 12
  • 32
6
votes
1 answer

Connecting to an HTTPS proxy using OkHttp

Our environment just allows HTTPS connections so they provide us an HTTPS proxy which is the only way of connecting to the outside world. We have to route all traffics through this proxy as well as our Java application (a which uses OkHttp as its…
Amir Karimi
  • 5,401
  • 4
  • 32
  • 51
6
votes
0 answers

Implementing VPN in an embedded system using LwIP

I've been asked to implement VPN capabilities in an existing software project on an embedded system, in order to make the device available via network to an external server while avoiding trouble with firewalls (no need for encryption, just to make…
6
votes
0 answers

Reverse SSH Port Forwarding in C#

I came across this article when trying to put together a reverse SSH solution in visual studio C#: .NET SSH Port Forwarding Using his code works up until the point where I actually start the port (port.Start()), then it throws an exception. Doing a…
Sean Perryman
  • 251
  • 3
  • 15
5
votes
3 answers

TUNTAP interface in C (Linux) : Can't capture UDP packets sent on the TUNTAP with sendto()

I am trying to write a tunneling program in C that will take UDP packets from a TUNTAP interface and send them to a serial interface. What I do is allocate the interface from the clone device /dev/net/tun, turn it on and give it an ip address : int…
5
votes
1 answer

paramiko: SSH port forwarding to get SQL dump

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…
cranberry
  • 51
  • 1
  • 4
5
votes
1 answer

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

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…
buzzinolops
  • 311
  • 1
  • 3
  • 7
5
votes
7 answers

Cannot get ngrok to serve up my WordPress site

I have a simple wordpress install using Mamp Free Version on OS/X. Version 2.0.19/2.0.19 Web Interface h#tp#//127.0.0.1:4040 Forwarding h#tp#//6c219c8e.ngrok.io -> localhost:8888 …
Stacy
  • 51
  • 1
  • 1
  • 6
4
votes
1 answer

initiating a rtsp connection over cellular with android

The majority of sim accounts are public dynamic. Most if not all cellular providers do not allow incoming connections to public dynamic ip addresses. (3g anyway, maybe not 4g/LTE) The issue of connecting is not one of dynamic ips, but rather blocked…
michael
  • 2,577
  • 5
  • 39
  • 62
4
votes
0 answers

Remote tunnel setup stuck on github signin

I would like to preface that I am new to stack overflow as a whole and I hope this is the proper way to ask questions here, if not please let me know how I can improve. Before I get to the main problem I should address my end goal as I am not…
1
2
3
19 20