- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-24-2018 03:28 AM
I have an external Gateway and I wish to setup always-on except when on local LAN. As a test i am doing this on my own username but it seems to always want to connect to external GW regardless of my settings.
I have turned on Internal Host detection and this is returning "0" in the PanGPS logs so i would assume then it would realise i was internal and not try and connect me to external gateway?
Connection type is currently - prelogon always on
(T1848) 09/24/18 11:16:36:219 Debug(1712): host TEST
(T1848) 09/24/18 11:16:36:230 Debug(1729): DnsQuery returns 0
(T1848) 09/24/18 11:16:36:230 Debug(1744): Resolved X.X.X.X.IN-ADDR.ARPA for internal host detection with return value 0
(T1848) 09/24/18 11:16:36:230 Debug(1768): The host name is TEST.DOMAIN.local
(T1848) 09/24/18 11:16:36:230 Debug(4040): NetworkDiscoverThread: network type is external.
(T1848) 09/24/18 11:16:36:230 Debug(4109): NetworkDiscoverThread: Discover external network
09-24-2018 08:01 AM
As I'm reading your logs it's actually not able to resolve the DNS name that you are using. Attempt to test this with just an IP, preferrably a load-balanced VIP if you can, and see if it works.
09-24-2018 08:31 AM
Are you able to do a DNS (reverse)lookup for the IP that you configured and do you then get exactly the name that is configured?
09-24-2018 11:01 AM
09-24-2018 11:03 AM
09-24-2018 11:14 AM
Normally 0 means false while 1 equals true. So if you set the host also to test.domain.local the internal host detection should work and the client will not connect from internal.
09-24-2018 11:24 AM
not for this.
0 = succesful
9003 = not succesful
9852 = no dns servers configured
I just tried this from home, where im obviously off-LAN, and i get this:
(T10216) 09/24/18 19:18:04:105 Debug(1729): DnsQuery returns 9003
(T10216) 09/24/18 19:18:04:105 Debug(1744): Resolved x.x.x.x.IN-ADDR.ARPA for internal host detection with return value 9003
(T10216) 09/24/18 19:18:04:105 Debug(4040): NetworkDiscoverThread: network type is external.
(T10216) 09/24/18 19:18:04:105 Debug(4109): NetworkDiscoverThread: Discover external network.
09-26-2018 03:04 PM
Hi,
Did you make any progress on this? I am going thru the exact same challenge. Should work but it does not. The only thing I have not tried yet is switching from On-Demand to User-Logon.
Thanks
Jim
12-09-2019 03:49 PM
You must use Always-on when implementing internal host detection.
12-09-2019 06:57 PM
Hello @welly_59
We had similar problem earlier and PA TAC assisted us in resolving the issue.
Below are the things to check/configure:
--FQDN configured properly
--Try a portal config refresh:
https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClF1CAK
--Try latest GP version
07-26-2021 01:44 PM
Had the same issue, adding a PTR record for the internal gateway fixed it.
"When the user attempts to log in, the agent does a reverse DNS lookup of an internal host using the specified Hostname to the specified IP Address. The Dns server must have a PTR record in order to reply back to the reverse DNS query from the GP agent. In either case (failure or success) an entry would be made in the PanGPS.log file about the reverse DNS lookup result. "
https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClsWCAS
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!