Firewalld on Centos7
Is there any file that one can go in to modify it like the iptables? I just changed the ssh port with this following command below but would like to view the file.
firewall-cmd --permanent --zone=public --add-port=55 Thanks, TT |
You should be able to view the file in the terminal.
Use the cat cmd to look at the file. For example if I want to view my lilo.conf file I just run this in the terminal. Code:
cat lilo.conf If you have trouble finding the file just use the locate or find cmd. cmd means command.:) |
Quote:
I am asking for the location of the file. firewalld.conf doesn't seem to have that configuration change. In the old days, iptables was the file. It is supposed to be in /etc/firewalld/firewalld.conf but I don't see anything reflecting the new port change. |
Quote:
Does Firewalld have configuration files or port files that you could go through to find what you want? |
I personally just uninstall firewalld and re-install iptables, unfortunately ipsets implementation in CentOS 7 is a bit buggy due to lacking properly systemd script.
Code:
systemctl stop firewalld |
On fedora anyway, the firewalld files are in /etc/firewalld
But I don't think it's a good idea to edit files directly, you can do what you need with the firewallcmd admin program. |
See this thread: https://www.linuxquestions.org/quest...ll-4175603347/
|
Is it easier to work with iptables verses firewalld?
-::-Debating on the lesser of the 2 evils to research.-::- |
Quote:
|
|
Thanks guys.
|
Quote:
Are things working right now? |
Haven't had a chance to work on it yet since the post. Will report back.
|
All times are GMT -5. The time now is 11:30 AM. |