How can I run a curl from PAN OS?

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

How can I run a curl from PAN OS?

L1 Bithead

Hi;

 

How can I run a curl command from PAN OS NGFW? say to some web-site. I have tried but it seems like curl is not supported.

 

Also, it would be great to see if the curl request can be initiated from a specific IP Address on the PAN OS NGFW?

 

The PAN OS version is  10.1

 

Kindly

Wasfi

1 accepted solution

Accepted Solutions

L4 Transporter

Unfortunately, you cannot perform a curl command from the Palo Alto Firewall. Here are a few other things you may want to consider:

 

  • Investigate further from the server side. It's better to take a packet capture from the server side for improved visibility.
  • Use a different IP (if available) to NAT the traffic to the specific server. This step will help determine if the issue is specific to a particular public IP.
  • Are you performing SSL decryption in the firewall? If so, try bypassing decryption for the specific server to check if that is the cause.
  • If you need the CURL output, it's best to do it from the affected client machine. If the firewall is only handling NAT, the output of CURL will likely be the same whether you do it from the firewall or the client machine.

 

Anoopkumar
Network Security Engineer

View solution in original post

4 REPLIES 4

L4 Transporter

Hello @WasfiBounni 

 

This can be done from the root, which only TAC has access to.

What is your exact requirement?

 

Anoopkumar
Network Security Engineer

I have a suspicion that the web-server is black-listing the public IP address of the PAN OS. When took a packet-capture, I could see the TCP 3 way hand-shake and the TLS session setup then the client sends its first encrypted data and the server comes back with a Reset.

 

So, this is not your normal behaviour as the TCP session setup is completing fine. However, I suspect some sort of a WAF at the server end, thus the need to curl.

 

 

Kindly

Wasfi

L4 Transporter

Unfortunately, you cannot perform a curl command from the Palo Alto Firewall. Here are a few other things you may want to consider:

 

  • Investigate further from the server side. It's better to take a packet capture from the server side for improved visibility.
  • Use a different IP (if available) to NAT the traffic to the specific server. This step will help determine if the issue is specific to a particular public IP.
  • Are you performing SSL decryption in the firewall? If so, try bypassing decryption for the specific server to check if that is the cause.
  • If you need the CURL output, it's best to do it from the affected client machine. If the firewall is only handling NAT, the output of CURL will likely be the same whether you do it from the firewall or the client machine.

 

Anoopkumar
Network Security Engineer

L1 Bithead

Thank you Akuzhuppilly

  • 1 accepted solution
  • 3976 Views
  • 4 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!