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

VPN Debug

evpn1234.JPG

This oneliner will do the work for you.
Use this onliner to start easy a VPN debug without entering all debug commands by hand.

 


   echo 'echo "VPN Debug start"; function ctrl_c { vpn debug off; vpn debug ikeoff; vpn debug truncoff; echo "VPN Debug stop"; rm /tmp/vd; exit 0;}; trap ctrl_c INT; vpn debug trunc; vpn debug on; vpn debug ikeon; vpn debug on TDERROR_ALL_ALL=5; echo -e "\e[7m"; echo " Stop VPN debug with CTRL-C "; echo -e "\e[0m"; sleep 100000000;' > /tmp/vd; chm
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free
12 Replies

Explorer

Hi  @HeikoAnkenbrand 

Saves a lot of typing.
Super oneliner!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Participant

Does the oneliner also work under R80.40?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free
Reply
0 Kudos

Hi  @ute

yes

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Participant

Hi @HeikoAnkenbrand,

That's an interesting idea.

Can you use it for debugging that has nothing to do with VPN?

regards,
Robin

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free
Reply
0 Kudos

Champion
Champion

If you edit it to perform debug for your purpose you could !

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free
Reply
0 Kudos

I will change the onliner for debuging.

Coming up in the next few days.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Participant

👍

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Explorer

Hi @HeikoAnkenbrand,
I have an idea, but don't know how to implement it.
You could also put the log files after the "ctrl C" in a tar archive.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Hi @Ute1,

This is a good idea. I will include this in a new version.

Best regards
Heiko

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Contributor

Hi  @HeikoAnkenbrand 

I often use the onliner for VPN debugging. Would be great if you could integrate the tar function.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Participant

We have over 200 VPN tunnels that change more often. Therefore I use the oneliner very extensively.

Great idea, thanks

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free
Reply
0 Kudos

Contributor

Is an interesting solution! Should be included in the "vpn tu" tool.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free
Reply
0 Kudos