Questions tagged [tunnel]

The tag has no usage guidance.

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

How to understand why ipsec and gre doesn't encapsulate traffic ? I wan't both

ip tunnel add ipsec0 local (my laptop after phone modem) 193.168.48.221 remote 196.196.196.20 (NordVpn server) mode gre ip link set ipsec0 up ip route add (my SPI's ip) 10.6.0.1/32 dev ipsec0 After ...
0
votes
0answers
22 views

iptables - help me figure out if my forwarding scheme is correct?

I want to forward everything from wlan0 to tun0, and everything from tun0 to wlan0. Using sudo iptables -S command, the output is:(assuming this is the actual rule of my iptable) -P INPUT ACCEPT -P ...
1
vote
2answers
67 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 ...
0
votes
1answer
115 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 ...
0
votes
1answer
84 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 ...
0
votes
0answers
124 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....
0
votes
0answers
9 views

How to load a project from a Google Cloud VM that runs Ubuntu 18.04 into my local PyCharm Pro in my local Ubuntu 20.04?

Is there a way I could load a folder/project from a GCP VM into my local PyCharm Pro in my local machine so that changes would be affected in the GCP VM and what's the process for that? I connect to ...
1
vote
0answers
188 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
1answer
46 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 ...
0
votes
1answer
518 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 ...
0
votes
0answers
91 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.
0
votes
0answers
89 views

ICMP localhost udp port unreachable

I've created a GRE tunnel over FOU. The tunnel data is passed through a communications protocol known as SRT. My issue is at the tail end where the UDP packets are sent to the tunnel end through port ...
0
votes
1answer
387 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
0answers
13 views

Accessing a website on a server on my laptop

I have a Windows laptop and am trying to access a website on a server on my laptop. I first tried: Connecting to a VNC session and try to access the internet on the server through the GUI. But it is ...
1
vote
2answers
512 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
1answer
46 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
0answers
96 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
1answer
53 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 ...
1
vote
0answers
29 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/...
1
vote
0answers
41 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 ...
0
votes
0answers
95 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 ...
0
votes
1answer
473 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. ...
0
votes
1answer
240 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 ...
1
vote
0answers
30 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 (...
2
votes
1answer
2k 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 ...
2
votes
1answer
5k 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 ...
1
vote
0answers
136 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 ...
0
votes
1answer
962 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. ...
1
vote
1answer
1k 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 ...
1
vote
0answers
218 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 -...
0
votes
1answer
2k 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 ...
1
vote
0answers
426 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 ...
0
votes
1answer
115 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 ...
1
vote
0answers
516 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 ...
0
votes
1answer
1k 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: ...
1
vote
0answers
116 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 ?
4
votes
2answers
13k 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 ...
1
vote
1answer
859 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?
2
votes
2answers
276 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 ...
0
votes
1answer
314 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 ...
1
vote
1answer
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 ...
3
votes
1answer
4k 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 ...
2
votes
0answers
1k views

PPTP Split Tunnelling

I have VPN on Linux with PPTP protocol. What I want to do is some kind of split tunnelling, which means that I need to use my real IP on some specific internet software, and use the VPN on the rest of ...
2
votes
1answer
954 views

What does the @ sign mean after a tunnel interface?

I previously asked a question on setting up a ipv4 to ipv6 tunnel. I answered my own question and this is configuration output from my previous question here https://askubuntu.com/a/992872/13903 4: ...
10
votes
2answers
4k 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
1answer
948 views

SSH Access via tunneling

I have the following setup, Machine A (Windows 10 & connected to ISP(X)) and Machine B (Windows 10 & connected to ISP(Y)). Both of these machines (A & B) do not have any direct ...
2
votes
1answer
801 views

How can I keep SSH connection alive?

I use Ubuntu 14.04 on my server and I've added these lines into /etc/ssh/ssh_config: (as it's mentioned here) ServerAliveInterval 300 ServerAliveCountMax 2 ClientAliveInterval 300 ClientAliveCountMax ...
0
votes
1answer
956 views

ip tunnel of network 10.0.0.x (machine A) via 152.83 to machine B

I am trying to set up a tunnel 'gre'. THe setup is as follows. On machine A, I have two networks: 10.0.0.x (eth2) and 152.83.x.x (eth1). To machine A, I have connected other machines that share 10.0.0....
1
vote
1answer
892 views

Adding tap device to bridge causes DNS to fail (sometimes)

I am on Ubuntu xenial (16.04 LTS), since I use virtualization, I decided to make a bridged network. I created the bridge in /etc/network/interfaces like so: iface eth0 inet manual auto br0 iface ...
0
votes
0answers
199 views

Could not create tunnel device. Fatal. when running icmptx

I'm trying to follow this tutorial on using ICMP protocol to access the internet to bypass a public WiFi's authentication page. Why do I get Could not create tunnel device. Fatal. when I run icmptx -...