Questions tagged [tap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
57 views

How to make a Machine-In-The-Middle with a dual NIC PC in Linux?

I would like to use a Linux PC fitted with two network interface cards as a transparent bridge in order to capture (with wireshark or equivalent) all the traffic in both directions between my router/...
user avatar
  • 13
0 votes
0 answers
98 views

Issue with Tap interface and routing

I am getting stuck in a bit of a rut and not sure if it's a limitation with EC2 servers, my attempts to get it working or a limitation with Softether. I have an EC2 server with 2 NICs; eth0 and eth1. ...
user avatar
2 votes
0 answers
94 views

Linux bridge won't forward IP packets from a vintage BSD machine --- but packets from other Linuxes are fine

Overview I'm using a Linux single-board computer as an Ethernet bridge between an AWS host and a very old and very rare Unix computer. This setup, which was working until a recent sudo apt upgrade on ...
user avatar
1 vote
0 answers
278 views

Configure network to allow QEMU to reach internet

I have the following standard configuration: A remote server connected to internet and that I can only control using SSH On this server, a QEMU instance I'm trying to find the right configuration so ...
user avatar
  • 111
0 votes
1 answer
291 views

Linux bridge does not forward packets to TAP interface

I have the following scenario where I run a Docker container which has configured inside of it a Linux bridge br0 and attached to it I have the main interface eth0 of the container and a TAP interface ...
user avatar
  • 243
5 votes
2 answers
506 views

Unable to connect vm to IPv6 internet via virtual tap interface

I'm having trouble connecting a vm to the IPv6 internet through a virtual tap device on the host. I.e., I cannot ping ipv6.google.com or the public IPv6 host global primary interface address. Ex: -...
user avatar
  • 123
1 vote
2 answers
135 views

Can't ping virtual tap network interface via IPv6 from primary interface (eth0)

I'm having trouble communicating with my virtual tap devices via ipv6. Essentially ping6 -I eth0 <tap interface link-local ipv6 address> doesn't return anything. I can't even ping the host-...
user avatar
  • 123
0 votes
1 answer
36 views

UML and ethertap: what I miss?

I want to run my UML istance with network In the host machine I create the script USER=myname BRIDGENAME=br0 tunctl -t tap0 -u $USER ip link set tap0 up /usr/sbin/brctl addif $BRIDGENAME tap0 ip addr ...
user avatar
  • 10.9k
2 votes
1 answer
2k 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 ...
user avatar
  • 133
1 vote
0 answers
127 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 ...
user avatar
  • 21
1 vote
1 answer
2k 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 ...
user avatar
3 votes
1 answer
8k 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 ...
user avatar
  • 567
1 vote
1 answer
733 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 ...
user avatar
5 votes
1 answer
6k 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 ...
user avatar
0 votes
1 answer
222 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 ...
user avatar
  • 188
5 votes
1 answer
1k 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 ...
user avatar
  • 1,019
0 votes
0 answers
50 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 ...
user avatar
  • 125
1 vote
1 answer
3k 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 ...
user avatar
  • 125
4 votes
0 answers
1k 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 ...
user avatar
0 votes
1 answer
1k 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?
user avatar
  • 181
1 vote
0 answers
134 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 ...
user avatar
3 votes
2 answers
2k 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 ...
user avatar
  • 6,238
1 vote
0 answers
963 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-...
user avatar
  • 6,238
1 vote
1 answer
694 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 ...
user avatar
  • 504
0 votes
1 answer
4k 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 ...
user avatar
3 votes
1 answer
235 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 ...
user avatar
  • 233
4 votes
1 answer
46k 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 ...
user avatar
1 vote
1 answer
2k 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
user avatar
  • 1,689
3 votes
1 answer
2k 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 ...
user avatar
0 votes
0 answers
2k 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 ...
user avatar
  • 395
2 votes
0 answers
2k 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 ...
user avatar
  • 121
1 vote
0 answers
591 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 ...
user avatar
2 votes
0 answers
2k 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 ...
user avatar
4 votes
2 answers
3k 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 ...
user avatar
  • 91
3 votes
1 answer
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 ...
user avatar
  • 61
3 votes
1 answer
4k 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 ...
user avatar
  • 113
2 votes
1 answer
298 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: ...
user avatar
  • 6,238
1 vote
0 answers
234 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 ...
user avatar
8 votes
3 answers
26k 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 -...
user avatar
  • 6,065
4 votes
1 answer
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 ...
user avatar
  • 381
1 vote
2 answers
910 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 ...
user avatar
  • 2,192
1 vote
1 answer
321 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 ...
user avatar
0 votes
1 answer
999 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. ...
user avatar
  • 101
8 votes
3 answers
5k 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 ...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
  • 555
4 votes
1 answer
4k 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 ...
user avatar
2 votes
1 answer
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 ...
user avatar
  • 121
27 votes
7 answers
40k 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 ...
user avatar
  • 2,053
9 votes
3 answers
8k 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?
user avatar
  • 2,053
1 vote
1 answer
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 ...
user avatar
  • 13