Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/deadplev-ai/ass_auto-server-secure

(Great name I know). Automatically lock down your linux server with a single command. Customisable options included.
https://github.com/deadplev-ai/ass_auto-server-secure

debian installer installer-script interactive secure security security-tools

Last synced: 11 days ago
JSON representation

(Great name I know). Automatically lock down your linux server with a single command. Customisable options included.

Awesome Lists containing this project

README

        

# Server Setup

### Intended OS:
- Debian 11/12
- Ubuntu 22.04+

## Current Features

- Automatic Security Updates
- Custom Non-Root Sudo User
- Root Login Block
- Custom SSH Port
- Strict UFW Config (Auto SSH Allow + Rate Limit)
- [Y/N] Future Password Complexity Requirements
- [Y/N] SSH 2FA
- Auto Package Cleanup
- More to come...

## One Command Setup
```bash
apt update && apt install git -y && git clone https://github.com/deadplev-ai/ASS_Auto-Server-Secure.git && cd ASS_Auto-Server-Secure && chmod +x install.sh && ./install.sh
```

## OPTIONAL: SSH Keypair (LINUX COMMAND ONLY)
```bash
cd ~/.ssh && ssh-keygen -b 4096
```
```bash
read -p "Server IP: " server_IP && read -p "SSH Port: " ssh_port && read -p "Server Username: " server_user && read -p "Pub Key File Location: " key_location && echo "Running: scp -P $ssh_port $key_location $server_user@$server_IP:~/.ssh/authorized_keys" && scp -P $ssh_port $key_location $server_user@$server_IP:~/.ssh/authorized_keys
```

SSH into New User → Keypair Login ONLY (Optional)
```bash
sudo sed -i 's/PasswordAuthentication yes\b/PasswordAuthentication no/gI' /etc/ssh/sshd_config && sudo systemctl restart ssh && echo && echo "***********************" && echo "Security Setup Complete!" && echo "***********************" && echo
```

## Coming Soon

- Y/N Software Packages (Optional)
- Anti SSH Brute Force + Mail Notifications (Fail2Ban)
- Auto Scan Anti Virus (ClamAV + Config)
- Disable Unused Filesystems
- Advanced Intrusion Detection (AIDE/HIDS/Alternative)
- Sysctl Kernel Security Paramaters
- Disable Core Dumps
- SELinux (NSA Developed Kernel Security)
- Post Quantum Cryptography SSH (OpenSSH 9.0+)
- Automatic IP Access Limiting (Optional, used for non VPN servers) ["Would you like to limit SSH access to a certain domain or IP?"]
- DDOS Protection (UFW Rate limiting + NGINX)
- AI Powered Security (EMail Analyser, IPS, IDS, Network, Endpoint etc)
- Dream Machine LAN HTTPS & AI Network analysis + Potential Home Host Server

- Auto Clean-up (Remove install.sh & user_setup.sh)