panos_Security_rule Module not working when Using a Private IP

cancel
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/base.py

 

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!

1 REPLY 1

L5 Sessionator

Tracking in https://github.com/PaloAltoNetworks/pan-os-ansible/issues/431

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂
  • 1220 Views
  • 1 replies
  • 0 Likes
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!