Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [tunnel]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How to access web server with public IP through private tunnel?

There are 2 networks like this image and a site to site tunnel. Users in site 1 (Home) can access the web server in site 2 (Office) with its private IP, but I want them to access the web server ...
user avatar
  • 1
0 votes
0 answers
8 views

UBUNTU SSH tunnel not working with Rsyslog

I want to send Rsyslog request through ssh tunnel. client(C) <----------------------> server(S) On the client side I run this: ssh -L 2222:localhost:514 user@S When I check (netstat -tulpn) the ...
user avatar
  • 1,847
1 vote
1 answer
96 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 -...
user avatar
  • 141
1 vote
2 answers
170 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 ...
user avatar
0 votes
0 answers
91 views

Why the Apache2 is not redirecting the Websocket traffic?

A web browser uses the following command to connect to server 1: var websocket = new WebSocket("wss://mywebsite.com:6789/); server 1 should redirect all the websocket traffic to server 2 which ...
user avatar
  • 135
0 votes
1 answer
212 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:...
user avatar
0 votes
1 answer
1k 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' | ...
user avatar
0 votes
0 answers
31 views

wireguard implementation with 3 servers for ping time

i wanna get fastest ping time via wireguard for gaming in iran cause of filtering. i see some implmenetation that they have 3 wireguard servers, two of them are outside of your iran and 1 (as ...
user avatar
0 votes
0 answers
794 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 ...
user avatar
  • 141
1 vote
2 answers
285 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 ...
user avatar
0 votes
0 answers
39 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
user avatar
  • 1
0 votes
1 answer
40 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 ...
user avatar
0 votes
2 answers
314 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:...
user avatar
  • 768
0 votes
1 answer
327 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....
user avatar
  • 31
0 votes
2 answers
5k 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
  • 143
0 votes
1 answer
141 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 user@10.2.2.2 This allows me to connect from local server to the remote server, through port 8789, like so : ssh -p 8789 ...
user avatar
  • 43
0 votes
0 answers
873 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....
user avatar
  • 1
1 vote
0 answers
599 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 ...
user avatar
1 vote
1 answer
60 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 ...
user avatar
0 votes
1 answer
843 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 ...
user avatar
1 vote
0 answers
312 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.
user avatar
  • 11
1 vote
1 answer
1k 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://...
user avatar
1 vote
2 answers
1k 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 ...
user avatar
0 votes
1 answer
99 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 ...
user avatar
  • 61
0 votes
0 answers
123 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 ...
user avatar
  • 1,731
0 votes
1 answer
128 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 ...
user avatar
  • 61
1 vote
0 answers
82 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/...
user avatar
1 vote
0 answers
50 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 ...
user avatar
  • 61
0 votes
0 answers
114 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 ...
user avatar
  • 61
0 votes
1 answer
737 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. ...
user avatar
0 votes
1 answer
699 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 ...
user avatar
  • 61
1 vote
0 answers
64 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 (...
user avatar
  • 11
3 votes
1 answer
4k 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 ...
user avatar
  • 31
3 votes
1 answer
12k 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 ...
user avatar
  • 203
1 vote
0 answers
179 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 ...
user avatar
0 votes
1 answer
2k 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. ...
user avatar
  • 3
1 vote
1 answer
2k 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 ...
user avatar
  • 11
1 vote
0 answers
321 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 censor@censor.sytes.net On local machine I ran: ssh -vvv -...
user avatar
0 votes
1 answer
3k 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 ...
user avatar
1 vote
0 answers
682 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 ...
user avatar
0 votes
1 answer
123 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 ...
user avatar
  • 1
1 vote
0 answers
586 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 ...
user avatar
  • 11
0 votes
1 answer
2k views

Keyboard layout of terminal through X11 ssh tunnel is wrong - how to fix?

If I display a terminal over an ssh tunnel (X11 forwarding) to Xming on a Windows 10 PC, the keyboard setting is wrong. On the Ubuntu machine itself, the keyboard setting is correct. What puzzles me: ...
user avatar
  • 173
1 vote
0 answers
147 views

How can I create GIF tunnel in ubuntu

I am able to create GRE tunnel in ubuntu. But I know that GRE cannot carry layer2 traffic, that's why I want to use GIF tunnels instead. How can I create GIF tunnel in ubuntu ?
user avatar
8 votes
4 answers
21k 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 ...
user avatar
  • 83
1 vote
1 answer
935 views

How do I config tunnels in netplan

I cant find any docs on how to bring up tunnels with netplan. Can some point me to the correct docs or does netplan not manage tunnels?
user avatar
2 votes
2 answers
338 views

Transparent VPN Server that can connect to Windows

I have a hosted Ubuntu server with a few extra global IP addresses assigned to subinterfaces (eth0:0, eth0:1). They're inside the same block as the primary IP address assigned to eth0 and are all ...
user avatar
0 votes
1 answer
372 views

Why vxlan tunnel disappear after ifdown bond?

I created a vxlan tunnel using the iprouter2 tool. The command was: ip link add vxlan2 type vxlan id 2 group 233.1.1.1 dev bond0 dstport 4789 But when I restart network or "ifdown bond0", vxlan2 ...
user avatar
1 vote
1 answer
3k views

Ubuntu SSH tunnel to server [duplicate]

I used to have my PC on Windows and use Putty to forward internet traffic so it would get through my VPS (located in another country) and give me the opportunity to look like I'm located there ...
user avatar