how to configure OpenVPN with only IPv6?

11,539

There are two device types supported by OpenVPN: tun and tap.

Tun devices receive raw IP packets and give them to a user space program. In the case of OpenVPN this program encrypts those packets and sends them on to the other end of the tunnel where they get decrypted and sent back to the tun device on that side. In other words a tun device behaves like a virtual Point-to-Point network connection.

Tap devices use raw ethernet frames instead of IP packets. A tap device is like a virtual ethernet card - any packet sent to it goes through the tunnel and back up the ethernet stack on the other side. So an OpenVPN connection using tap is like a virtual ethernet bus with exactly two ethernet cards connected - one on each side of the tunnel. The downside of using tap is that for each packet 14 more bytes (the ethernet header) are used up, the upside is that we can use any protocol over it without having to think about OpenVPN support for it.

The first article that describes IPv6 support in OpenVPN, uses tun while the second one uses tap:

1) https://community.openvpn.net/openvpn/wiki/IPv6

2) http://silmor.de/ipv6.openvpn.php

Hope it could help.

Share:
11,539

Related videos on Youtube

user105939
Author by

user105939

Updated on September 18, 2022

Comments

  • user105939
    user105939 over 1 year

    I have a 14.10 server with OpenVPN 2.3.x How to configure it for IPv6 ? (I have a natted IPv4 that cannot be port forwarded.) I wish to be able to receieve VPN connecions from Android OpenVPN client.

    This guide would be great, https://help.ubuntu.com/14.04/serverguide/openvpn.html if there was a IPv6 version :)