Questions tagged [tun]
81 questions
2
votes
0 answers
Is there a tool I can use to test out multiple vpn tunnels in one machine?
I use wget -q -O https://checkmyip.com/csv to determine if I am connected to a VPN but I want to verify multiple VPN tunnels on the same machine. Is there a tool that can allow me to send a command that will allow me to load a csv/json file from…

LeanMan
- 181
- 4
1
vote
0 answers
Direct all traffic between Eth0:1 interface and VPN Tun0
If answered correctly this question will show you how to link a 2nd public IP address on a machine to a VPN server tunnel on that machine, so that the remote VPN client (running a server), sees this second IP as its public address. In effect the…

Bob Spar
- 11
- 1
1
vote
1 answer
Prevent IP Spoofing on OpenVPN tun
I have a question regarding IP Spoofing and authentication. I have an OpenVPN server in TUN mode with many untrusted clients in the same VPN network, and I was wondering if one client is able to spoof its VPN IP Address so that it can appear to the…

poli mi
- 13
- 3
1
vote
1 answer
Setup openvpn as interface device only
I just setup OpenVPN client using this guide on The Geek Stuff
But now (somewhat as expected) all my traffic is routed through the VPN.
I actually just want to set up the interface device.
Does anyone know how to do that?
Here's the config…

Jelle De Loecker
- 1,094
- 6
- 17
- 30
1
vote
0 answers
TUN/TAP VPN no internet connection
I have set up a tun/tap vpn to a VPS. For this, I created a 10/24 network and gave the server the IP 10.0.0.100 and my client got 10.0.0.200.
I can now successfully ping the server / access my mail server etc using the 10.0.0.100 address, so all is…

Nick
- 11
- 1
1
vote
1 answer
How to make Tun module running at linux start
i installed Tun using:
modprobe tun
then did:
lsmod | grep tun
tun 83840 0
Please how to make Tun running at reboot?
This is written on Hamachi website:
...Then add tun to the list of modules by using your favorite text editor…

16851556
- 436
- 2
- 7
- 19
1
vote
2 answers
How to configure a tun interface on Linux for SSH port forwarding?
I am trying to forward port 139 from a Windows machine to my Ubuntu SSH server on a tun interface with the ip address 10.0.0.1.
This is so that I can access the windows shares on the machine on my Ubuntu server, through the reverse tunnel.
I can…

sarshad
- 111
- 1
- 3
1
vote
1 answer
why tun interface in openvpn
can anyone tell me the use of tun interface in openvpn?
as far as i read, it is used to tunnel all the traffic from the PC over the ssl tunnel.
But incase of VPN, i suppose all the traffic initiated from remote-pc should have the ip-address assigned…

summasumma
- 11
- 2
1
vote
1 answer
Name resolution for dummy interfaces
I've a virtual NIC of type NAT on my Ubuntu 20.04 virtual machine which connects it to the internet via host. For some processing, I need to route all incoming and outgoing packets via a program I've to write. For example, assume that I've to drop…

hamidi
- 21
- 5
1
vote
1 answer
Route all traffic through TUN interface
I want all my traffic go through TUN interface.
So, as you can see, the traffic is routed to TUN iface on 10.0.0.1 address from every program. Then, the program attached to the TUN does something with the packets, and then they are sent to my…

thedenisnikulin
- 11
- 1
- 3
0
votes
0 answers
OpenVPN: Cannot open TUN/TAP dev /dev/net/tun: Operation not permitted
I'm have some trouble with OpenVPN reccently, OpenVPN server are hosted on a VPS. It had been work for few months but last friday I reboot and update and upgrade since impossible to connect from my PC to the VPN server.
When I check log, there are…

Alexandre Serrano
- 43
- 2
- 8
0
votes
0 answers
Embedding 3 bytes custom data in IPv4 header and then filter by iptables
In my modified OpenVPN server process, as an intermediate node, I'd need to embed my custom 3 bytes data in the header of every IP packet and then in the same machine (after going through tun) filter those packets by those custom 3 bytes.
Where's…

frogatto
- 103
- 4
0
votes
1 answer
tun/tap works on incoming or outgoing packet?
When we create a tun virtual interface we use read and write to read and write packets from/into network stack. My question is when we use .read, we are actually reading outgoing packets (the packets that are created by machine applications to send…

AMIR
- 3
- 2
0
votes
1 answer
what is difference between simple TUN and VPNs like PPTP and L2TP
In respect of VPNs and tunneling, as far as i know, TUN is a virtual interface works on network Layer 3 (IP packets), and is nothing more than a simple more likely UDP socket link in practice (I think).
Here are my questions:
1- What difference…

Mehrdad Dadvand
- 103
- 3
0
votes
1 answer
How to set up single client TAP/TUN on the client for my OpenVPN?
My laptop OpenVPN client establishes a TAP device. My client config is TUN, though. This devices shows under ifconfig /ALL with the IP 10.8.0.6
and a subnetmask of 255.255.255.252. (!!!)
This subnetmask is obviously a multi client mask setup which…

bomben
- 115
- 9