Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
JyotiKamble
Explorer

"vpn tu" is not working to list tunnels on checkpoint

When we login to checkpoint via GUI, we do see the tunnel configured on checkpoint but when we ran "vpn tu" and "vpn tu tlist" command in CLI, getting no output. Can anyone please suggest command to get all configured vpn tunnel not only active ones. 

0 Kudos
11 Replies
AaronCP
Advisor

Hey @JyotiKamble,

 

Have you tried running @Danny's VPN one liner?

the_rock
Legend
Legend

Great advice from @AaronCP , but can you send a screenshot of what you actually do get when you run commands from cli?

Andy

0 Kudos
JyotiKamble
Explorer

Hello,

When we ran "vpn tu" command in cli we get there is 3 vpn tunnels as you can see in attached cli output image.
Using GUI we see there is 7 vpn communities out of that 2 is not used exactly as client tunnels so we can consider there is 5 tunnels we can see using GUI.
Is there any command to get all configured tunnels?

0 Kudos
the_rock
Legend
Legend

Ok, do you see same if you run option 2 from vpn tu?

0 Kudos
JyotiKamble
Explorer

This will just show the same number with IKE

0 Kudos
Danny
Champion Champion
Champion

Did you try this one-liner?

0 Kudos
JyotiKamble
Explorer

Not Yet
Can you please tell me how to use this one-liner?

0 Kudos
Danny
Champion Champion
Champion

Just login to the expert mode of your VPN gateway and run the one-liner.

0 Kudos
the_rock
Legend
Legend

As @Danny said, just basically copy the whole thing and paste into expert mode and you will see the right output.

0 Kudos
JyotiKamble
Explorer

Hi @Rock & @Danny 

Thanks for sharing this one liner. It worked. It is showing list of all configured tunnels

One additional query.

Do you know how we can get number of configured tunnels just like we see in GUI.

0 Kudos
Danny
Champion Champion
Champion

Sure, just use this SmartConsole extension.

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events