Server Mangement

tags: software electrical_system NTURT

Introduction

TBD

Architecture

Machine

The following is the server internet heirarchy. All machines except for the router has LAN address 192.168.123.x, where x is listed below:







%0


cluster_host

Proxmox



uplink

NTUME



router

D-Link



uplink->router


140.112.14.126



truenas

TrueNAS



router->truenas


.3



ubuntu

Ubuntu 22.04



router->ubuntu


.4



dummy




router->dummy


.2



windows

Windows 10



router->windows


.5



container

Tailscale



router->container


.254



Connecting to the server

Wireguard

A VPN service is used to protect the server, and wireguard is used as a faster version of openvpn.

Installation

On linux systems

Install wireguard client by

sudo apt update sudo apt install wireguard sudo apt install resolvconf # install depending packages
Install on other systems

Download wireguard desktop from the official download page.

Connect to server

First get a key from Google drive.

Note: A key is a a directory named peer<number>. Please delete the keys you took since it's not sharable.

On desktop systems

For computers, what's relevent is the file peer<number>.conf. It is suggested to rename it to something like nturt.conf since it's used to identify the host.

On linux systems

Put the key CONFIG_FILE_NAME.conf to /etc/wireguard/ under root permission such as /etc/wireguard/nturt.conf. Then the connection can be established by using

# connect sudo wg-quick up <CONFIG_FILE_NAME> # disconnect sudo wg-quick down <CONFIG_FILE_NAME>

Note: <CONFIG_FILE_NAME> for the command is ended without .conf extension.

On other desktop systems

Simply add a tunnel using the key CONFIG_FILE_NAME.conf and you can connect to the host.

On cellphones

The relevant file for cellphone is the QR code peer<number>.png. Just simply scan it using the cellphone app and you can connect to the host.

VM IP address

Once the VPN connection is established, you can access to vaious virtual machines on the server by either their webpage or ssh. The respective accouts and password is at Google doc.

Setting up the server

Proxmox

username: root

Truenas

Ubuntu

As easy as uploading a ubuntu image to proxmox.
username: nturt

Wireguard

Setup via a docker container.

Windows