Block all SSH outbound

Reply
Highlighted
L0 Member

Block all SSH outbound

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

Highlighted
Cyber Elite

Hi @Ivy_Vo 

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

Highlighted
L0 Member

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

Highlighted
Cyber Elite

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 (0.0.0.0/0) into the tunnel, then simply create a rule on the firewall, but I thought this would be too easy for a question here

Highlighted
Cyber Elite

@Ivy_Vo,

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. 

Highlighted
L0 Member

@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

Highlighted
Cyber Elite

@Ivy_Vo,

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

Highlighted
L0 Member

Yes, it is above.

Highlighted
Cyber Elite

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

Highlighted
Cyber Elite

@Ivy_Vo,

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 Live Community as a whole!

The Live Community thanks you for your participation!