Questions tagged [tun]

81 questions
0
votes
1 answer

Is there a way to allow specific permissions to a non-root user?

I have a program that, at some point, create/destroys tun/tap virtual adapters. Obviously, for these specific operations this program requires root privileges. According to the program specifications, root privileges are dropped as soon as they are…
ereOn
  • 519
  • 1
  • 4
  • 16
0
votes
1 answer

Where is the userspace used by TUN/TAP?

When I put data on a wire in qemu what sets the upper limit on the rate of data I can transmit? The situation is I set up two machines A and B create two tap interfaces openvpn --mktun --dev tap0 --user `id -un` openvpn --mktun --dev…
Dave
  • 367
  • 2
  • 5
  • 11
0
votes
1 answer

Simple iptables port forwarding with masquerading not working

I'm trying to set up a simple VPN server on EC2 (Ubuntu 12.04) with the Android example ToyVpnServer. Its instructions: // There are several ways to play with this program. Here we just give an // example for the simplest scenario. Let us say that…
Yang
  • 1,665
  • 6
  • 21
  • 35
0
votes
1 answer

How's the routing done in a very simple OpenVPN setup?

I've entirely configured (remotely) a Debian GNU/Linux dedicated server hosted in a professional capacity and I've got a network routing question (which AFAICT precisely fits the FAQ of serverfault). That dedicated server has a static IPv4 IP and a…
Cedric Martin
  • 131
  • 1
  • 7
0
votes
2 answers

virtualisation with kvm: export services from guest to the host

I would like to export some services from the guest os to the host os, via kvm, and by the same way learn some things about networking. I have tried the following commands: In the host (kubuntu 10.4): $ sudo tunctl -u ascobol Set 'tap0' persistent…
ascobol
  • 288
  • 2
  • 14
0
votes
0 answers

Why Socket bind not work as expected while tun network running?

environment :windows work cases. socket bind nic1 => get external ip => work => confirm ! I got the external ip for nic1. socket bind nic2 => get external ip => work => confirm ! I got the external ip for nic2. both nic(s) have default route, and…
Jason
  • 1
0
votes
0 answers

NAT Between TUN and Ethernet Network Interfaces

There's a detailed explanation of the setup and my debugging efforts so far, but the main question is at the bottom. I have a setup like so: Machine A has two network interfaces: eth0 (192.168.159.60) and mesh0 (10.255.0.1), where eth0 has a route…
Jordan
  • 117
  • 2
  • 7
0
votes
0 answers

server remot access using VPN FW - TUN vs TAP

I'm trying to improve my home Firewall set up and I'm trying to figure out the best VPN configuration. GOAL: In order to reduce the open ports of my home webserver I thought to use SSH and webmin service only over a VPN connection and keep these…
gipsea
  • 1
0
votes
0 answers

Tun interface name changes

I have a freenas truenas jail connected to the internet using openvpn. the ipfw rule only allows communication through the tun interface that openvpn creates Now, this tun interface used to be always (several years) just tun0 but recently (some…
Juanma
  • 132
  • 8
0
votes
1 answer

Is the outgoing connection from a OpenVPN client to a LAN behind an OpenVPN server forwarded by the server kernel?

I've observed a somewhat strange behavior that I can't quite understand. So I set up an OpenVPN connection as shown in the graphic below. (It's a TUN and client-to-client setup). My thoughts are directed towards the route of ping in this…
Koala
  • 3
  • 2
0
votes
1 answer

proper way of NATing and Routing when using TUN interface with iptables

edit: I'm a newbie in networking and discovering new things :) I created a TUN interface programmatically and able to interact with. I set it up and running by ifconfig myTun 10.10.1.1/24 up and its up and running as I can see it in ifconfig and…
0
votes
0 answers

Reply IP packets lost when using eBPF and AF_XDP --- where do they go?

I have a test case eBPF/AF_XDP test case which is supposed to take incoming ethernet packets from an interface, send them to user-space using an AF_XDP socket, filter them according to some criterion (for the moment I am accepting all packets), and…
Chris Ward
  • 69
  • 5
0
votes
0 answers

Is it possible to read less than 4 bytes from TUN device when IFF_NO_PI is not set?

I was reading the implementation of wireguard-go, and found it handles reading less than 4 bytes from the TUN device file when the no packet information flag is not set. I wonder is it possible that this can happen without any error? And how can?…
0
votes
1 answer

I am creating a tun interface with sudo ip tuntap add dev mod tun, but it's not receiving packets when I ping it?

Here are my command when I set up the interface: sudo ip tuntap add dev router0 mod tun sudo ip addr add 10.0.0.138/24 dev router0 sudo ip link set dev router0 up Here is the output of ip addr show dev router0 8: router0:…
0
votes
0 answers

tun2socks configuration not working

I am trying to configure a tun2socks server that forwards all traffic to an external proxy found online. I also want to retain the ability to ssh into the server so I had to take this into consideration. So far the steps I have gathered are the…