44Net Connect/Routed Subnet/Fedora RHEL Rocky CentOS: Difference between revisions

From 44Net Wiki
KN6DWI (talk | contribs)
Created page and added section headers
 
KN6DWI (talk | contribs)
Pasted in prerequisites section
 
Line 1: Line 1:
== Prerequisites ==  
This guide is for Fedora, Red Hat Enterprise Linux, Rocky, and CentOS Stream devices. For brevity, the rest of this article will just say Fedora.
== Prerequisites ==
Set up a [[44Net_Connect/Quick_Start/Fedora | single-device tunnel to your Fedora device]].
Note the IP and name of your WireGuard interface. The name of your WireGuard interface is the same as the name
of your config file. For example, if your config file is <code>/etc/wireguard/wg0.conf</code>, then your
interface name is <code>wg0</code>. The IP of your WireGuard interface can be obtained from running <code>ifconfig <interface></code> and finding the IP listed under the interface in the <code>inet</code> field.
 
Below is some example output of <code>ifconfig wg0</code>.
 
<nowiki>
wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP>  mtu 1380
    inet 44.27.133.190  netmask 255.255.255.255  destination 44.27.133.190
    inet6 fe80::f728:a0b0:3af5:b5c6  prefixlen 128  scopeid 0x20<link>
    unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
    RX packets 17331  bytes 5865364 (5.5 MiB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 13389  bytes 2146828 (2.0 MiB)
    TX errors 0  dropped 1 overruns 0  carrier 0  collisions 0</nowiki>
 
== Request a Subnet ==  
== Request a Subnet ==  
== Setting Up The Network Interface ==
== Setting Up The Network Interface ==

Latest revision as of 21:54, 16 July 2026

This guide is for Fedora, Red Hat Enterprise Linux, Rocky, and CentOS Stream devices. For brevity, the rest of this article will just say Fedora.

Prerequisites

Set up a single-device tunnel to your Fedora device. Note the IP and name of your WireGuard interface. The name of your WireGuard interface is the same as the name of your config file. For example, if your config file is /etc/wireguard/wg0.conf, then your interface name is wg0. The IP of your WireGuard interface can be obtained from running ifconfig <interface> and finding the IP listed under the interface in the inet field.

Below is some example output of ifconfig wg0.

wg0: flags=209<UP,POINTOPOINT,RUNNING,NOARP>  mtu 1380
    inet 44.27.133.190  netmask 255.255.255.255  destination 44.27.133.190
    inet6 fe80::f728:a0b0:3af5:b5c6  prefixlen 128  scopeid 0x20<link>
    unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
    RX packets 17331  bytes 5865364 (5.5 MiB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 13389  bytes 2146828 (2.0 MiB)
    TX errors 0  dropped 1 overruns 0  carrier 0  collisions 0

Request a Subnet

Setting Up The Network Interface

Setting up DHCP

Configure Interface

Firewall Configuration

Setting Up Routing

Troubleshooting