- Products
- Learn
- Local User Groups
- Partners
- More
Access Control and Threat Prevention Best Practices
5 November @ 5pm CET / 11am ET
Ask Check Point Threat Intelligence Anything!
October 28th, 9am ET / 3pm CET
Check Point Named Leader
2025 Gartner® Magic Quadrant™ for Hybrid Mesh Firewall
HTTPS Inspection
Help us to understand your needs better
CheckMates Go:
Spark Management Portal and More!
hi,
It will be appreciated, if could help me with command to show the service usage. example, Need to verify the port 23 or port 80 is used in policy or not. Thank you
Hi Danny,
thank you for your update. I am looking in CLI format. I have tried the command - mgmt_cli show service-tcp name "telnet" but actually it did not tell whether telnet service is used in policy or not.
Once again thank you for your reply.
You can use “where-used” to determine if it’s in use anywhere but you have to parse the results as it will include all policy packages.
@PhoneBoy , Apologies for late response, It took sometime to build the lab. I have tried the option but I am ending with error below.
CP-MGMT> mgmt_cli show service-tcp name "telnet" where-used
MGMT9000 Error: The parameters of show-service-tcp command should be provided in pairs (key and value). You have provided an odd number of parameters which suggests that you are probably missing a parameter.
I think what Danny gave you works, but as far as actual shell command for this, not sure if that exists though...maybe someone else can confirm.
You can always do something like netstat -an | grep "port number"...for example netstat -an | grep "443", but mind you thats only for 1 port...not sure if there is a flag you can use for group of ports.
I tried netstat -an | grep "1-700", but nothing came up, so guess that does not work. I will play around and update you.
Andy
@the_rock , thank you for your response. Kindly let me know your update. Thank you once again.
No problem, I will check a bit later and see if anything comes up.
Andy
Im sorry, I tried so many combinations on command like, but cant get one for range of ports with netstat. Not sure if thats even possible...
@the_rock , np. thank you
Hello, my friend.
Taking advantage of this "discussion" from a couple of years ago.
A doubt, based on the following image.
It means that this "box" where I am applying the command "netstat -an | ....", is "listening" on port 443, to any address in general, right?
It can be either connections from the same LAN, or from the Internet, or am I wrong?
Cheers. 🙂
Its applicable regardless where traffic comes from.
On the gateway from expert mode try fw up_execute ipp=6 dport=80
Omitted parameters such as src,dst,sport are assumed to be Any.
@Timothy_Hall , thank you. let me try.
@Timothy_Hall , thank you for update and apologies for late response. I have tried but its not giving the exact result.
This should work: where-used name telnet
@Timothy_Hall Yes, thank you... it wokred ...
mgmt_cli where-used name "telnet" --format json
Note that this only tells you where the object named "telnet" is used. If somebody set up a separate service object and named it "elnet-tay", then gave that object TCP port 23 and used it in a rule, 'where-used name telnet' would not find it. You should dump all the service-tcp and service-udp objects, filter them for the ports you care about (careful with port ranges!), then use 'where-used' on those.
And of course, none of this will tell you about rules with the service set to "Any".
@Bob_Zimmerman , Thank you for the update, I will try it.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
User | Count |
---|---|
25 | |
11 | |
9 | |
9 | |
7 | |
7 | |
7 | |
5 | |
5 | |
4 |
Wed 22 Oct 2025 @ 11:00 AM (EDT)
Firewall Uptime, Reimagined: How AIOps Simplifies Operations and Prevents OutagesTue 28 Oct 2025 @ 11:00 AM (EDT)
Under the Hood: CloudGuard Network Security for Google Cloud Network Security Integration - OverviewWed 22 Oct 2025 @ 11:00 AM (EDT)
Firewall Uptime, Reimagined: How AIOps Simplifies Operations and Prevents OutagesTue 28 Oct 2025 @ 11:00 AM (EDT)
Under the Hood: CloudGuard Network Security for Google Cloud Network Security Integration - OverviewWed 05 Nov 2025 @ 11:00 AM (EST)
TechTalk: Access Control and Threat Prevention Best PracticesAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY