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

VPN Exclusions (made inside $FWDIR/lib/crypt.def) does not work

ok. here is a proper update for you all, should anyone knows what a heck I'm doing wrong (*wink*) - do let me know Smiley Happy

obviously I was following IN DETAIL sk86582 but,:

exec ping 10.10.10.1 (from Fortigate CLI on 10.10.10.4)

5 packets transmitted, 0 packets received, 100% packet loss

 

whilst on zdebug on CP Cluster:

 

;[cpu_1];[fw4_0];fw_log_drop_ex: Packet proto=1 10.10.10.4:2048 -> 10.10.10.1:5649 dropped by vpn_drop_and_log Reason: Clear text packet should be encrypted;

 

when $FWDIR/lib/crypt.def (on SMS + successfuly pushed is like following:

 

vpn_exclude_src1={<192.168.16.0,192.168.16.254>};

vpn_exclude_dst1={<a.a.a.1,a.a.a.254>};

vpn_exclude_src2={<10.10.10.0,10.10.10.255>};

vpn_exclude_dst2={<10.10.10.0,10.10.10.255>};

vpn_exclude_src3={<a.a.a.1,a.a.a.254>};

vpn_exclude_dst3={<192.168.16.0,192.168.16.254>};

 

with following in a proper place as well:

 

((src in vpn_exclude_src1) and (dst in vpn_exclude_dst1)) and ((src in vpn_exclude_src2) and (dst in vpn_exclude_dst2)) and ((src in vpn_exclude_src3) and (dst in vpn_exclude_dst3))

 

ps. all in right space, spot and policy installed - just simply DOES NOT WORK and I cannot ping whatever direction I'll take based on the exclude_objects from above.

any clue chaps ?

Jerry
0 Kudos
6 Replies
Danny
Pearl

Re: VPN Exclusions (made inside $FWDIR/lib/crypt.def) does not work

You could check your VPN routing with our https://community.checkpoint.com/docs/DOC-2214-common-check-point-commands-ccc script.

Re: VPN Exclusions (made inside $FWDIR/lib/crypt.def) does not work

Most common mistake possible here is not to use the corresponding file as found in sk98241 - but yours looks like you missunderstood the AND - how should that match to anything ? Depending on the criteria you want, an OR would be best...

0 Kudos
Jerry
Gold

Re: VPN Exclusions (made inside $FWDIR/lib/crypt.def) does not work

Thanks. You mean like this?:

((src in vpn_exclude_src1) and (dst in vpn_exclude_dst1)) or ((src in vpn_exclude_src2) and (dst in vpn_exclude_dst2)) or ((src in vpn_exclude_src3) and (dst in vpn_exclude_dst3))

Jerry
0 Kudos

Re: VPN Exclusions (made inside $FWDIR/lib/crypt.def) does not work

Look into the sk - it is either / or, but AND means all criteria are true, that is impossible...

Jerry
Gold

Re: VPN Exclusions (made inside $FWDIR/lib/crypt.def) does not work

Danke Smiley Happy all works like a charm now. indeed ÖRs made it a whole better LOL

Thanks chaps!

ps. @Danny - CCC is as always on most of my "Customers' SG/SMS devices so no panic, I've checked that before I posted here Smiley Happy Thanks for heads up!

Jerry
Highlighted

Re: VPN Exclusions (made inside $FWDIR/lib/crypt.def) does not work

So mark my post as the correct answer, please 😉