- Products
- Learn
- Local User Groups
- Partners
- More
Introduction to Lakera:
Securing the AI Frontier!
Quantum Spark Management Unleashed!
Check Point Named Leader
2025 Gartner® Magic Quadrant™ for Hybrid Mesh Firewall
HTTPS Inspection
Help us to understand your needs better
CheckMates Go:
SharePoint CVEs and More!
Hi community,
I am looking for a way to change the default value of "Match for Any" for new Service Objects. We have a R80.20 MDM and mostly have to use "basic" service objects (TCP/UDP, no Protocol-detection and default timeouts) for our policies, a Match for Any is not needed for 95% of our objects.
Since every new object that is created has Match for Any enabled we get loads of warnings "Services port conflict. port X (udp/tcp) serves both <obejct1> and <object2>. Uncheck 'Match for Any' checkbox in the 'Advanced' dialogue for one of them." when installing the policy. A cleanup takes ages and after some months it starts all over again due to new objects having been created.
Many Thanks
Marcus
In this case I am use the management CLI
1) grep for all service names via port 5560-5570 in a for loop
2) unset „match for any“ for all this services
3) publish the policy via CLI
As I am an old school R77.30 guy, I would do it this way:
Relevant for MDS only.
1. Switch to the relevant CMA
mdsenv <cma_name>
2. Find all services which have selected "Match For Any"
$MDSDIR/bin/cpmiquerybin attr "" services "include_in_any='true'" -a __name__
3. From given output gather all relevant services which I would like to disable "Match For Any" feature, and save it to some file
4. Create a small script which will iterate over all services in a created file and perform the change using dbedit
#!/bin/bash
SERVICES_MATCH_FOR_ANY=services_to_be_modified.txt
if [[ ! -f $SERVICES_MATCH_FOR_ANY ]];
then
echo "File $SERVICES_MATCH_FOR_ANY does NOT exist, cannot continue."
exit 0
fi
if [[ ! -s $SERVICES_MATCH_FOR_ANY ]];
then
echo "File $SERVICES_MATCH_FOR_ANY is EMPTY, cannot continue."
exit 1
fi
# export all Check Point environment variables
. /opt/CPshared/5.0/tmp/.CPprofile.sh
echo "Please type affected CMA Name/CMA IP:"
read CMA
echo "Going to switch to CMA with name/IP $CMA."
mdsenv $CMA
status=$?
if [ $status -eq 0 ]
then
echo "Switched to the $CMA correctly."
else
echo "CMA with name/IP $CMA does not exist !!!" >&2
exit 1
fi
for Port in $(cat $SERVICES_MATCH_FOR_ANY)
do
echo -e "modify services $Port include_in_any false\n-q\n" | dbedit -local
done
exit 0
If you get that conflict warning it means that you have two similar services. You only need one. I don't know why you should create a lot of services objects if the service you need is there already...
Because of port ranges ?
One application needs just tcp port 5565, another needs tcp ports 5560-5570.
Instead of creation 9 new tcp ports, I will create just one portrange where is already included port tcp 5565, which will cause "conflict".
In this case I am use the management CLI
1) grep for all service names via port 5560-5570 in a for loop
2) unset „match for any“ for all this services
3) publish the policy via CLI
As I am an old school R77.30 guy, I would do it this way:
Relevant for MDS only.
1. Switch to the relevant CMA
mdsenv <cma_name>
2. Find all services which have selected "Match For Any"
$MDSDIR/bin/cpmiquerybin attr "" services "include_in_any='true'" -a __name__
3. From given output gather all relevant services which I would like to disable "Match For Any" feature, and save it to some file
4. Create a small script which will iterate over all services in a created file and perform the change using dbedit
#!/bin/bash
SERVICES_MATCH_FOR_ANY=services_to_be_modified.txt
if [[ ! -f $SERVICES_MATCH_FOR_ANY ]];
then
echo "File $SERVICES_MATCH_FOR_ANY does NOT exist, cannot continue."
exit 0
fi
if [[ ! -s $SERVICES_MATCH_FOR_ANY ]];
then
echo "File $SERVICES_MATCH_FOR_ANY is EMPTY, cannot continue."
exit 1
fi
# export all Check Point environment variables
. /opt/CPshared/5.0/tmp/.CPprofile.sh
echo "Please type affected CMA Name/CMA IP:"
read CMA
echo "Going to switch to CMA with name/IP $CMA."
mdsenv $CMA
status=$?
if [ $status -eq 0 ]
then
echo "Switched to the $CMA correctly."
else
echo "CMA with name/IP $CMA does not exist !!!" >&2
exit 1
fi
for Port in $(cat $SERVICES_MATCH_FOR_ANY)
do
echo -e "modify services $Port include_in_any false\n-q\n" | dbedit -local
done
exit 0
Hi,
We consider changing the default for "Match for 'Any' services to be false in R80.40.
We will add a notification for this behavior change in the new service window.
I would like to hear your thoughts in regards to this change. Is there a reason we should not go forward with this change?
Regards
Alon - Security Management Products Group Manager
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
User | Count |
---|---|
24 | |
15 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 | |
2 |
Tue 30 Sep 2025 @ 08:00 AM (EDT)
Tips and Tricks 2025 #13: Strategic Cyber Assessments: How to Strengthen Your Security PostureTue 07 Oct 2025 @ 10:00 AM (CEST)
Cloud Architect Series: AI-Powered API Security with CloudGuard WAFTue 30 Sep 2025 @ 08:00 AM (EDT)
Tips and Tricks 2025 #13: Strategic Cyber Assessments: How to Strengthen Your Security PostureThu 09 Oct 2025 @ 10:00 AM (CEST)
CheckMates Live BeLux: Discover How to Stop Data Leaks in GenAI Tools: Live Demo You Can’t Miss!Wed 22 Oct 2025 @ 11:00 AM (EDT)
Firewall Uptime, Reimagined: How AIOps Simplifies Operations and Prevents OutagesAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY