The following command shows detailed policy based routing on the CLI. You found the policy based VPN routes to the corresponding external gateway. The basic Check Point table is "fw tab -f -t vpn_routing -u".
Command:
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" '
Regards,
Heiko Ankenbrand
➜ CCSM Elite, CCME, CCTE ➜ www.checkpoint.tips