tunneling

Why doesn't systemd-networkd add address and peer to the tun interface?

Why doesn't systemd-networkd add address and peer to the tun interface? I’m trying to create tun interface and to add address and peer to it via .netdev and .network files of systemd-networkd. I’m using Ubuntu 22.04.3 LTS and systemd 249. I have two following configuration files: /etc/systemd/network/991-tun1.netdev [NetDev] Name=tun1 Kind=tun [Tun] User=me /etc/systemd/network/991-tun1.network [Match] Name=tun1 …

Total answers: 1

Traffic shaping ineffective on tun device

Traffic shaping ineffective on tun device I am developing a tunnel application that will provide a low-latency, variable bandwidth link. This will be operating in a system that requires traffic prioritization. However, while traffic towards the tun device is clearly being queued by the kernel, it appears whatever qdisc I apply to the device it …

Total answers: 1

Route all traffic from one interface (default gateway) through OpenVPN / tun0 – policy based routing, dependent on source address/interface

Route all traffic from one interface (default gateway) through OpenVPN / tun0 – policy based routing, dependent on source address/interface I have a Debian Linux VPN router myvpnserver with 2 interfaces, eno1 and eno2: eno1 is connected to a LAN and an internet router. On this interface with static IP address, myvpnserver has its default …

Total answers: 1

Connect to host machine from WSL2

Connect to host machine from WSL2 Problem Can’t connect to Windows X Server (VcXsrv) from WSL2 due firewall rules (sometimes it works, but sometimes it doesnt; it’s very strange). Changing the firewall rules is not possible. But any connection from Windows to WSL2 just works. Idea Is it possible to run a client/server pair as …

Total answers: 1

SSH with a bastion host and different usernames

SSH with a bastion host and different usernames I want to log into a linux server using two sequential bastion hosts. My .ssh/config file looks something like this: Host * User username0 Host hostname0 Hostname foo Host hostname1 Hostname bar Port 0 ProxyCommand ssh -W %h:%p hostname0 Host hostname2 User username2 Hostname bat Port 1 …

Total answers: 1

Why doesn't FTP work through my ssh tunnel?

Why doesn't FTP work through my ssh tunnel? Computer A (assumed that ip is 44.44.44.44)can ftp the host 130.89.148.12. ftp 130.89.148.12 Connected to 130.89.148.12. 220 ftp.debian.org FTP server Name (130.89.148.12:debian8): anonymous 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. Computer B (my local …

Total answers: 1

Understanding tun0 addresses

Understanding tun0 addresses I have already done some searching and more or less understand what a tun0 interface does. I got the following from various sources, Packets sent by an operating system via a tun/tap device are delivered to a user-space program which attaches itself to the device. A user-space program may also pass packets …

Total answers: 1

GRE supported in kernel but iproute2 cant create GRE tunnel

GRE supported in kernel but iproute2 cant create GRE tunnel Im trying to create IP over GRE tunnel but i get No such device: ip tunnel add gre0 mode gre remote 192.168.152.22 local 192.168.152.21 ttl 255 ioctl: No such device I have compiled GRE support in my kernel: CONFIG_NET_IPGRE_DEMUX=y CONFIG_NET_IPGRE=y CONFIG_NET_IPGRE_BROADCAST=y There is not gre0 …

Total answers: 3

What is the tun network interface for?

What is the tun network interface for? I noticed when running ifconfig that there is a network interface called tun0 and it has an ipv4 address. A bit of research shows that it is a tunneling device, but I don’t really know how it’s used, what’s using it, and why it has an IP address. …

Total answers: 4

Forward all ports SSH

Forward all ports SSH I have a question about SSH/Port forwarding. I haven’t found the solution anywhere and don’t know if there is any. I have a server behind my NAT box at home. I have port forwarding from my NAT box to my server for SSH on port 22. Hence, I connect to my_nat_public_ip:22 …

Total answers: 1

Simple way to create a tunnel from one local port to another?

Simple way to create a tunnel from one local port to another? I have a development server, which is only accessible from 127.0.0.1:8000, not 192.168.1.x:8000. As a quick hack, is there a way to set up something to listen on another port (say, 8001) so that from the local network I could connect 192.168.1.x:8001 and …

Total answers: 8

Tunnel traffic through another machine over ssh

Tunnel traffic through another machine over ssh I want to be able to route a portion of my traffic through another machine over SSH. For example, is it possible to browse the web through the ssh tunnel and also browse the web through your LAN connection without much effort? (i.e. I want a seamless transition …

Total answers: 1