Jump to content


CentOS 7 useful commands

  • Please log in to reply
No replies to this topic

#1 John



  • Administrators
  • 73 posts

Posted 09 December 2014 - 01:46 PM

Open a port in the firewall

firewall-cmd --zone=public --add-port=161/udp --permanent
firewall-cmd --reload

Allow all traffic from a specific IP address:

firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" source address="" accept'

Start / Stop a service

systemctl start firewalld
systemctl stop firewalld

Start service at bootup

systemctl enable firewalld

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users