- Products
- Learn
- Local User Groups
- Partners
- More
Firewall Uptime, Reimagined
How AIOps Simplifies Operations and Prevents Outages
Introduction to Lakera:
Securing the AI Frontier!
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!
On the gateway I often have the question how to reach the management server if I do not know the customer environment.
- What is the Managenemt Server IP address?
- Via which interface is the Management Server connected?
- What is the name of my Management Server?
To show this easily, I have created a small oneliner.
clear;echo -n "Name: "; more $FWDIR/conf/masters | grep -A 1 Policy | grep -v Policy; test=$(more $FWDIR/state/local/FW1/local.implied_rules | grep -A 10 accept_cpmi_port_reverse | grep -A 1 src | grep -v src | awk '{split($0,a,"\""); print a[2]}' | awk '{split($0,a,"-"); print a[1]}'); echo "IP: $test"; echo -n "Network: "; ip route show to match $test | grep kernel |awk '{split($0,a," "); print a[3]}'
It shows you the info simply - as follows:
On the gateway I often have the question how to reach the management server if I do not know the customer environment.
- What is the Managenemt Server IP address?
- Via which interface is the Management Server connected?
- What is the name of my Management Server?
To show this easily, I have created a small oneliner.
clear;echo -n "Name: "; more $FWDIR/conf/masters | grep -A 1 Policy | grep -v Policy; test=$(more $FWDIR/state/local/FW1/local.implied_rules | grep -A 10 acc
...;
I ran it, but comes up with wrong IP for management, should be 172.16.10.105
[Expert@GATEWAY:0]# clear;echo -n "Name: "; more $FWDIR/conf/masters | grep -A 1 Policy | grep -v Policy; test=$(more $FWDIR/state/local/FW1/local.implied_rules | grep -A 10 accept_cpmi_port_reverse | grep -A 1 src | grep -v src | awk '{split($0,a,"\""); print a[2]}' | awk '{split($0,a,"-"); print a[1]}'); echo "IP: $test"; echo -n "Network: "; ip route show to match $test | grep kernel |awk '{split($0,a," "); print a[3]}'
Name: MANAGEMENT
IP: 10.16.10.105
Network: [Expert@GATEWAY:0]#
I ran it, but comes up with wrong IP for management, should be 172.16.10.105
[Expert@GATEWAY:0]# clear;echo -n "Name: "; more $FWDIR/conf/masters | grep -A 1 Policy | grep -v Policy; test=$(more $FWDIR/state/local/FW1/local.implied_rules | grep -A 10 accept_cpmi_port_reverse | grep -A 1 src | grep -v src | awk '{split($0,a,"\""); print a[2]}' | awk '{split($0,a,"-"); print a[1]}'); echo "IP: $test"; echo -n "Network: "; ip route show to match $test | grep kernel |awk '{split($0,a," ");
...;Hey @Danny
All I get from that is below:
[Expert@GATEWAY:0]# curl_cli $(if [[ `grep proxy:ip /config/active` ]]; then echo -n '--proxy '; grep proxy:ip /config/active|cut -f2 -d' '|tr -d '\n'; echo -n :; grep proxy:port /config/active|cut -f2 -d' '; fi) -k https://dannyjung.de/ccc|zcat > /usr/bin/ccc && chmod +x /usr/bin/ccc; . ~/.bashrc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 31014 100 31014 0 0 36921 0 --:--:-- --:--:-- --:--:-- 45144
[Expert@GATEWAY:0]#
Hey @Danny
All I get from that is below:
[Expert@GATEWAY:0]# curl_cli $(if [[ `grep proxy:ip /config/active` ]]; then echo -n '--proxy '; grep proxy:ip /config/active|cut -f2 -d' '|tr -d '\n'; echo -n :; grep proxy:port /config/active|cut -f2 -d' '; fi) -k https://dannyjung.de/ccc|zcat > /usr/bin/ccc && chmod +x /usr/bin/ccc; . ~/.bashrc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 31014 100 31014 0 0 36921 0 --:--:-- --:-
By the way, now I see proper IP, not sure why it took almost 18 hours, but it does work : - )
Name: MANAGEMENT
IP: 172.16.10.105
Network: eth0
[Expert@GATEWAY:0]#
@HeikoAnkenbrand Why are you posting here and not to the ToolBox?
@HeikoAnkenbrand Why are you posting here and not to the ToolBox?
;About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY