150 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
84
views
tc filter redirection – One-Way Behavior Issue with ICMP Ping Replies
I’m running a scenario with a host (192.168.222.1) and a virtual machine (192.168.222.130, interface ens33). On the VM, I have a Python program that creates a TUN interface (tunX) and, upon receiving ...
0
votes
1
answer
82
views
What is the gateway MAC address for a tap device?
I am writing my own network stack following this tutorial. I reached the IP level, and I got stuck because I do not know which destination MAC address I should insert in the ethernet frame when the ...
1
vote
0
answers
91
views
curl --interface not going through the created utun interface on Mac OS
My TUN device setup
I have a simple program that creates the interface and logs every packet in Go (removed err handling for clarity):
package main
import (
"log"
"github.com/...
1
vote
0
answers
88
views
lightway-laser client can't normal start
I'm using lightway-laser, according to https://github.com/expressvpn/lightway-laser?tab=readme-ov-file#build-and-run-clientserver describe, I can start server, but when I use command scripts/...
0
votes
1
answer
130
views
Iperf server is not able to register packets on a tunnel interface
I am trying to route my traffic via a tunnel interface between 2 servers.
A cpp application creates a tunnel interface A on server A.
A cpp application creates a tunnel interface B on server B.
route ...
0
votes
1
answer
172
views
Tun module in dockerized Microsoft Azure Functions to run openvpn
I want to create a dockerized Azure function that routes all the http traffic through an openvpn tunnel and switches the vpn connection config every X minutes.
However openvpn in the container cannot ...
1
vote
0
answers
692
views
Why is writing to a tun interface so slow?
I've added instrumentation to my code:
state.worker_stats.counters[TUN_TX]++;
state_switch_activity(KERN_WRITE_TUN);
ssize_t wrote = write(peer->tun_fd, plaintext, plaintext_len);
...
0
votes
0
answers
909
views
Try to create tun interface inside a pod in k8s but "ioctl(tunsetiff): device or resource busy"
I would like to create tuntap interace inside a pod because the main objetive of this is communicate two pods via tun interface (the apps that run there expect to communicate via tun interface). I ...
0
votes
1
answer
460
views
Why packets seem not relayed to target applications using TUN interface?
I am developing a VPN client on MacOS. My program creates a UTUN interface and an associated rule in the route table. Its purpose is reading packets sent to 44.10.0.0/16, doing stuff with them, then ...
2
votes
0
answers
746
views
Filtering DNS traffic based on hostnames inside VPN TUN interface in android kotlin
I am trying to implement custom DNS resolver inside my Android(kotlin) application through the VPN service.
I am basically intercepting the packets through TUN interface and resolving the queries ...
3
votes
0
answers
528
views
Create a socks proxy with SSH, but use a specific interface for outbound traffic
I have a linux server who have an interface "tun0" which is a VPN connection and I want to start a proxy on it for listing eth0 but use tun0 to get internet.
(default route on the server ...
1
vote
1
answer
815
views
How does replying work on a TUN/TAP device?
I'm using the Rust tun crate to experiment with the tun device. I'm writing a simple client/server setup where the client sends the server a message, the server reads the request and responds and ...
1
vote
1
answer
739
views
Setting an IP address to a TUN in C
I'm trying to create a tunnel in C and im struggling to set its IP address up. I have an "invalid argument" error in ioctl with SIOCSIFADDR argument. Can someone explain me how to set up the ...
0
votes
1
answer
443
views
How do I start a season on existing adapter?
I want to create a tunnel between my computer (which is connected to the router via ethernet and runs on windows) and another computer in the same subnet.
I chose WINTUN.dll for this purpose because ...
1
vote
0
answers
844
views
Operation not permitted for TUNSETIFF
i am trying to open a TUN device and using ioctl with operation code TUNSETIFF and getting operation not permitted error.
environment
PRETTY_NAME="Ubuntu 22.04.1 LTS"
$ docker --version
...