panos_Security_rule Module not working when Using a Private IP

Showing results for 
Show  only  | Search instead for 
Did you mean: 

panos_Security_rule Module not working when Using a Private IP

L1 Bithead

Hello Palo Alto Community


I noticed something really interesting when using the panos_security_rule module that I been troubleshooting for a long time without success


For some reason, When I try to configure rules in a Palo Alto VM-500 using the Public IP of the mgmt Interface, it works like a charm configures the rules as expected.


But If I use a private IP(Same palo alto interface just using the private IP), only the panos_security_rules does not work, it just hangs for a while and throws the following error.


An exception occurred during task execution. To see the full traceback, use -vvv. The error was: http.client.RemoteDisconnected: Remote end closed connection without response


Any other playbooks module like for example create_objects, custom_urls, etc. works with the private IP, So I pretty much rule out a network/connectivity/authentication.


According to ChatGPT, it says that it might be a "TypeError" within panos/


Just wondering if there is any ideas about what could be hapenning


These are my settings on the libraries

  • Collection: paloaltonetworks.panos 2.13.0
  • Python: 3.8.10
  • Ansible: core 2.13.7
  • pan-os-python 1.7.3
  • pandevice 0.14.0
  • pan-python 0.17.0


Thanks in Advance!


L5 Sessionator

Tracking in

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂
  • 1 replies
  • 71 Subscriptions
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!