cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2116
Views
5
Helpful
7
Replies

Cisco AnyConnect VPN connect to a non-443 port entry

James_Suzhou
Level 1
Level 1

Hi,

 

Due to some reason, I have change the default 443 port to 7799 in ASA firewall both in HTTPS port and DTLS port.

By using Cisco AnyConnect Secure Mobility Client, I am able to connect successfully if manual input the address xx.domainname.com:7799 and everything working just fine.

However, if I had add this xx.domainname.com:7799 as one of the HostEntry under Profile subfolder, the connection never successful.

Does anyone can help with this? Thanks.

 

Cisco ASA: ASA 5506

ASA Version: 9.12(4)18

ASDM Version: 7.5(2)

Cisco AnyConnect Secure Mobility Client: 4.8.03052

Profile: 

***

<ServerList>

<HostEntry>
<HostName>vpn</HostName>
<HostAddress>https://xx.domainname.com:7799</HostAddress>
<UserGroup>vpn</UserGroup>
</HostEntry>

</ServerList>

 

Regards

James

 

7 Replies 7

The remote user have to tag the port at the end of the ip address/URL if using other than 443.

 

unless otherwise if you use the default port 443 than the ASA ASDM will keep the default port in host entry.

please do not forget to rate.


@Sheraz.Salim wrote:

The remote user have to tag the port at the end of the ip address/URL if using other than 443.

 

unless otherwise if you use the default port 443 than the ASA ASDM will keep the default port in host entry.


Hi Sheraz.

Thank you.

So far, manually input seems the only way, but its quite annoying.

 

 

Use the HostAddress without the "https://" in your XML file and try again.


@Karsten Iwen wrote:

Use the HostAddress without the "https://" in your XML file and try again.


Hi Karsten, Yes. I have tried to remove the "https://" and change the domain name to ip address, both seems not working.

 

Using the IP can not work as the IP is not in the certificate. But using a host entry in the XML with a non-standard port definitely works.

This is one of my entries:

		<HostEntry>
			<HostName>Example Company</HostName>
			<HostAddress>vpn2.example.de:444</HostAddress>
			<UserGroup>LOC</UserGroup>
			<BackupServerList>
				<HostAddress>vpn1.example.de:444</HostAddress>
			</BackupServerList>
		</HostEntry>

Hi Karsten,

I tried to remove the https:// and now my XML looks like below. Still not working.

 

<ServerList>
        <HostEntry>
            <HostName>vpn</HostName>
                <HostAddress>xx.domainname.com:7799</HostAddress>
            <UserGroup>vpn</UserGroup>
        </HostEntry>
</ServerList>


@Karsten Iwen wrote:

Using the IP can not work as the IP is not in the certificate. But using a host entry in the XML with a non-standard port definitely works.

This is one of my entries:

		<HostEntry>
			<HostName>Example Company</HostName>
			<HostAddress>vpn2.example.de:444</HostAddress>
			<UserGroup>LOC</UserGroup>
			<BackupServerList>
				<HostAddress>vpn1.example.de:444</HostAddress>
			</BackupServerList>
		</HostEntry>

 

I am not aware of any bug here, but if anything doesn't work, I would always try the actual software-version. And your AnyConnect is already slightly outdated.

 

And have you tried to remove all profiles on the PC and load the relevant profile again from the ASA?

Next question: Can you reproduce this with other PCs?