Skip to content

yannickbilcot/ovh-vps-config

Repository files navigation

ovh-vps-config

OVH VPS configuration for Ubuntu 20.04

Build Status

alt text

Quickstart

git clone https://github.com/yannickbilcot/ovh-vps-config.git
cd ovh-vps-config
./setup.sh

Non-interactive mode installation

  • Edit the configuration file 'setup.cfg'
  • Start the script with the option '-a'
./setup.sh -a

VPS Configuration

Supported features

Software

  • Software update and upgrade
  • Set the server local timezone
  • Set the server hostname and FQDN

User

  • Change default user password
  • Create and delete user(s)

Networking

  • Setup IPv6 network (static address)

SSH configuration

  • Enable 2FA authentication (google authenticator)
  • Enable authentication via SSH keys
  • Open a random port for SSH service on external interface

Firewall

  • Simple stateful firewall configuration with iptables
  • External opened ports limited to SSH and WireGuard service
  • Setup IPv4 & IPv6 firewall

Security

  • Install PSAD (Port Scan Attack Detection)
  • Install fail2ban to protect SSH

Email notifications

  • Install Postifx used as SMTP relay server with Gmail
  • Supported alerts:
    • on SSH login
    • after a system reboot
    • on software unattended security update
    • on port scan detection (PSAD)

WireGuard VPN

  • Install WireGuard
  • IPv4, IPv6 or dual stack support
  • Can create multiple peers

Docker services

  • Install Docker environment
  • Install docker-compose
  • Install Pi-hole (DNS server)
  • Can install additional docker services from "docker-apps" subdirectory

About

OVH VPS configuration for Ubuntu 20.04

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages