Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
446 views

NAT Between TUN and Ethernet Network Interfaces

There's a detailed explanation of the setup and my debugging efforts so far, but the main question is at the bottom. I have a setup like so: Machine A has two network interfaces: eth0 (192.168.159.60)...
Jordan's user avatar
  • 117
0 votes
1 answer
391 views

Is the outgoing connection from a OpenVPN client to a LAN behind an OpenVPN server forwarded by the server kernel?

I've observed a somewhat strange behavior that I can't quite understand. So I set up an OpenVPN connection as shown in the graphic below. (It's a TUN and client-to-client setup). My thoughts are ...
Koala's user avatar
  • 3
0 votes
1 answer
2k views

proper way of NATing and Routing when using TUN interface with iptables

edit: I'm a newbie in networking and discovering new things :) I created a TUN interface programmatically and able to interact with. I set it up and running by ifconfig myTun 10.10.1.1/24 up and its ...
user3840019's user avatar
0 votes
0 answers
2k views

tun2socks configuration not working

I am trying to configure a tun2socks server that forwards all traffic to an external proxy found online. I also want to retain the ability to ssh into the server so I had to take this into ...
sololuvr6969's user avatar
4 votes
1 answer
3k views

What does ip addr add dev tun1 local 192.168.69.0 remote 192.168.69.1 mean? [closed]

I found the following set of commands to open a tun device on linux that relays things to the internet. However, packets are not relayed back to the tun device ip tuntap add dev tun1 mode tun user `id ...
Guerlando OCs's user avatar
1 vote
1 answer
6k views

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 ...
thedenisnikulin's user avatar
0 votes
0 answers
253 views

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 ...
frogatto's user avatar
  • 103
2 votes
0 answers
1k views

write into a tun interface and forward traffic to another computer

I have the following setup. An application on machine A creates an IP packet which is captured by the tun1 interface. I have added the route using the command : sudo route add -host 10.129.131.220 ...
Debashish's user avatar
  • 121
3 votes
1 answer
7k views

What exactly happens to packets written to a TUN/TAP device?

I'm trying to send packets to an application listening on eth0 from machine's user-space as if they were coming from a remote machine. What I can't seem to find good documentation for is the exact ...
user3467349's user avatar
4 votes
1 answer
14k views

iptables: access connected openvpn client from the LAN with the VPN server

I have what is essentially a routing problem, and I'm not familiar enough with routing and iptables to effectively troubleshoot and set up my network needs. What's working I have an openVPN network ...
jobu1324's user avatar
  • 495
0 votes
1 answer
4k views

Simple iptables port forwarding with masquerading not working

I'm trying to set up a simple VPN server on EC2 (Ubuntu 12.04) with the Android example ToyVpnServer. Its instructions: // There are several ways to play with this program. Here we just give an // ...
xyzzyrz's user avatar
  • 1,665
5 votes
2 answers
6k views

How can I configure openvpn to proxy traffic only for processes that bind to the tun interface?

I'm trying to configure openvpn so that only traffic from certain processes goes over the vpn, but those processes could connect to anywhere. I'm trying to do that by having openvpn not do any route ...
bobpoekert's user avatar
2 votes
1 answer
2k views

IP Packet Capture/Manipulation via TUN/TAP

I'm trying to capture and manipulate incoming IP packets (via eth0 interface) by using a TUN device (since I'm only concerned with IP layer). The first step I think is 1:1 packet forwarding from eth0 ...
Matt's user avatar
  • 121
6 votes
2 answers
8k views

OpenVPN with iptables and a tun interface

With an openvpn tunnel that uses a tun device, what iptables rules allow the encapsulated traffic through and what rules control the packets after encapsulation? Basically, I am wondering how the ...
Kyle Brandt's user avatar
  • 85.1k