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

ONELINER - Easy VPN Debug

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; chmod 770 /tmp/vd; /tmp/vd

 

If the VPN error has occurred, you only need to stop the oneliner via CTRL-C.
vpn_debug.JPG

Now you can find the usual debug files here:
$FWDIR/log/ike.elg
$FWDIR/log/vpnd.elg

More VPN oneliner:
- ONELINER - Ease VPN Debug - with VPND live view 
- ONELINER - Ease VPN Debug - with IKE live view 

Use the tool with even more functions:
- Easy VPN Debug Tool 

Tags (1)
7 Replies
Highlighted

Hi @HeikoAnkenbrand 

Saves a lot of typing.
Super oneliner!

Highlighted
Iron

Does the oneliner also work under R80.40?

0 Kudos
Highlighted

Hi @ute

yes

Highlighted
Iron

Hi @HeikoAnkenbrand,

That's an interesting idea.

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

regards,
Robin

0 Kudos
Highlighted
Sapphire

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

0 Kudos
Highlighted

I will change the onliner for debuging.

Coming up in the next few days.

0 Kudos
Highlighted
Iron

👍

0 Kudos