OVH VPS configuration for Ubuntu 20.04
git clone https://github.com/yannickbilcot/ovh-vps-config.git
cd ovh-vps-config
./setup.sh
- Edit the configuration file 'setup.cfg'
- Start the script with the option '-a'
./setup.sh -a
- Software update and upgrade
- Set the server local timezone
- Set the server hostname and FQDN
- Change default user password
- Create and delete user(s)
- Setup IPv6 network (static address)
- Enable 2FA authentication (google authenticator)
- Enable authentication via SSH keys
- Open a random port for SSH service on external interface
- Simple stateful firewall configuration with iptables
- External opened ports limited to SSH and WireGuard service
- Setup IPv4 & IPv6 firewall
- 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)
- Install WireGuard
- IPv4, IPv6 or dual stack support
- Can create multiple peers