Setting up a gateway on Linux: Difference between revisions

From 44Net Wiki
Jump to navigation Jump to search
Njohnson (talk | contribs)
W6JMK (talk | contribs)
mNo edit summary
 
(16 intermediate revisions by 7 users not shown)
Line 2: Line 2:


Before configuring the Linux gateway you'll need to:
Before configuring the Linux gateway you'll need to:
# Using the [[Portal]], obtain your AMPRnet 44/8 IP addresses from a regional coordinator.
# Using the [[Portal]], request an IP address (or addresses) by clicking on "Request address space" then selecting "IPIP Tunnel Mesh" as the Use Case.
# Obtain a public static IP address for your gateway.  
# You will need to have a public static IP address for your gateway.  
# Using the [[Portal]], create an entry for your gateway.
# Using the [[Portal]], create an entry for your gateway.
# Get some of your 44.* IP addresses registered in the [[ampr.org]] DNS.
# Get some of your AMPRNet IP addresses registered in the [[ampr.org]] DNS.




Line 16: Line 16:
Setting up a native Linux gateway consists of two main steps:
Setting up a native Linux gateway consists of two main steps:


===Setting up tunnel routing to the rest of the AMPRnet===
=== Step 1: Setting up tunnel routing to the rest of the AMPRnet===
Configuring your Linux system to learn about other AMPRNet [[gateway| gateways]] can be done two ways:


# Automatically Learning about other tunnel endpoints via modified RIPv2 advertisements. Two popular programs to do this are:
# Automatically learn about other gateways via modified RIPv2 advertisements. Two popular programs to do this are:
## Using [[ampr-ripd]], a C based routing daemon
## Using [[ampr-ripd]], a C based routing daemon
## Using [[rip44d]], a PERL based routing daemon
## Using [[rip44d]], a PERL based routing daemon
# Manually Downloading the [[encap.txt]] file using FTP and setting up routes using a [[munge script]] is the traditional method
# Downloading an [[encap.txt]] file and setting up routes using a [[munge script]] is the traditional method


====Example Gateway Configuration Instructions====
====Example Gateway Configuration Instructions====
* [[Ubuntu Linux Gateway Example]]
* [[Ubuntu Linux Gateway Example]]
* [http://www.qsl.net/k/kb9mwr//wapr/tcpip/ampr-ripd.html Two Interface Debian Linux Amprnet Gateway Example]
* [https://k7ilo.blogspot.com/p/server-setup.html K7ILO'S Two Interface Debian 11 AmprNet Gateway Build in layman's terms]


===Setting up radio interfaces in Linux===
=== Step 2: Setting up radio interfaces in Linux===


* [http://www.tldp.org/HOWTO/AX25-HOWTO/ Linux AX.25 set-up]
* [http://www.tldp.org/HOWTO/AX25-HOWTO/ Linux AX.25 set-up]
Line 39: Line 42:
The upside is that you'll also get the JNOS BBS-type features, and some other traditional services without installing additional software on top.
The upside is that you'll also get the JNOS BBS-type features, and some other traditional services without installing additional software on top.


John Martin KF8KK has written a [http://kf8kk.com/packet/jnos-linux/linux-jnos-setup-1.htm Linux - Jnos Setup and Configuration HOW-TO].
 
 
=See also=
 
* [[Ubuntu Linux Gateway Example]]
* [[startampr]]

Latest revision as of 04:25, 15 October 2024

There are a few different ways to run an AMPRnet gateway on a Linux system. Each has some benefits, so you'll need to pick your favourite.

Before configuring the Linux gateway you'll need to:

  1. Using the Portal, request an IP address (or addresses) by clicking on "Request address space" then selecting "IPIP Tunnel Mesh" as the Use Case.
  2. You will need to have a public static IP address for your gateway.
  3. Using the Portal, create an entry for your gateway.
  4. Get some of your AMPRNet IP addresses registered in the ampr.org DNS.


Flavours of Linux gateways

Native Linux kernel AX.25 and IPIP tunneling

Linux contains the necessary building blocks for a gateway without much added software. Radio interfaces are configured much like any other network interfaces such as Ethernet, they're just given amateur radio callsigns in addition to an IP address (callsign will act the role of the Ethernet MAC address). If you're familiar with Linux configuration but have not heard of NOS, or if you wish to go with minimal amount of moving parts, this would probably be your choice.

Setting up a native Linux gateway consists of two main steps:

Step 1: Setting up tunnel routing to the rest of the AMPRnet

Configuring your Linux system to learn about other AMPRNet gateways can be done two ways:

  1. Automatically learn about other gateways via modified RIPv2 advertisements. Two popular programs to do this are:
    1. Using ampr-ripd, a C based routing daemon
    2. Using rip44d, a PERL based routing daemon
  2. Downloading an encap.txt file and setting up routes using a munge script is the traditional method

Example Gateway Configuration Instructions

Step 2: Setting up radio interfaces in Linux

  • Linux AX.25 set-up
  • 802.11 WiFi on amateur frequencies (2.4 or 5 GHz) is a new popular way to set up fast links.

Running JNOS (or other NOS) on top of Linux

If you're already familiar with running NOS on top of DOS or Linux, or wish to keep the AMPRnet IP packet routing away from the host Linux system, it might make sense to run JNOS as an application on top of Linux.

The downside is that it'll have a slightly higher overhead (consumed memory and CPU), and you'll have two IP routers running on top of each other instead of just one, which is seen as slightly complicated by some.

The upside is that you'll also get the JNOS BBS-type features, and some other traditional services without installing additional software on top.


See also