Questions tagged [tap]

The tag has no usage guidance.

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

Running multiple QEMU instances using a single TAP network device

Is there a way to setup QEMU TAP networking without allocating a TAP device for each VM? My goal is to preconfigure QEMU TAP networking with NAT (as root), and be able to run an arbitrary number of ...
0
votes
0answers
8 views

Creating a VPN based on TAP devices - no response to i.e. `ping`

I am trying to build a L2 VPN with Go for GNU/Linux (source is on GitHub). It reads all ethernet frames from a TAP device and sends them over TCP to a destination, which in turn writes it to it's TAP ...
0
votes
0answers
10 views

What is the difference between xen netbk/vif and tap?

When I'm using libvirt with QEMU/KVM backend, then it creates a tap type network interfaces for guests. However, I have one server running xen as an hypervisor and looks like it creates netbk/vif type ...
0
votes
1answer
50 views

Theoretical: TAP interface w/ WIFI parent interface

I'm trying to create multiple Linux TAP interfaces and allow them to send/receive packets over a single WIFI adapter. For all intents and purposes I'd like the TAP interfaces to act as full fledged ...
1
vote
0answers
33 views

Forward traffic to other interface

I have two interfaces eth0 and eth1. I want all traffic on eth0 to be forwarded to eth1 without changing anything to packet(origin Src/Dst IP, port etc. has to same). I found some articles about ...
0
votes
0answers
37 views

How configure TAP, bridge for container to receive all network traffic ? Like IDS inside container

1 - container is configured with bridge (br0) 2 - All network trafic is received by the br0. And I would like that trafic is also send to my container which is under LCX. I have to use TAP because ...
0
votes
0answers
21 views

Synaptics Touchpad effect of Tap delayed - Ubuntu 19.04

There is a significant amount of delay between when I tap and when it registers. libinput works fine when it comes to taps. Other similar questions are outdated and talk about options which do not ...
0
votes
0answers
11 views

filter data going through nload ? Purpose : measure bandwidth consumption of a gateway?

I have a LinuxBox that has two functions : an internet gateway and a mail server. With nload I can monitor the traffic on the internet (WAN) interface, but that shows me both the gateway consumption ...
0
votes
1answer
160 views

How to talk to a tap device on Linux from another computer

I am running Linux on VMware Fusion on my Mac. On Linux, I am using a TCP echo server based on TAP devices (it's called PicoTCP, link here: https://github.com/tass-belgium/picotcp). I run the echo ...
0
votes
1answer
578 views

Create Network Interface from SSH Tunnel

To route your network traffic through SSH, most people would tell you to pass the -D option to create a SOCKS proxy on localhost that you can configure your applications to use. However, a simple ...
1
vote
1answer
116 views

TAP/TUN capturing ICMP packets

I'm trying to capture raw ethernet packets into a user space program. Having read about the TAP/TUN capabilities of the kernel, I went on and created the following setup: Two systems connected ...
3
votes
1answer
990 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
115 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
362 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
42 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 ...
1
vote
1answer
905 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
360 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
491 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
62 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 ...
3
votes
2answers
859 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
461 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
382 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
3k 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 ...
3
votes
1answer
170 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
17k 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 ...
1
vote
1answer
1k 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
1k 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
1k 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
1k 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
443 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 ...
4
votes
1answer
2k 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 ...
2
votes
1answer
1k 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
3k 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
240 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
226 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 ...
8
votes
3answers
15k 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 -...
4
votes
1answer
1k 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
751 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
237 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
725 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. ...
5
votes
2answers
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
25k 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
7k 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
1k 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 ...