Unable to Access an ASA Managed Server Externally via a Bastion Host
Last Updated:
Overview
While accessing an ASA-managed server via a bastion host, the following error might be experienced, resulting in being unable to access an ASA-managed server externally via a Bastion Host:
dial tcp: lookup my-bastion: no such host
Applies To
-
Advanced Server Access (ASA)
-
ASA managed instance
-
Bastion server
-
ASA URL handler
Cause
This error only comes up when the server is accessed from the Internet without a VPN connection.
Solution
Ensure that the bastion server's hostname is either resolvable via public DNS or there is an entry in the /etc/hosts file that points the bastion to an appropriate external IP address.
/etc/hosts content
[~]$ more /etc/hosts ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 1.1.1.204 my-bastion.<domain>.com my-bastion
ASA URL handler example:
scaleft://<my account>@app.scaleft.com/t/<my project>/a/server.domain.com/rdp?via=my-bastion
