1,824 bytes added
, 5 years ago
This is intended to be a reference for setting up a VM or Server for AllStatLink.
= Server Overview =
== Basic Requirements ==
AllStarLink has standardized on Ubuntu 16.04 LTS for it's servers.
The minimum configuration of any server will be 2 cores of 2 GHz or faster, 4 GiB of ram and 40 GiB of Disk.
All new servers shall support IPv6, or have it available from the hosting provider.
Reverse IP's shall be delegated via a CNAME to $NAME.PTR.allstarlink.org, where $NAME is the name of the server.
All servers shall be partitioned to use / as the only partition unless a specific configuration is required.
== Install guide ==
When provisioning a new server
* check the VM is setup (cpu/mem/disk) as it should be, if not contact the provider.
<code>
cat /proc/cpuinfo |grep processor
processor : 0
processor : 1
processor : 2
processor : 3
</code>
* on the server install python (apt-get install python). This is needed for the ansibile provisioning
* setup the server in the infrastructure configs and push the users and keys to it.
=== Mandatory Software ===
All servers require this software
apt-get install ntp python vim screen ipsec-tools strongswan fail2ban
=== Mandatory Configs ===
* The network should be configured to use /etc/network/interfaces
* There is typically only one network interface, and it will be named dynamically. We must setup this using udev to be persistant
<code>
root@server# ifconfig |grep HWaddr
eth0 Link encap:Ethernet HWaddr 52:54:00:73:86:06
</code>
Now take this HWaddr and put it in the config file
<code>
echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="52:54:00:73:86:06", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"' >/etc/udev/rules.d/70-persistent-net.rules
</code>