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

Where can I check the phase 2 encryption domain on cli for existing vpn

Where can I check the phase 2 encryption domain (locan and remote) on cli for existing vpn, is there a command for it?

0 Kudos
5 Replies
Danny
Champion Champion
Champion

Our ccc script has the required command included.

0 Kudos
jessica_smith
Contributor

Thaniks Danny, but confused with the link, where can I find the command to view the phase 2 encryption domain for existing VPN connection?

0 Kudos
Danny
Champion Champion
Champion

0 Kudos
JozkoMrkvicka
Mentor
Mentor

0 Kudos
jessica_smith
Contributor

Jozko, thanks for your link.


When I try the show vpn routing on cli on the FW, it does not work.

[Expert@fw1-sydney-a]# echo -e "\033[0m####################\n# VPN Routing #\n####################";fw tab -f -t vpn_routing -u 2>&1 |grep -v "+"| awk '{split($0,a,";"); print a[8]}' |sort -ng |uniq | awk '{split($0,a," "); print a[2]}' | xargs -I % sh -c 'echo -n "External Gateway: ";echo -e "\033[0;31m % \\033[37m";echo -e " Routing: \033[32m";fw tab -f -t vpn_routing -u 2>&1 |grep % |awk '\''{split($0,b,";"); print b[6] b[7]}'\''| sed 's/From\://'| sed 's/To\:/-/'|sort -u ;echo -e "\033[0m" '
####################
# VPN Routing #
####################
xargs: invalid option -- I
BusyBox v1.8.1 (2017-11-29 13:01:08 IST) multi-call binary

Usage: xargs [OPTIONS] [COMMAND] [ARGS...]

Execute COMMAND on every item given by standard input

Options:
-p Prompt the user about whether to run each command
-r Do not run command for empty read lines
-x Exit if the size is exceeded
-0 Input filenames are terminated by a null character
-t Print the command line on stderr before executing it

sort: unknown sort type

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events