I'm looking for a solution, trying to solve the mystery of why even if i put is on SMS crypt.def it's not work. Now i know, SMB is everything different and there`s no documentation about it. We do these steps on Quantum Spark 1900 and solve the problem.
Do this on SMS, not on GW. Depends on version SMS you have to choose correct file.
vi /opt/CPSFWR81CMP-R82/lib/crypt.def
Insert these lines on the file and save it.
define USERC_CHECK(rule) {
(<src> in userc_rules)
};
#ifndef NON_VPN_TRAFFIC_RULES
#ifndef IPV6_FLAVOR
#define NON_VPN_TRAFFIC_RULES (dst=192.168.5.1 or dst=192.168.5.2)
#else
#define NON_VPN_TRAFFIC_RULES 0
#endif
#endif
#endif /* __crypt_def__ */
Then install policy on gateways and see the logs. The traffic will pass directly do p2p and not encrypted anymore.