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

One-liner to show VPN S2S tunnels on gateway

Danny
Champion Champion
Champion

🏆 Tool of the Year 2022
✔️ Works on all VPN gateway types
👉 Available as SmartConsole extension

One-liner (Bash) to show IPsec VPN site-to-site tunnels on Check Point security gateways.
In expert mode run:


    echo;_vpn=1;if [[ -f /bin/enabled_blades ]];then if [[ `enabled_blades|tr 'A-Z' 'a-z'` != *'vpn'* ]];then _vpn=0;fi;elif [[ -f /opt/fw1/conf/active_blades.txt ]];then if [[ `grep VPN-S2S /opt/fw1/conf/active_blades.txt|awk '{print $NF}'` != '1' ]];then _v
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




(2)
17 Replies

the_rock
Legend
Legend

Will try it tomorrow and provide feedback ; - )

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
Legend
Legend

Very good, works well!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Dennis_M
Participant
Participant

Finally. Have been waiting so long for a much simpler method to check the VPN tunnels and here it is.

Works great, thanks! 🙂

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


ptuttle_2
Contributor

This AWESOME !!! Thanks Very Much.  Works Great.  I clicked Kudos 50 + times but only went up one - 😊

 

-pat

 

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


(1)

Joshua
Contributor

This is very useful. A great addition to the power house that is the ccc-script. Just wow!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

mombro
Participant

Great! Looking forward to the smart console extension 🙂

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Friedrich_Taatz
Explorer

Awesome!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Ziegelsambach
Contributor
Contributor

Good Job ^^

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

danjue
Explorer

Thanks!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Thomas_Eichelbu
Advisor
Advisor

Wow holy cow ... cool stuff!!!

cannot believe we had to wait since 1993 for such a cool CLI command for a nice overview of vpn tunnels!
Awesome stuff!


;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


jannag
Participant

Awesome Job!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Yannic_Schmitt
Explorer

Awesome tool, works great!

Thank you for your contribution to the community.  😀

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Marcus_E
Explorer

Works like a charm. Thank you for sharing!  😊

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

OliverBayerlein
Participant

Very usefull, thanks!

 

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Danny
Champion Champion
Champion

@OliverBayerlein: Thx for your kind words and the DAIP fix.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

DanielJavier
Explorer

In VSX mode what modification should be made?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Danny
Champion Champion
Champion

Switch to your specific vsenv first and adjust the paths of the script according to your environment.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos