How To Install n2n on Fedora 34
Introduction
In this tutorial we learn how to install n2n
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install n2n.
Install n2n on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install n2n
using dnf
by running the following command:
sudo dnf -y install n2n
Install n2n on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the n2n
package we can use the following command:
sudo dnf remove n2n
n2n Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/a97bdac7cc3e046c926dd5b930f90b66f539c5
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/928e0899f7b43ae9845e1e74164a4475993390
/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 34 using yum and dnf.