AWS RHEL7 virbr0 and firewalld iptables

I reboot the RHEL7 on the AWS, the ftp and httpd was not working, ftp cannot connect and http://54.169.139.195/ 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.
elinks 127.0.0.1

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 http://website-humblec.rhcloud.com/how-to-removedelete-virbr0/.
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:
http://website-humblec.rhcloud.com/how-to-removedelete-virbr0/
http://www.thegeekstuff.com/2011/01/redhat-iptables-flush/
http://www.tecmint.com/configure-firewalld-in-centos-7/3/
https://progeeking.com/2015/09/26/oelrhel-7-firewalld/
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Migration_Planning_Guide/sect-Red_Hat_Enterprise_Linux-Migration_Planning_Guide-Security_and_Access_Control.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值