I just build centos7, and tried to setup firewalld, when I type command
firewall-cmd --zone=internal --change-interface=eth0
I got error : Error: COMMAND_FAILED
I already start it by
systemctl start firewalld.service
and firewall-cmd --state
it's running
I don't know why ? and I can't find how to solve it ...
is there anything wrong with this centos version or do I miss something??
I don't see any command before , related this firewalld setup error, list all:
yum update
update gcc
yum install centos-release-scl
yum install devtoolset-3-toolchain
scl enable devtoolset-3 bash
install nginx
yum install epel-release
yum install nginx
systemctl start nginx
systemctl enable nginx
install postgres
yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm
yum install postgresql95-server postgresql95
/usr/pgsql-9.5/bin/postgresql95-setup initdb
systemctl start postgresql-9.5.service
systemctl enable postgresql-9.5.service
install mongodb
...
install nodejs
...
firewalld
systemctl start firewalld.service
systemctl enable firewalld.service
firewall-cmd --zone=internal --change-interface=eth0
UPDATE
after I tried firewald reload , I can't use ssh connect now,
ssh: connect to host ... port 22: Connection refused
how to connect and fix firewalld ??