Questions tagged [tunnel]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
63 views

Slow SSH tunnel connection

I have three machines: mypc (Ubuntu 22.04, behind a NAT firewall) myserver (Ubuntu 22.04, a server on the public internet) openwrt (OpenWRT 23.05, on a NAS device behind a different NAT firewall) I ...
81 votes
6 answers
224k views

How can I make VirtualBox guests share the host's VPN connection?

Question When I start my VPN on my ubuntu desktop computer which acts as a router, the attached subnet loses internet connectivity, but is still accessible (LAN). Ideally, I would like to know how to ...
0 votes
1 answer
4k views

Configure GRE tunnel to start on reboot?

I'm trying to configure GRE tunnel (between 2 VBOX ubuntu server 12.04 LTS on win 7 host) but it keep failed. The configuration in /etc/network/interfaces # VBOX A ip address 172.168.1.1 /24 ip tunnel ...
0 votes
2 answers
80 views

How to allow user to SSH-connect to VM deployed on host without access to host itself

I have an UbuntuOS host (let say, 150.15.15.15) and another UbuntuOS virtual machine (192.168.7.2) deployed on that host. I want to configure SSH-tunnel on host so that remote user can connect to VM ...
4 votes
1 answer
6k views

Ubuntu 18 Server GRE tunnel with netplan?

How do I create a GRE tunnel with netplan? Previously in /etc/network/interfaces, I would do.. iface gr0 inet manual pre-up ip tunnel add gr0 mode gre remote 10.10.10.10 local 10.20.10.10 dev ens33 ...
0 votes
0 answers
135 views

How to set a static IP on a `tunnel` network?

I am using amazon AWS VPN endpoint and I have a ubuntu 20.04 client for which I would like to have a static IP on the VPN network. I cannot find any examples on how to setup the /etc/netplan/50-cloud-...
0 votes
0 answers
27 views

forward l2tp client to expressvpn

i have ubuntu server and connected to ExpressVpn can i forward l2tp to ExpressVpn? User => l2tp connection => ExpressVpn thanks
0 votes
0 answers
330 views

Openfortivpn ERROR: connect: Connection timed out

Always get error like this after accidentally unplug power source laptop (and no battery) while openfortivpn was running. ┌──(user@laptop)-[~] └─$ sudo openfortivpn [sudo] password for ...
0 votes
1 answer
397 views

Trouble setting up persistent SSH tunnel via Systemd

I'm trying to get a persistent SSH tunnel running on Ubuntu 22.04. My command works fine from the command line, but fails when run via a systemctl service? Here is my (redacted) rtunnel.service... [...
1 vote
2 answers
2k views

DBeaver tunnel connection says ssh-keygen permission denied

I tried connecting to my remote DB on DBeaver through a tunnel configuration. I added the required details and tried connecting with my ssh private key, but it is throwing an error saying permission ...
85 votes
1 answer
189k views

How do I tunnel and browse the server webpage on my laptop?

I run a web app in one of my lab servers, and I have already setup X11 Forwarding on those machines. Other lab members can tunnel through SSH, and browse that web app on their local browser at home. ...
0 votes
1 answer
501 views

How can I connect two ubuntu server with L2TP v3?

My scenario is I want to run a VPN server on the Ubuntu server. but, because my ISP blocks the outbound connection to outside the country I have to first connect to a server in the data center, and ...
13 votes
5 answers
36k views

Use Remmina 1.2.0 with SSH tunneling

I'm using SSH tunnel and remmina client to connect to the remote machine. First I open the tunnel in my terminal: ssh -L 3309:<server_address>:3389 user@<aws_bastion> And then I just ...
10 votes
3 answers
6k views

ipv6 tunnel in Ubuntu 17.10?

I used to be able to do the configuration below with no issues in /etc/network/interfaces but now it's not picked up anymore. How do I configure a ipv6 tunnel now? I see see the new netplan software ...
1 vote
2 answers
21k views

Error in network definition at netcfg.yaml file: unknown key tunnels

I'm using Ubuntu 18.04 bionic. when I try to configure GRE Tunnel in the netcfg.yaml file I encounter an error: Error in network definition //etc/netplan/01-netcfg.yaml line x column x: unknown key ...
5 votes
1 answer
7k views

Permission denied for ssh -R (tunnel)

