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 ...
Jens's user avatar
  • 177
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 ...
JaSON's user avatar
  • 123
0 votes
0 answers
136 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-...
matthieu's user avatar
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
ash m's user avatar
  • 1
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 ...
Fateh Ali's user avatar
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... [...
Coopdis's user avatar
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 ...
Afshin's user avatar
  • 513
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 ...
PouJa's user avatar
  • 163
-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 ❤️ ...
Amirhossein's user avatar
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 ...
Max's user avatar
  • 392
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 ...
AlexLee's user avatar
  • 151
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 -...
Ido Segal's user avatar
  • 141
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 ...
Ctpelnar1988's user avatar
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:...
sancho.s ReinstateMonicaCellio's user avatar
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' | ...
Sebastian's user avatar
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 ...
Bej's user avatar
  • 151
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 ...
Ralph Bolton's user avatar
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
mtks's user avatar
  • 1
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 ...
Naresh Singh's user avatar
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:...
genderbee's user avatar
  • 850
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....
ivsterr's user avatar
  • 31
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 ...
Yisrael's user avatar
  • 13
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 ...
Carol.Kar's user avatar
  • 163
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 ...
AlexP's user avatar
  • 103
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....
Pe60's user avatar
  • 11
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 ...
Vincent_'s user avatar
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 ...
Shivank Anchal's user avatar
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 ...
user2841769's user avatar
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.
rish.uk's user avatar
  • 11
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://...
Guerlando OCs's user avatar
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 ...
Akib Azmain Turja's user avatar
1 vote
1 answer
871 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 ...
Jack's user avatar
  • 81
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 ...
Bluebeep's user avatar
  • 2,261
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 ...
Jack's user avatar
  • 81
1 vote
0 answers
248 views

When I set up a user account restricted to port forwarding, `command="/bin/echo message"` blocks `permitopen`

I'm trying to set up a user account that can only set up a tunnel for port forwarding on a specific port (9229). I've created the user with a minimal home folder (just a .ssh folder and .ssh/...
nerdlinger's user avatar
1 vote
0 answers
65 views

Setting up a direct wireless connection

Ubuntu 18.04.4 LS I have a headless raspberry pi that I connect to my laptop and edit through an Ethernet cable. My goal is to get rid of the Ethernet cable. With no access to the internet, is it ...
Jack's user avatar
  • 81
0 votes
0 answers
192 views

Network interface configuration

I understand (kind of) the way this file works in etc/network/interfaces. My question is, is this the right way to think? I want to set up a static IP address, so that whenever I start up my Ubuntu ...
Jack's user avatar
  • 81
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. ...
Dr_Venom's user avatar
0 votes
1 answer
2k views

Adding an ip address on startup

I have a raspberry pi 4 with Ubuntu Server running. I got it to start up. I am running an Ethernet cable directly from my laptop to the raspberry pi. On my laptop, I manually set the Ethernet IP ...
Jack's user avatar
  • 81
1 vote
0 answers
135 views

Linux gateway is forwarding traffic to its own gateway when tunnel is down

I have a box (192.168.1.2) that connects to a VPN creating a tunnel. This box has a 192.168.1.1 default gateway which is my router's internal address. The rest of my network has 192.168.1.2 (...
QCIHDTM's user avatar
  • 11
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 ...
bryanl's user avatar
  • 51
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 ...
KeyszerS's user avatar
  • 213
1 vote
0 answers
261 views

Proxy within a proxy using SSH Tunnel

There's a problem with Iranian internet connections in the few past days. Yesterday, one of my friends said I can connect to the global internet (we have access to Iranian websites which hosted inside ...
Muhammadreza's user avatar
0 votes
1 answer
4k views

OpenVPN tun0 routing on server

I have an OpenVPN tun0 10.8.0.0 255.255.255.0 There is an interface on the server eth1 for 192.168.0.0 255.255.255.0 I would like to route the OpenVPN connections to access the 192.168.0.0 network. ...
Tibby's user avatar
  • 103
1 vote
1 answer
4k views

Configure GRE via Netplan (headless/aws)

How to translate the below to a Netplan yaml file with networkd as the renderer? At the command line these commands work and build a GRE tunnel with an MTU of 1476. ip tunnel add gre1 mode gre ...
Ian's user avatar
  • 11
1 vote
0 answers
403 views

Unable to use remote x11vnc on a ssh tunnel

I want to connect to my desktop at work via vnc. Here how I did: On the remote machine I ran: autossh -M 8081 -NR 2222:localhost:22 -p3082 [email protected] On local machine I ran: ssh -vvv -...
Tiana987642's user avatar
0 votes
1 answer
4k views

Cannot connect to X display using an ssh tunnel in WSL bash

I have VcXsrv installed on windows and I run ssh -NfXY -t -o ServerAliveInterval=30 -L 2121:PCNAME:21 -L 2020:PCNAME:20 -L 2222:PCNAME:22 USERNAME@SERVER to tunnel through the university server to ...
Lucidnonsense's user avatar
1 vote
0 answers
757 views

Port Forwarding between 2 hosts in VPN

I'm having some problems while trying to set port forwarding rules on a Ubuntu machine. I'll explain my situation.. I have a Raspberry in my local home's network and I have a webserver installed on ...
Samuele Allegranza's user avatar
0 votes
1 answer
146 views

How to connect locahost with my outside Database

i to want to connect from my Computer to my outside Database . SSH information from my Web-Host SSH IP: .224.138. SSH Port: 65002 SSH Username: 2907***** SSH Password: *********** I have a ...
iratxe's user avatar
  • 1
1 vote
0 answers
761 views

IPSEC configure over GRE tunnel in ubuntu

I have created a GRE tunnel between to clients and they ping together but the problem is that as we know GRE only encapsulates and does not encrypt the packets. I have seen thousands of tutorials on ...
mal09's user avatar
  • 11