mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-06 09:19:33 +08:00
15 lines
383 B
Bash
Executable File
15 lines
383 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Install ufw package if needed:
|
|
apt-get update && apt-get -y install --no-install-recommends ufw && apt-get -y autoclean && apt-get -y autoremove
|
|
|
|
# Basic ufw firewall setup allowing ssh, http, and https:
|
|
ufw default deny incoming
|
|
ufw default allow outgoing
|
|
ufw allow ssh
|
|
ufw allow http
|
|
ufw allow https
|
|
ufw logging off
|
|
rm -f /var/log/ufw.log
|
|
ufw --force enable
|