in Linux

AWS RHEL7 virbr0 and firewalld iptables

I reboot the RHEL7 on the AWS, the ftp and httpd was not working, ftp cannot connect and website cannot open, was checking where the problem was,

1, checked the ftp and httpd service is up and running.. all are working fine.
service httpd status
service vsftpd status
netstat -ntulp | grep httpd
netstat -ntulp | grep ftpd

2, checking the local connection, working fine.

3, checking the EC2 security groups configuration, the port 80 and port 21 are all allowed.

4, found “virbr0” is up by “ifconfig” command, removed the virbr0 interface by reference to this link
virsh net-destroy default

5, finally found the reason, the firewalld was up and running, not sure when I started this service..
firewall-cmd --add-service=ftp --permanent
firewall-cmd --add-service=http --permanent
firewall-cmd --reload

or the simplest way to do this is as below, as the AWS has the firewall running already…
iptables flush

Reference link:

Write a Comment