I am trying to set up a tunnel between port 22 on my work computer (Ubuntu 19.10) to port 44455 on my computer at home (Ubuntu 18.04), so that I can ssh to my work computer from home. (Unfortunately I ...
0 votes
3 answers
1k views

Multiple VPN tunnels between two hosts to increase bandwidth

I set up VPN tunnel between my web server and a proxy server to by pass some restrictions such as the country firewall. The VPN tunnel works well. But when too many requests to my server, all the ...
0 votes
1 answer
1k views

GRE tunnel between two ubuntu servers does not work

I'am trying to set up a gre tunnel between the two of my Ubuntu vps's. Both servers have been used from fresh installations of Ubuntu 20.04. And have no firewall active. I performed based on this ...
-1 votes
1 answer
80 views

Connect 2 server

Hi guys i need tunnel my server to another server My country block to much website. example I have server from iran And have from Germany I need tunnel my iran server to Germany Please i need help ❤️ ...
0 votes
1 answer
734 views

How can I set up my Ubuntu sever as ipv6 tunnel?

I have an Ubuntu server one bare metal that has both ipv6 and ipv4 dedicated, but my home ISP ONLY PROVIDES ME WITH ipv4, is there any sane way of setting up my dedicated server as an IPV6 tunnel ...
8 votes
2 answers
9k views

How to share WiFi/hotspot over SSH tunnel

I have created a SSH tunnel on my laptop connected to LAN. I want to share the internet via WiFi/hotspot, but over the SSH tunnel. I mean any computer using this wireless should connect to the ...
0 votes
1 answer
2k views

channel 34: open failed: connect failed: Connection refused

I'm using a ssh-tunnel to a server (Linux 2.6.32-431.11.2.el6.x86_64 x86_64) with a socks5 proxy. To build up the connection I'm using the following command: ssh -D 62378 [email protected] The socks5 ...
0 votes
0 answers
579 views

SSH tunneling (jump host) combined with X11 forwarding in Remmina

I recently installed Remmina and want to use SSH tunneling ("jump host") combined with X11 forwarding. I'm not entirely sure if my wording is right. I'll explain how I do it manually in the ...
0 votes
2 answers
967 views

ssh tunnel for 443

I need get a file by a link (443), which is only possible from server B. I have 3 servers, (A B C). It is possible to access server B and download this file by wget from server C. wget https://NAME:...
1 vote
1 answer
367 views

Forwarded connection refused by server: Connect failed [Connection timed out]

I have an Ubuntu 20.4 LTS that running Squid as a proxy server. I have a scenario that I'm forwarding traffic from another server to the Linux server using plink with the following command: plink.exe -...
2 votes
2 answers
4k views

Creating a persistent reverse SSH connection from remote server to home client

I have a home client I would like to connect to over SSH from my remote Ubuntu server. currently I create a cron job that persistently calls out from my home client to my remote server. So far I have ...
0 votes
1 answer
946 views

VNC via SSH tunnel working or not, unkown causes

I have Ubuntu 20.04.3, in two computers PC1 and PC2. I can connect via VNC (remmina) between the two with no problem. Now I try to use VNC via SSH tunnel. Set the tunnel [PC1]$ ssh -L 5900:localhost:...
0 votes
1 answer
7k views

cloudflared: command not found in Ubuntu

I have been trying to create a Cloudflare Tunnel with cloudflared on Ubuntu (WSL). I followed the link redirected from here and these are what I did: echo 'deb http://pkg.cloudflare.com/ focal main' | ...
1 vote
2 answers
987 views

Netplan and Ipsec - tell netplan to leave interface alone?

I'm trying to use Strongswan to create an Ipsec tunnel on a server with Netplan. Netplan has currently no configuration for the tunnel1 and tunnel2 interfaces that Ipsec brings up when the tunnels are ...
0 votes
0 answers
62 views

SSH Tunnel Port Forwarding using multiple ethernet device

on Linux Ubuntu, I want each modem to do the ssh tunnel event using its own internet (not according to the selected network on the computer), is something like this possible? Example Diagram Image
0 votes
1 answer
51 views

Can not create tunnel via staging server

I am trying to create a tunnel directly with ssh command. My scenario works well when I do following configuration host: A pass:** Tunnel Section in Putty : 6001:HostXX:22 Open this session now login ...
3 votes
2 answers
5k views

Creating TUN device for IPSEC

Is it possible to create a separate device (like tun made by openvpn) for ipsec? If yes how can I do it?
0 votes
1 answer
1k views

SSH via jump server and then use a command

I have a jump server that I need as a bridge when running commands on another server. I set up the jump server in my ssh config to be hopping and on the jump server, I set the final destination as lb3....
2 votes
1 answer
3k views

ip tuntap add gives "open: No such file or directory"

I'm inside a dockerized ubuntu 20 and trying to run the command below, but I get this error: sudo ip tuntap add dev tun0 mode tun user `id -un` open: No such file or directory tried this: https://...
0 votes
1 answer
337 views

SSH tunneling IP filtering

I have created this tunnel on server 10.1.1.1: ssh -f -N -o -L 8789:10.2.2.2:22 [email protected] This allows me to connect from local server to the remote server, through port 8789, like so : ssh -p 8789 ...
0 votes
1 answer
6k views

ssh tunnel - bind: Address already in use

I am running on my VPS Ubuntu 20.04.1 LTS and locally Ubuntu 18.04.3 LTS and I want to create a ssh-tunnel to connect to my database to run SELECT's for reporting in my laravel 6 application. My ...
1 vote
0 answers
2k views

How to configure IPIP tunnel via Netplan, including routes

I am trying to set up a IPIP tunnel in Ubuntu 18.04 LTS via Netplan config. I managed to set up the tunnel with routes from server A to server B with those ip commands: 85.ll.ll.ll is server A 85.rr....
1 vote
1 answer
798 views

How to setup portforwarding

I have the following setup. Local -- server A -- server B I need to scp, ssh from Local to B. What I do now is I scp/ssh to A and then from A to B.I would like to know how to setup portforwarding, ...
1 vote
0 answers
1k views

Can't run ipv6 tunnel - add tunnel "sit0" failed: No buffer space available

I stack with the error "add tunnel "sit0" failed: No buffer space available". /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp iface eth0 ...
1 vote
1 answer
76 views

How to serve my directory over internet [closed]

I use python -m http.server 8080 to serve my directory over LAN. But how will I serve my directory over Internet. I use pageKite and ngrok to access my machine from Internet. Thanking you for ...
4 votes
1 answer
25k views

How can I permanently delete tun interfaces

I am running Ubuntu 19.10 with openvpn 2.4.7, and over time I have accumulated 40 tun devices, which all show up when I log in. ifconfig confirms that they are all there. I have tried: doing sudo ip ...
158 votes
8 answers
158k views

How do I SSH to machine A via B in one command?

I want to access a computer, say machine A which is based in my university's network. However, this computer is only accessible via the internal network of the university, so I can not use SSH to this ...
0 votes
1 answer
1k views

sftp ssh tunneling and Nautilus (Ubuntu 20.04)

I have a problem with sftp connection via ssh tunnel and use of Nautilus to watch the file inside. If I launch by terminal the command ssh -t -X BASTIONHOST sftp SERVER he ask me the password of ...
1 vote
0 answers
875 views

How do I tunnel audio over SSH?

I am capturing sound on my MacBook and I have SSH access to a Linux Server. I want to be able to forward the audio through SSH to the Linux Server and do some processing on it, remotely.
1 vote
2 answers
3k views

How can I tunnel whole system through HTTP proxy?

I currently use Ubuntu 20.04. I need to use proxy to connect to internet. I have configure every program is use proxy because most software don't respect the http_proxy environment variable. I have ...
0 votes
1 answer
1k views

netplan gre tunnel+quagga

After installing new router with ubuntu 18.04 on it i'm got a problem with working ospf via gre tunnel to my older routers. All configured simular, but from new router i got ospf state Init/DROther. ...
69 votes
2 answers
77k views

Reverse port tunnelling

I need to show somebody a website running on my local machine tomorrow. Normally I'd accomplish this by port forwarding on my local router but thanks to failing hardware and its replacement being ...
1 vote
1 answer
869 views

How to view all current networks around me

I have an Ubuntu Server hosted on a raspberry pi 4. There is no desktop on it, only a terminal. I am trying to figure out how I could view all possible networks around me I could connect to. Then, I’d ...
0 votes
0 answers
215 views

Remote CRUD to MariaDB using persistent SSH tunnel

Hoping someone can help me with this problem. My Setup I have a Client and Server setup both running Ubuntu 18.04.4 LTS. They are both located on different networks. I want to be able to work on the ...
0 votes
1 answer
292 views

How to connect Ubuntu server to laptop network

I have a headless raspberry pi running Ubuntu Server 18.04.4 LTS. I control it with my laptop through an Ethernet cable. I’d like to remove the Ethernet cable. There is an interface ‘wlan0’ that I ...