harbian-audit/docs/use-cases/apache2-usecase
Samson-W 7bee47fbf1 Update some docs. 2020-04-26 01:02:36 +08:00
..
Readme.mkd Update some docs. 2020-04-26 01:02:36 +08:00
etc.iptables.rules.v4.4http.sh Add use case: apache2 service. 2019-04-17 04:35:35 +08:00

Readme.mkd

Apache2 deploy

Install

# 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
# bash ./etc.iptables.rules.v4.4http.sh

Audit and apply

See the documentation for more details:
harbian-audit-readme

# bash bin/hardening.sh --audit-all 

This is set special service to exception(6.10)

# bash bin/hardening.sh --set-hardening-level 5 --allow-service http
# bash bin/hardening.sh --audit-all 
# bash bin/hardening.sh --apply