mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 09:46:11 +01:00
add pop port to firewall
This commit is contained in:
@@ -1373,6 +1373,7 @@ imap_folder_list_limit = 0
|
|||||||
FirewallUtilities.addRule("tcp", "110")
|
FirewallUtilities.addRule("tcp", "110")
|
||||||
FirewallUtilities.addRule("tcp", "143")
|
FirewallUtilities.addRule("tcp", "143")
|
||||||
FirewallUtilities.addRule("tcp", "993")
|
FirewallUtilities.addRule("tcp", "993")
|
||||||
|
FirewallUtilities.addRule("tcp", "995")
|
||||||
FirewallUtilities.addRule("udp", "53")
|
FirewallUtilities.addRule("udp", "53")
|
||||||
FirewallUtilities.addRule("tcp", "53")
|
FirewallUtilities.addRule("tcp", "53")
|
||||||
FirewallUtilities.addRule("udp", "443")
|
FirewallUtilities.addRule("udp", "443")
|
||||||
|
|||||||
@@ -176,6 +176,9 @@ def loadLoginPage(request):
|
|||||||
newFWRule = FirewallRules(name="ftptls", proto="tcp", port="40110-40210")
|
newFWRule = FirewallRules(name="ftptls", proto="tcp", port="40110-40210")
|
||||||
newFWRule.save()
|
newFWRule.save()
|
||||||
|
|
||||||
|
newFWRule = FirewallRules(name="POP3S", proto="tcp", port="995")
|
||||||
|
newFWRule.save()
|
||||||
|
|
||||||
newFWRule = FirewallRules(name="quic", proto="udp", port="443")
|
newFWRule = FirewallRules(name="quic", proto="udp", port="443")
|
||||||
newFWRule.save()
|
newFWRule.save()
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class CSF(multi.Thread):
|
|||||||
for items in data:
|
for items in data:
|
||||||
if items.find('TCP_IN') > -1 and items.find('=') > -1 and (items[0] != '#'):
|
if items.find('TCP_IN') > -1 and items.find('=') > -1 and (items[0] != '#'):
|
||||||
writeToConf.writelines(
|
writeToConf.writelines(
|
||||||
'TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,1025,8090,40110:40210"\n')
|
'TCP_IN = "20,21,22,25,53,80,110,995,143,443,465,587,993,995,1025,8090,40110:40210"\n')
|
||||||
elif items.find('TCP_OUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
|
elif items.find('TCP_OUT') > -1 and items.find('=') > -1 and (items[0] != '#'):
|
||||||
writeToConf.writelines(
|
writeToConf.writelines(
|
||||||
'TCP_OUT = "20,21,22,25,43,53,80,110,113,443,587,993,995,8090,40110:40210"\n')
|
'TCP_OUT = "20,21,22,25,43,53,80,110,113,443,587,993,995,8090,40110:40210"\n')
|
||||||
|
|||||||
Reference in New Issue
Block a user