How To Install n2n on Fedora 36

In this tutorial we learn how to install n2n in Fedora 36. n2n is A layer-two peer-to-peer virtual private network

Introduction

In this tutorial we learn how to install n2n on Fedora 36.

What is n2n

n2n is a layer-two peer-to-peer virtual private network (VPN) which allows users to exploit features typical of P2P applications at network instead of application level. This means that users can gain native IP visibility (e.g. two PCs belonging to the same n2n network can ping each other) and be reachable with the same network IP address regardless of the network where they currently belong. In a nutshell, as OpenVPN moved SSL from application (e.g. used to implement the HTTPS protocol) to network protocol, n2n moves P2P from application to network level.

We can use yum or dnf to install n2n on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install n2n.

Install n2n on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install n2n using dnf by running the following command:

sudo dnf -y install n2n

Install n2n on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install n2n using yum by running the following command:

sudo yum -y install n2n

How To Uninstall n2n on Fedora 36

To uninstall only the n2n package we can use the following command:

sudo dnf remove n2n

n2n Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/93
/usr/lib/.build-id/93/193f7683fb4ddafe75310c5013186cdb5dc8f0
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/df3804d5a2e708f788255dfc18888f75695fd8
/usr/sbin/edge
/usr/sbin/supernode
/usr/share/doc/n2n
/usr/share/doc/n2n/COPYING
/usr/share/doc/n2n/HACKING
/usr/share/doc/n2n/README
/usr/share/man/man1/supernode.1.gz
/usr/share/man/man7/n2n_v2.7.gz
/usr/share/man/man8/edge.8.gz

References

Summary

In this tutorial we learn how to install n2n on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).