Skip to main content

Questions tagged [tap]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
271 views

A solution to bridge wlan0 or permit to use the same lan for tap/br?

I have a tftp server on lan 192.168.0.0/24 I want a qemu vm reach it, with ethernet is simple a) First create br0 MAC1="52:54:$(dd if=/dev/urandom count=1 2>/dev/null | md5sum | sed 's/^\(..\)\...
elbarna's user avatar
  • 12.8k
1 vote
0 answers
113 views

Change tap device gateway

I have vps server, install softether on it , softether use tap device name tap_se with subnet 192.168.24.0/21 netmask 255.255.248.0 broadcast 192.168.31.259, clients connect with openvpn or l2tp to ...
Arman Kabir's user avatar
0 votes
0 answers
216 views

How to redirect VM DNS question to host machine localhost dnsmasq

My local network shcema is something like this: internet (WAN) | router host IP (resolv.conf) | | +------- eth0 - br0 - tap0 - VM (resolv.conf) | | ...
schweik's user avatar
  • 1,310
2 votes
1 answer
593 views

How do I get the interface name created with `ip tuntap add mode tap`

I want to create a tap with sudo, and then attach the user space program (ssh) to it. I don't want to hard code the interface name, as multiple users will be using it, so I want the interface name to ...
Gary van der Merwe's user avatar
1 vote
0 answers
960 views

Network routing through veth0 / bridge for userspace QEMU VM?

I would like to filter and capture traffic from a virtual machine. This VM must run in userspace. Capturing requires root, I know (though I hope to minimise root activity needed later). The easiest ...
Ned64's user avatar
  • 8,924
0 votes
3 answers
106 views

How to determine next available network interface name and ip range?

I am working on an application which can create TUN/TAP interface on host machine. I can create such interfaces using: sudo ip tuntap add tap0 mode tap Now the thing is, tap0 is hardcoded here. It ...
Santosh Kumar's user avatar
1 vote
1 answer
1k 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/...
GBo's user avatar
  • 13
0 votes
0 answers
290 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. ...
Dean Baldwin's user avatar
2 votes
0 answers
217 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 ...
Tom Stepleton's user avatar
1 vote
0 answers
3k 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 ...
Fitz's user avatar
  • 111
0 votes
1 answer
960 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 ...
Mazzy's user avatar
  • 253
6 votes
2 answers
1k 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: -...
waffles's user avatar
  • 133
1 vote
2 answers
640 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-...
waffles's user avatar
  • 133
0 votes
1 answer
91 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 ...
elbarna's user avatar
  • 12.8k
4 votes
1 answer
5k 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 ...
TheFunk's user avatar
  • 153
1 vote
0 answers
764 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 ...
Penguin's user avatar
  • 21
1 vote
1 answer
4k 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 ...
Gabriele Oliaro's user avatar
9 votes
1 answer
17k 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 ...
Billy's user avatar
  • 685
2 votes
1 answer
1k 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 ...
Eitan Michaelson's user avatar
9 votes
3 answers
10k 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 ...
Teague Lasser's user avatar
0 votes
1 answer
296 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 ...
jaam's user avatar
  • 296
3 votes
2 answers
2k 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 ...
TheDiveO's user avatar
  • 1,337
0 votes
0 answers
57 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 ...
SayMyName's user avatar
  • 125
1 vote
1 answer
5k 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 ...
SayMyName's user avatar
  • 125
3 votes
0 answers
2k 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 ...
Deys Nima's 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?
hal's user avatar
  • 201
1 vote
0 answers
239 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 ...
uvdevops's user avatar
5 votes
2 answers
4k 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 ...
Martin's user avatar
  • 7,636
2 votes
0 answers
1k 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-...
Martin's user avatar
  • 7,636
1 vote
1 answer
823 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 ...
BugBuddy's user avatar
  • 648
1 vote
1 answer
6k 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 ...
Joenarr Bronarsson's user avatar
3 votes
1 answer
324 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's user avatar
  • 223
7 votes
1 answer
71k 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 ...
Mr. Nobody's 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
mrjayviper's user avatar
  • 2,101
3 votes
1 answer
3k 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 ...
UnwashedIntern's 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 ...
deuseux12's user avatar
  • 385
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 ...
Titan's user avatar
  • 121
1 vote
0 answers
816 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 ...
Kareem Khaleel's 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 ...
A.Hristov's user avatar
5 votes
2 answers
4k 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 ...
cpbs's user avatar
  • 111
3 votes
1 answer
2k 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 ...
michz's user avatar
  • 61
4 votes
1 answer
5k 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 ...
jpo234's user avatar
  • 123
2 votes
1 answer
321 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: ...
Martin's user avatar
  • 7,636
1 vote
0 answers
246 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 ...
Fatemeh Abdollahei's user avatar
10 votes
3 answers
36k 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 -...
Nathan Osman's user avatar
  • 6,240
4 votes
1 answer
2k 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 ...
xywang's user avatar
  • 389
1 vote
2 answers
1k 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 ...
Oxwivi's user avatar
  • 2,262
1 vote
1 answer
412 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 ...
Ami Sabo's user avatar
0 votes
1 answer
1k 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. ...
Nicolás's user avatar
  • 101
8 votes
3 answers
6k 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 ...
user2199104's user avatar