{"id":25430412,"url":"https://github.com/matin3ai/condom","last_synced_at":"2025-05-14T12:19:11.973Z","repository":{"id":276130308,"uuid":"928237561","full_name":"matin3ai/Condom","owner":"matin3ai","description":"protection-first","archived":false,"fork":false,"pushed_at":"2025-02-15T07:29:31.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T08:26:48.385Z","etag":null,"topics":["bash-script","debian","devops","hardening","protection"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matin3ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-06T09:51:30.000Z","updated_at":"2025-02-15T07:29:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a4b9025-3d15-4686-9380-b83603655a16","html_url":"https://github.com/matin3ai/Condom","commit_stats":null,"previous_names":["matin3ai/condom"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matin3ai%2FCondom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matin3ai%2FCondom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matin3ai%2FCondom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matin3ai%2FCondom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matin3ai","download_url":"https://codeload.github.com/matin3ai/Condom/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239228303,"owners_count":19603587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-script","debian","devops","hardening","protection"],"created_at":"2025-02-17T03:28:06.680Z","updated_at":"2025-05-14T12:19:11.951Z","avatar_url":"https://github.com/matin3ai.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VPS Security Hardening Script 🔒\n\n**`Condom.sh`** – A \"protection-first\" script designed to secure your Linux VPS against common threats. Because even servers deserve safe computing!\n\n---\n\n## 📖 Table of Contents\n- [Features](#-Features)\n- [Installation](#-Installation)\n- [Configuration](#-Configuration)\n- [Usage](#-Usage)\n- [Contributing](#-Contributing)\n- [Disclaimer](#-Disclaimer)\n- [License](#-License)\n\n---\n\n## 🛠️ Features\n### ✅ **Security \u0026 Hardening**\n- **User Management:** Creates a secure sudo user with SSH key authentication.\n- **SSH Hardening:** Disables root login, enforces key-based authentication, and customizes the SSH port.\n- **Firewall Protection:** Configures UFW with strict defaults (allows SSH, HTTP, HTTPS, and Docker ports).\n- **System Hardening:**\n  - Enables automatic security updates.\n  - Implements kernel-level security optimizations.\n  - Configures secure DNS (Google DNS by default).\n- **Docker Installation:** Installs Docker and Docker Compose with optimized repository mirrors.\n- **Region-Specific Enhancements:**\n  - Automatically selects the best package mirror based on network conditions.\n  - Overrides restrictive DNS settings to improve accessibility.\n  - Implements retry logic for failed installations.\n\n---\n\n## ⚓️ Installation\n\nTo install and run `Condom.sh`, follow these simple steps:\n\n```bash\n# Download the script\nwget https://raw.githubusercontent.com/matin3ai/Condom/main/Condom.sh\n\n# Make it executable\nchmod +x Condom.sh\n\n# Run as root\nsudo ./Condom.sh\n```\n\n---\n\n## ⚙️ Configuration\n\n`Condom.sh` allows basic customization through user input. When executed, the script prompts for:\n- **New sudo username**\n- **SSH port selection** (default: 22)\n- **Time zone configuration**\n\nFor advanced configurations, you can modify the script variables before execution.\n\n---\n\n## 🔄 Usage\n\nSimply run the script as root:\n\n```bash\nsudo ./Condom.sh\n```\n\nOnce completed, the script:\n- Creates a new secure sudo user.\n- Hardens SSH and firewall rules.\n- Installs essential security tools.\n- Sets up Docker and system optimizations.\n\nYour VPS will be secured and optimized for performance!\n\n---\n\n## ✨ Contributing\nContributions are welcome! Feel free to fork the repository, create a new branch, and submit a pull request with your improvements.\n\n---\n\n## ⚠️ Disclaimer\nThis script is provided \"as is\" without warranty of any kind. Use at your own risk. Always review the script before execution on a production server.\n\n---\n\n## ⚖️ License\n`Condom.sh` is released under the **MIT License**. See the `LICENSE` file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatin3ai%2Fcondom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatin3ai%2Fcondom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatin3ai%2Fcondom/lists"}