Try this command
firewall-cmd --permanent --zone=public --add-rich-rule="
rule family="ipv4"
source address="1.2.3.4/32"
port protocol="tcp" port="4567" accept"
Check the zone file later to inspect the XML configuration
cat /etc/firewalld/zones/public.xml
Reload the firewall
firewall-cmd --reload
Related Posts:
- Failed to start LSB :Bring Up down Networking
- Firewalld is not running [closed]
- Centos 7 save iptables settings
- No acceptable C compiler found in $PATH while installing the C compiler
- HAProxy vs. Nginx
- Nginx 403 forbidden for all files
- rndc: connect failed: 127.0.0.1#953: connection refused
- HAProxy vs. Nginx
- How do you install Node.JS on CentOS?
- How do I update a CentOS server’s time from an authoritative time server?
- Best way to gracefully restart CentOS?
- Adding a directory to $PATH in CentOS?
- How to extend an ext4 partition and filesystem?
- My /var/log/btmp file is huge! What should I do?
- Log all commands run by admins on production servers
- ssh : Permission denied (publickey,gssapi-with-mic)
- CentOS vs. Ubuntu [closed]
- Is there a way to get all IP addresses of youtube to block it with Windows Firewall?
- ImportError: No module named psycopg2
- No space left on device
- Error with pre-create check: “VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path”
- Error with pre-create check: “VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path”
- Ping – Request timed out
- How to install “make” in ubuntu?
- javac : command not found
- gcc: error: unrecognized command line option
- Failed to get D-Bus connection: Operation not permitted
- VirtualBox: mount.vboxsf: mounting failed with the error: No such device
- CentOS error – sudo: effective uid is not 0, is sudo installed setuid root?
- Server can’t find NXDOMAIN
- “psql: could not connect to server: Connection refused” Error when connecting to remote database
- SSL CA cert (path? access rights?)
- Python, how to handle the “ValueError: unsupported pickle protocol: 4” error?
- bash: mkvirtualenv: command not found
- phpinfo() is not working on my CentOS server
- Apache is downloading php files instead of displaying them
- httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
- How to Check the Version of my gcc?
- How to Unban an IP properly with Fail2Ban
- When does `cron.daily` run?
- Is it normal to get hundreds of break-in attempts per day?
- best way to clear all iptables rules
- How can I verify if TLS 1.2 is supported on a remote web server from the RHEL/CentOS shell?
- Mount CIFS Host is down
- how do you create an ssh key for another user?
- How to check if a port is blocked on a Windows machine?
- REJECT vs DROP when using iptables
- What firewall ports need to be open to allow access to external git repositories?
- Allow SFTP but disallow SSH?
- Why should I firewall servers?
- “POSSIBLE BREAK-IN ATTEMPT!” in /var/log/secure — what does this mean?
- Which ports do I need to open in the firewall to use NFS?
- How bad is it really to install Linux on one big partition?
- SSH from A through B to C, using private key on B [closed]
- Show all users and their groups/vice versa
- How should an IT department choose a standard Linux distribution?