K7ILO'S Two Interface Debian 11 AmprNet Gateway Build in layman's terms

From 44Net Wiki
Revision as of 01:06, 9 December 2022 by K7ILO (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Initial Server/Gateway Machine Setup

The computer I had laying around to build my basic server/gateway was an old Dell OptiPlex GX280 (Intel 3.2Ghz CPU) with 3GB’s of RAM, 160GB HD (Yeah, I know overkill but that's the HD that was in the machine) and two 1Gb Ethernet adapters, 1 built-in and 1 Intel PCI Ethernet adapter I installed, where..

    1. the built-in Ethernet adapter is to my router for my Internet connection.  
    2. the PCI Ethernet adapter serves my AmprNet Network.

Because of the architecture of the computer, I had to use the 32bit version of Debian 11.5.0 netinstall image for this setup. I like Debian mainly because, well because I like it, LOL. BTW, it is not in the scope of these instructions to show you how to install Debian 11 so please search Google for information on the topic if needed. Keep in mind though the SSH server and the standard system utilities were the only software options I selected for my bare Debian 11 installation.

After the installation is completed, log in as root and make sure Debian has the latest fixes and patches by typing:

    apt update && apt full-upgrade -y

During these procedures I used root directly since to me, it was quicker to setup the server/gateway. But if you want to use sudo, it is not installed by default on Debian 11 so again search Google on how to install it. There are a lot of resources on the subject. I installed sudo after getting the server/gateway up and running for future administration and security. If the server/gateway does any updates from the command's above, reboot to make sure updates take affect (old Windows habit). Type:

    reboot


Install other software for this setup.

Descriptions..

    1. screen (optional):  This software allows you to connect back to a particular session if you are remote and loose connection to your server/gateway.
    2. compile tools:  Needed to compile software.
    3. iptables-persistent:  This installs the most used Linux firewall iptables and it's tools, well to my knowledge.  When asked, it's not necessary to save the current v.4 and v.6 iptables rules.
    4. psmisc:  Installed for the killall command.  Used for the update-server script found in the Optional Software and Task's section.
    5. curl (optional):  Used to install optional software found in the Optional Software and Task's section.
    6. cron:  Used to schedule task.  This is more than likely already installed.
    7. tcpdump: Useful networking tool.
    8. traceroute: Useful networking tool.  This is more than likely already installed.

To install these, Type:

    apt install -y screen build-essential iptables-persistent psmisc curl tcpdump

Reboot. (Again, old Windows habit) Type:

    reboot

Now let's turn this server machine into an AmprNet Gateway (Updates Coming so please check back soon)