enable firewalld centos 8

This commit is contained in:
Usman Nasir
2020-05-29 23:10:00 +05:00
parent 591d398e2a
commit 7ef5fac736
3 changed files with 4 additions and 4 deletions

View File

@@ -56,6 +56,8 @@ class FirewallUtilities:
@staticmethod
def deleteRule(proto, port):
print('Adding port: %s' % (port))
if port=="21":
command = "sudo firewall-cmd --remove-service=ftp --permanent"
else: