--- publish: true permalink: /20-29 HOBBYS/23 SECURITY/23.11 EVILGINX/basic configuration.md title: Server bootstrapping created: 2026-01-29T14:04:18.492-07:00 modified: 2025-06-26T12:37:33.633-06:00 tags: - evilginx - guide - self_hosting cssclasses: "" --- ## Install and configure ufw 1. Install the ufw package ``` apt install ufw ``` 2. Set the default ufw policies ``` ufw default deny incoming ufw default allow outgoing ``` 3. Allow required traffic >[!note] >For the purpose of a basic Evilginx setup on a remote server we will allow ssh, dns, and https but add other services as necessary for your setup ``` ufw allow ssh ufw allow 53 ufw allow https ``` 4. Enable the firewall ``` ufw enable ``` At this point your server has **BASIC** protections.