Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tap]

The tag has no usage guidance.

3
votes
1answer
32 views

Why is CAP_NET_ADMIN insufficient permissions for ioctl(TUNSETIFF)?

I'm trying to write a tun/tap program in Rust. Since I don't want it to run as root I've added CAP_NET_ADMIN to the binary's capabilities: $sudo setcap cap_net_admin=eip target/release/tunnel $getcap ...
0
votes
1answer
23 views

Triple tap required for opening files/folders

On my Xubuntu Core 18.04, I need to triple tap every time I want to open a file or folder in Thunar or other applications' (libreoffice, abiword, notepadqq, etc.) menus. Double tap does nothing. The ...
3
votes
1answer
79 views

How to get the Linux network namespace for a tap/tun device referenced in /proc/[PID]/fdinfo/[FD]?

I want to correctly match TAP/TUN devices with the processes they are using, and I want to do this from outside of these processes using TAP/TUN devices (that is, I cannot issue any ioctl()s because I ...
0
votes
0answers
34 views

Tapdev open function returns me 37 value

I am trying to create a tun device and tap interface. But the open function returns 37 value. why? fd = open("/tmp/tun", O_RDWR) https://github.com/contiki-os/contiki NOTE: It works well in my pc ...
0
votes
1answer
72 views

How to read data from tap interface?

I have a problem with network bridges and tun/tap devices. Actually, the main problem is that I am trying to create a network bridge and a tap interface before compile time. And in compile time my ...
2
votes
0answers
66 views

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 ...
0
votes
1answer
44 views

Tap activation for touchpad in Debian 9

I am trying tap activate my touchpad according to this answer Activate tap to click on touchpad? but the problem is that I don't have a folder /etc/X11/xorg.conf.d. Any ideas?
1
vote
0answers
22 views

Linux Bonding Driver Mode 0 And Fault Tolerance

I've been testing a bonded network based on Ubuntu Server 16.04 LTS. The far end of the bond is a VM also running Ubuntu Server 16.04 LTS. The two servers are tied together by two OpenVPN tunnels in ...
0
votes
0answers
105 views

Openstack instance packet drop on tap interface

I am seeing packet drops on openstack instance which is using qemu for hypervisor. I have noticed drops on TX interface and based on documentation I have increased txqueue length from 1000 to 10000 ...
0
votes
0answers
81 views

Automate process of removing tap devices

I am playing about with tap network interfaces for a project, to create a network configuration in QEMU that allows the host and guest to be on the same network. I am using this script to cleanup and ...
3
votes
2answers
273 views

How to find the connection between tap interface and its file descriptor?

I have a qemu VM started by an orchestration script, which creates transient tap interfaces. When I inspect the command line arguments of the qemu-system-x86_64 process, then I can see, that the ...
1
vote
0answers
226 views

connect qemu/kvm(managed by virsh) VM to an existing tap device

I'm using virsh to manage my qemu/kvm VMs. Problematic VM has the following interface configuration: <interface type='bridge'> <mac address='52:54:00:92:f7:f8'/> <source bridge='br-...
1
vote
1answer
161 views

How to make a netctl profile for a TAP device?

Seeking to make a netctl profile for a tap device. Here is the info I was given about the connection. GATEWAY=192.168.117.1 DNS=192.168.117.1 BROADCAST=255.255.255.255 **or** 192.168.117.255 (*I ...
0
votes
1answer
1k views

Firewalld — interface not adding to zone

I have a peervpn interface "tap0" which I am wanting to accept all traffic from. Box is CentOS 7. My understanding is that I just need to add the interface to the "Trusted" zone. When I try this ...
4
votes
1answer
121 views

Does a TAP adapter queue packets?

Does a Linux or OpenBSD TAP adapter queue up packets, or will it miss packets if I try to process them on a single thread as they come in? I'm not worried about not being able to process all the ...
2
votes
1answer
8k views

How to properly configure a tun/tap Interface in linux?

Basically I am trying to create a custom TCP Stack. As you might know I cant use eth0 because linux kernel TCP stack uses that, Due to that I need to create a tun/tap interface and use it for my ...
0
votes
1answer
887 views

How do I disable “tap to click” (touchpad) on KDE5/plasma-based installations? (currently using KDE neon)

I am looking at the System Settings => Input Devices => Touchpad but nothing jumps out. On Ubuntu/Unity, it is obvious which setting to use when wanting to play around with "tap to click". Thanks
3
votes
1answer
807 views

How Can I Connect a TAP to Ethernet?

I am trying to set up a Linux bridge to connect a physical radio (N210) to ns3 via a TAP. The radio is plugged into Ethernet (epn0s25) and I have tried the following console commands: sudo brctl ...
0
votes
0answers
790 views

Writting to a Tun/Tap interface

Recently I've been using a tun interface to redirect the Internet traffic through my methods. To do so, I followed this tutorial. My idea is to have a program which receives the IP packets that go to ...
2
votes
0answers
862 views

How to build a network tap device? [closed]

I'd like to build a network tap device, to intercept traffic between my PC and router. Imagine the raspberry pi or similar device, running linux, having two ethernet ports. I plug it in between my ...
1
vote
0answers
336 views

Tap interface is not receiving packets

I'm configuring a tap interface and trying to send and receive packets through it, i configure it like this: ip tuntap add name tap0 mode tap multi_queue ip link set tap0 up i'm using scapy to send ...
2
votes
0answers
1k views

Arch linux and Gnome tap to click does not work

I am a bit new to arch linux and am having trouble getting tap to click to work. I am not completely sure how the stuff works so I am going to tell you what I did. Firstly, after the basic arch ...
3
votes
1answer
1k views

How can I find out the ownership of a tap interface?

I can set up a persistent Linux tap interface and make it owned by a specific user and group with one of these: tunctl -u someuser -g somegroup -t example.tap ip tuntap add dev example.tap mode tap ...
1
vote
1answer
863 views

Listening on tap device for packets written through file descriptor

I have a problem fully understanding how to use tap devices. I've created a tap device and brought it up and running. A user space programs opens its file descriptor and receives the ethernet frames ...
1
vote
1answer
2k views

For some reason “sudo ssh -w any -o Tunnel=ethernet root@remote” creates tun devices instead of tap devices

To connect multiple tunnel endpoints to a common bridge interface, I have to create a Layer 2 tunnel over ssh. The server is Ubuntu 10.04, the client is Ubuntu 14.04. I have enabled PermitTunnel yes ...
2
votes
1answer
210 views

tapped Ethernet frames are seen partially when interface MTU is smaller than tapped frames

I have a following very simple topology where router r1 sends ICMP "echo request" messages to r2 with 2000 byte payloads and router r2 replies to those messages with ICMP "echo reply" messages: ...
1
vote
0answers
218 views

problem in mirroring interfaces' traffic using OVS

I'm trying to mirror all incoming/outgoing traffic of an interface "eth0" on VM04, to another interface "eth1" on VM01, using open Vswtich integrated with neutron in openstack. Both VMs are in one ...
7
votes
3answers
11k views

Making /dev/net/tun available to qemu?

I have created a tap device (tap0) which I would like to provide as a network interface to qemu. I created the device with the following command and attached it to a network bridge I set up: tunctl -...
3
votes
1answer
823 views

Cannot ping a tap device with ipv6 address

I'm running CentOS 7. First I created a tap device: ip tuntap add dev tap2 mode tap Then I assigned ipv6 address to it: ip -6 addr add dev tap2 fd00:4::1/64 ip link set tap2 up Its state ...
1
vote
2answers
664 views

Script to determine if a TAP interface created by a service is up

My system has a SoftEther VPN service that creates it's own TAP interface when it starts and removes it when it's stops. But even with DHCP running on the VPN, the TAP doesn't configure it's own IP ...
1
vote
1answer
218 views

macvtap on vmware's VM

Does macvtap bridging between VMWARE's VMs? My application works over VMWARE VM and should handle traffic from the net. I'm trying to use macvtap for that purpose: ip link set dev eth1_index promisc ...
0
votes
1answer
616 views

trouble bridging tap0 and tap1

I have a GNS3 router that is connected to tap1 in my host. On the other hand, I have an user application connected to tap0 running locally in my host. I can ping both the router and my application. ...
6
votes
1answer
2k views

difference tun/tap, is the interfaces that handle protocols or the OS?

I have difficulties to understand difference between tap and tun interface. I know it is an often asked question and I apologize for that. I asked the same questions on stackoverflow and someone told ...
1
vote
1answer
2k views

Bridged TAP interface to virtualbox

I need bridged TAP interface on client side of my VPN to virtual machine. I use VirtualBox 4.3.12. But in Adapter Network options in Attached to: Bridged adapter I do not see my TUN adapter. I have ...
4
votes
1answer
3k views

how to intercept IP packets on linux

I am trying to achieve this goal on Linux (not sure if it is possible and how if so): I need to write a program to intercept all IP packets on an interface, and deliver this packet to a specific set ...
2
votes
1answer
2k views

Synaptics Touchpad Tap Lag (FastTaps Option Gone)

I own an Asus Zenbook Prime UX31A with a clickpad. Under the Synaptics driver, I'm trying to use tap-to-click. With the default settings, there is a very noticeable lag between when I tap and the tap ...
19
votes
4answers
20k views

How to know if a network interface is tap, tun, bridge or physical?

As far as I know, there are 4 main types of network interfaces in Linux: tun, tap, bridge and physical. When I'm doing sys admin on machines running KVM, I usually come across tap, bridge and ...
9
votes
3answers
6k views

How to know if a process is attached to a tap interface?

I sometimes come upon machine with tap interfaces (eg, when KVM is running). How can I know which process is attached to the TAP interface?
1
vote
1answer
3k views

How can I force a tap/tun interface into the running state?

I am trying to capture packets on a tun interface with libpcap. I am creating the interface with: openvpn --mktun --dev tun0 When the adapter is setup it appears as so when I run ifconfig: tun0 ...
3
votes
1answer
934 views

What is the kernel doing when I bring a TUN/TAP interface up

I'm playing around with the TUN/TAP device on Linux. I've created a simple program that creates a TAP interface and prints anything that is sent through it. When I bring the interface up with ip link ...
7
votes
1answer
13k views

Why are incoming packets on a TAP interface seen with tcpdump but not with iptables?

A program injects packets on a Linux TAP interface (these packets are coming from a virtual machine). Specifically, these are DHCP requests (so they're UDP). I can see the packets with tcpdump but not ...