PTA- Appmgr server start fails with ptaFirewallConfiguration.sh Unblock failed

PTA- Appmgr server start fails with ptaFirewallConfiguration.sh Unblock failed

103
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 15:52 PM


Symptom


After migrating PTA to a new machine, the appmgr service fails to start with the following error: 

 



Environment


14.6 Privilege Threat Analytics (PTA) PTA

Cause


PTA is reporting 'iptables: Index of insertion too big' when it tried to add rule to iptables.
The following errors are shown in the prepwiz log: 

 

LOG | [2025-12-26|13:33:51.946|TRT] | DEBUG | {aid=} | {sid=} | {rid=} | {tid=main} | com.cyberark.diamond.wizard.commandlets.AddPTARulesToFirewallCommandlet.addSyslogOutboundPorts(AddPTARulesToFirewallCommandlet.java:263) - Adding a rule to allow Syslog outbound for address '[IPADDRESS]' - port '5241' TCP
LOG | [2025-12-26|13:33:52.952|TRT] | WARN | {aid=} | {sid=} | {rid=} | {tid=main} | com.cyberark.diamond.wizard.commandlets.AddPTARulesToFirewallCommandlet.executeFirewallRule(AddPTARulesToFirewallCommandlet.java:458) - PWZ0046W :: Problem while adding firewall rule - Rule '[/sbin/iptables, -I, OUTPUT, 3, -p, tcp, -d, [IPADDRESS], --dport, 5241, -j, ACCEPT, -m, comment, --comment, 'Allow Syslog outbound TCP - 5241 TCP']', error 'iptables: Index of insertion too big.'
LOG | [2025-12-26|13:33:53.955|TRT] | WARN | {aid=} | {sid=} | {rid=} | {tid=main} | com.cyberark.diamond.wizard.commandlets.AddPTARulesToFirewallCommandlet.executeFirewallRule(AddPTARulesToFirewallCommandlet.java:458) - PWZ0046W :: Problem while adding firewall rule - Rule '[/sbin/iptables, -I, OUTPUT, 4, -p, tcp, --dport, 443, -j, ACCEPT, -m, comment, --comment, 'Allow outgoing 443TCP port for PVWA']', error 'iptables: Index of insertion too big.'
LOG | [2025-12-26|13:33:53.956|TRT] | ERROR | {aid=} | {sid=} | {rid=} | {tid=main} | com.cyberark.diamond.wizard.commandlets.AddPTARulesToFirewallCommandlet.openEPVPorts(AddPTARulesToFirewallCommandlet.java:171) - PWZ0074E :: Failed to create iptables EPV rule
LOG | [2025-12-26|13:33:54.959|TRT] | WARN | {aid=} | {sid=} | {rid=} | {tid=main} | com.cyberark.diamond.wizard.commandlets.AddPTARulesToFirewallCommandlet.executeFirewallRule(AddPTARulesToFirewallCommandlet.java:458) - PWZ0046W :: Problem while adding firewall rule - Rule '[/sbin/iptables, -I, OUTPUT, 4, -p, tcp, --dport, 80, -j, ACCEPT, -m, comment, --comment, 'Allow outgoing 80TCP port for PVWA']', error 'iptables: Index of insertion too big.'
LOG | [2025-12-26|13:33:54.959|TRT] | ERROR | {aid=} | {sid=} | {rid=} | {tid=main} | com.cyberark.diamond.wizard.commandlets.AddPTARulesToFirewallCommandlet.openEPVPorts(AddPTARulesToFirewallCommandlet.java:185) - PWZ0074E :: Failed to create iptables EPV rule
LOG | [2025-12-26|13:33:54.960|TRT] | ERROR | {aid=} | {sid=} | {rid=} | {tid=main} | com.cyberark.diamond.wizard.steps.ConfigurePTAFirewallUtil.run(ConfigurePTAFirewallUtil.java:110) - PWZ0047E :: PTA firewall configuration had failed. See prepwiz log for more details.

 

 



Resolution


Follow the steps below to fix the issue:

 

1) Run "service appmgr stop"
2) Run two command below:



/sbin/iptables -I OUTPUT -p tcp --dport 443 -j ACCEPT -m comment --comment 'Allow outgoing 443TCP port for PVWA'
/sbin/iptables -I OUTPUT -p tcp -d [IPADDRESS] --dport 5241 -j ACCEPT -m comment --comment 'Allow Syslog outbound TCP - 5241 TCP'
/sbin/iptables -I OUTPUT -p tcp --dport 80 -j ACCEPT -m comment --comment 'Allow outgoing 80TCP port for PVWA'



3) service iptables save
4) Reboot PTA server



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000pU3CAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail