Questions tagged [tun]

81 questions
4
votes
1 answer

What does ip addr add dev tun1 local 192.168.69.0 remote 192.168.69.1 mean?

I found the following set of commands to open a tun device on linux that relays things to the internet. However, packets are not relayed back to the tun device ip tuntap add dev tun1 mode tun user `id -un` ip link set dev tun1 up ip addr add dev…
Guerlando OCs
  • 67
  • 1
  • 7
3
votes
1 answer

Multiqueue tun/tap interface

I am trying to understand how Multiqueue tuntap interface works. Following the instructions provided at: https://www.kernel.org/doc/Documentation/networking/tuntap.txt I was able to create multiple queues. However, I don't know how to check the…
Deys Nima
  • 51
  • 1
  • 5
3
votes
1 answer

What exactly happens to packets written to a TUN/TAP device?

I'm trying to send packets to an application listening on eth0 from machine's user-space as if they were coming from a remote machine. What I can't seem to find good documentation for is the exact way a TUN/TAP device interacts with the rest of the…
user3467349
  • 131
  • 1
  • 4
3
votes
1 answer

Route packets from one VPN to another

I have two OpenVPN servers (10.8.0.0 and 10.9.0.0) set up on my OpenSUSE server. Within one network, each computer is visible to any other one, but I'd like to make it so that computers are visible across networks. I'd like to route the packets like…
Mike
  • 33
  • 1
  • 3
3
votes
0 answers

How to migrate OpenVPN architecture TAP to TUN

I did a tunnel system with OpenVPN to let a distant client act like a private network client to access private resources. It uses a client on the private network as a gateway. DistantClient <-> OpenVPN server <-> PrivateNetworkClient It works with a…
Doubidou
  • 131
  • 5
3
votes
3 answers

OpenVPN error "Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)"

Hi I get the following error when I try to run openvpn in my Ubuntu Server Fri Jan 8 02:12:59 2010 OpenVPN 2.1_rc11 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Mar 9 2009 Fri Jan 8 02:12:59 2010 WARNING: --keepalive option is…
John Franic
2
votes
1 answer

socat tun device very low throughput

I was tinkering around with socat and tried to use socat for creating a TUN device for tunneling between two debian stretch servers. However, throughput seemed very low and comparing with iperf against TCP/TCP-Listen on localhost, TUN has about 5…
2
votes
0 answers

write into a tun interface and forward traffic to another computer

I have the following setup. An application on machine A creates an IP packet which is captured by the tun1 interface. I have added the route using the command : sudo route add -host 10.129.131.220 tun1. Then I read the packets from the tun1…
Debashish
  • 121
  • 5
2
votes
1 answer

IPv6 on Linux tun/tap: NDP not working

I am working on an old code that used to connect different IPv6 devices over a different kind of network (a powe line netwrok, PLC, which is quite similar to 802.15.4). To do that, it created Linux tun/tap interfaces on each device (Tun actually,…
Woody Wu
  • 191
  • 1
  • 9
2
votes
1 answer

OpenVPN TAP vs TUN in parallel

I have a few questions about our existing OpenVPN server setup and a requirement that we have to expand our access. Our current setup is as follows: 1 OpenVPN server (in TAP mode) Multiple VM servers with host machine physically connected to the…
Adam Blalock
  • 21
  • 1
  • 2
2
votes
1 answer

Issues setting up TINC on Mac OSX 10.12.2

I have TINC setup on a few linux boxes and they are working great. linux001 (static ip vps - 10.0.0.1) macosx002 (connects to linux001 - 10.0.0.2) linux050 (connects to linux001 - 10.0.0.50) I also have a Mac with OSX 10.12.2 that seems to be…
2
votes
2 answers

Use OpenVPN tun device for specific request

I have setup an OpenVPN connection with the route-nopull configuration. So now no special routes have been added to the client's configuration and only a TUN device is created, like so: tun0 Link encap:UNSPEC HWaddr…
Jelle De Loecker
  • 1,094
  • 6
  • 17
  • 30
2
votes
2 answers

openvpn: after changing to server mode, client does not create TUN device

I had a previously working configuration with the config files used in a previous question However, I've changed this now to the following configuration using server mode, everything on the logs seem fine, however the client doesn't create any tun…
lurscher
  • 172
  • 1
  • 3
  • 17
2
votes
1 answer

IP Packet Capture/Manipulation via TUN/TAP

I'm trying to capture and manipulate incoming IP packets (via eth0 interface) by using a TUN device (since I'm only concerned with IP layer). The first step I think is 1:1 packet forwarding from eth0 to tun0, but I can't get this to work via…
Matt
  • 121
  • 2
2
votes
2 answers

qemu commandline can't see /dev/net/tun

i am newbie with qemu and libvirt. I hit the issue with virsh and qemu, especially with tun interface setup. Once i run qemu-system-x86_64 \ -nographic -enable-kvm \ -cpu host -m 2048 \ -serial mon:stdio \ -netdev…