Block all SSH outbound

Showing results for 
Search instead for 
Did you mean: 

Block all SSH outbound

L1 Bithead

For a home user who uses VPN to access internal network, how can we block all his SSH outbound connection to internet?


Cyber Elite
Cyber Elite

Hi @Ivy_Vo 

Are these computers managed by your company or are these devices owned by the users?

They use the company laptops, but how does that matter? Thanks!

Ok, I actually does not matter who owns the laptop. It matters if these laptops are centrally managed for example with active directory. As you are asking this question I assume you have split tunneling configured and only traffic towards your internal network is sent through the vpn tunnel. In this case you would need to block the outgoing ssh connections towards the internet locally on these laptops.

If you route everyrhing ( into the tunnel, then simply create a rule on the firewall, but I thought this would be too easy for a question here 😉

Cyber Elite
Cyber Elite


Are you tunneling all of the traffic through GlobalProtect or are you using split-tunnel. The question @vsys_remo mentioned is important because I'm assuming that you are using split-tunnel based off of your question.

If you are tunneling all the traffic through GlobalProtect, you would simply build out a security rulebase entry that denies all ssh traffic from your GlobalProtect zone to your untrust zone. I'm guessing you're asking the question because this isn't the case. 

@vsys_remo and @BPry 

Thank you all for explanation! I'm very new to Palo Alto.

Yes that is the case. We are using GlobalProtect to tunneling all the traffics and having a policy to deny all ssh application from GP zones to Untrust Zone. The policy was created a week ago but we got 0 hit counts. I think there are other ways to do this or I might miss something...SSH.jpg


Possibly a simple policy precedence issue. Is your policy to deny the traffic above the policy currently allowing said traffic or not? 

Yes, it is above.

The block rule is a userbased rule, is the connection maybe from a user not specified in this deny-rule?


Might be a good idea to include one of the allow log entires you are still seeing for said user. 

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!