Questions tagged [tap]
The tap tag has no summary.
63 questions
0 votes
0 answers
83 views
Linux bridge forwarding from/to TAP interfaces
As explained here in my own Q&A, reconsider the following scenario. A Linux host with a two port Linux bridge and two Linux guest VMs connected to it: the first bridge's port is connected to TAP ...
2 votes
1 answer
445 views
TCP checksum offloading on virtio-net paravirtualized interfaces
Consider the topology where 2 QEMU VMs running Linux Ubuntu 16.04 kernel version 4.4.0-210 have both virtio-net interfaces with TAP backends connected to the same (host) Linux bridge and an SSH ...
2 votes
1 answer
102 views
How to enable internet access for a bridge inside a Linux network namespace?
I've created two Linux network namespaces (ns1 and ns2), and inside each, I have: A bridge (ns1-br0, ns2-br0) A TAP device (tap0, tap1) connected to the respective bridge Each TAP device gets an IP ...
0 votes
1 answer
215 views
I cannot receive any packets on a tap interface
I want to test an application that runs a complete IPv6 stack in user space. The application is supposed to process and send ethernet frames. For that I want to set up a network interface on Linux ...
0 votes
2 answers
214 views
How to communciate between two tap interfaces on two machines?
I have two debian based machines with IP adresses XXX.XXX.8.76/26 and XXX.XXX.8.77/26. Now i need to create a tap0 interface on both machines for an application that communicates with UDP messages. ...
0 votes
1 answer
718 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/^\(..\)\...
1 vote
0 answers
166 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 ...
0 votes
0 answers
263 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) | | ...
2 votes
1 answer
955 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 ...
1 vote
0 answers
1k 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 ...
0 votes
3 answers
191 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 ...
1 vote
1 answer
2k 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/...
0 votes
0 answers
377 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. ...
3 votes
0 answers
298 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 ...
1 vote
0 answers
4k 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 ...