Linux Firewalld and Amazon Security Group (network firewall) change to allow httpd (apache)
In this video we install firewalld and apache on a linux AWS ec2 instance. We show some of the issues people may have and also change the security group on the firewall to allow people to connect to the apache web server.
This is part 1
Commands from this video (mistakes and all)
1 sudo yum -y install firewalld
2 firewall-cmd --state
3 firewall-cmd --list-all
4 systemctl start firewalld
5 systemctl start firewald
6 systemctl start firewalld
7 clear
8 systemctl enable firewalld
9 sudo systemctl start firewalld
10 sudo firewall-cmd --state
11 sudo firewall-cmd --list-all
12 sudo firewall-cmd --get-default-zone
13 sudo firewall-cmd --get-zones
14 firewall-cmd --get-active-zones
15 firewall-cmd --get-active-zone
16 sudo firewall-cmd --get-active-zone
17 sudo firewall-cmd --get-active-zones
18 sudo reboot
19 clear
20 sudo firewall-cmd --list-all
21 sudo firewall-cmd --zone=public --add-service http
22 sudo firewall-cmd --list-all
23 sudo yum install httpd
24 sudo systemctl httpd start
25 sudo systemctl http start
26 sudo systemctl enable httpd
27 sudo systemctl httpd start
28 sudo systemctl http start
29 clear
30 sudo netstat -tlnp
31 sudo systemctl start httpd
32 sudo netstat -tlnp
33 sudo reboot
34 sudo netstat -tnlp
35 sudo firewall-cmd --list-all
36 history
37 sudo firewall-cmd --zone=public --add-service http
38 sudo firewall-cmd --zone=public --permanent --add-service http