mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-06 13:24:51 +02:00
680 B
680 B
Apache2 deploy
Install
sudo apt-get install apache2
How to use harbian-audit to audit and apply
Set firewall
sed -i 's/PUB_IFS=.*/PUB_IFS="interface of machine"/g' ./etc.iptables.rules.v4.4http.sh
sudo bash ./etc.iptables.rules.v4.4http.sh
Audit and apply
See the documentation for more details:
harbian-audit-readme
sudo bash bin/hardening.sh --audit-all
# This is set special service to exception(6.10)
sudo bash bin/hardening.sh --set-hardening-level 5 --allow-service http
sudo bash bin/hardening.sh --audit-all
sudo bash bin/hardening.sh --apply