cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1684
Views
0
Helpful
2
Replies

AnyConnect on Chromeos - managed

Charlie24238
Level 1
Level 1

Hi,

I'm trying to configure Cisco AnyConnect through Google's Enterprise Admin to push profile settings to the app when it starts up. There is a field in which I can enter some code in JSON format to allow me to do this. I'm entering the below, but it isn't working - I suspect there's something wrong with the below code. 

{
  "“vpn_connection_name”: ” anyconnect ”,": {},
  "“vpn_connection_host”: “ portal.anyconnect.com ”,": {}
}

Can anyone advise what the issue could be, as the above example profile isn't being pushed into the app when I open it on the Chromebook device. 

 

Thanks. 

1 Accepted Solution

Accepted Solutions

evantkraus6
Level 1
Level 1

I made an account to reply to this because I had the same problem (and found this as a result). I couldn't find anything in Cisco's documentation to help with the JSON formatting and wasn't really getting anywhere with support, so I just hammered away at it and got it figured out. I'm posting here in the hopes that it helps someone out in the future.

 

There are 3 ways that I found that you can configure the JSON to get your connection profiles populated. The first of which is as follows, which is good for a single connection profile:

{

"vpn_connection_name": "Portal 1",

"vpn_connection_host": "vpn.anyconnect.com"

}

The second is if you have many connection profiles:

{
"vpn_configuration_list": [
{
"vpn_name": "Portal 1",
"vpn_host": "vpn.anyconnect.com",
"vpn_set_active": true
},
{
"vpn_name": "Portal 2",
"vpn_host": "vpn.anyconnect.com/2"
},
{
"vpn_name": "Portal 3",
"vpn_host": "vpn.anyconnect.com/3"
},
{
"vpn_name": "Portal 4",
"vpn_host": "vpn.anyconnect.com/4"
}
]
}

And lastly, if you have an XML with your connection profiles on the ASA, you can use it as well:

{

"vpn_connection_profile": "Base64 Encoding of your XML"

}

View solution in original post

2 Replies 2

evantkraus6
Level 1
Level 1

I made an account to reply to this because I had the same problem (and found this as a result). I couldn't find anything in Cisco's documentation to help with the JSON formatting and wasn't really getting anywhere with support, so I just hammered away at it and got it figured out. I'm posting here in the hopes that it helps someone out in the future.

 

There are 3 ways that I found that you can configure the JSON to get your connection profiles populated. The first of which is as follows, which is good for a single connection profile:

{

"vpn_connection_name": "Portal 1",

"vpn_connection_host": "vpn.anyconnect.com"

}

The second is if you have many connection profiles:

{
"vpn_configuration_list": [
{
"vpn_name": "Portal 1",
"vpn_host": "vpn.anyconnect.com",
"vpn_set_active": true
},
{
"vpn_name": "Portal 2",
"vpn_host": "vpn.anyconnect.com/2"
},
{
"vpn_name": "Portal 3",
"vpn_host": "vpn.anyconnect.com/3"
},
{
"vpn_name": "Portal 4",
"vpn_host": "vpn.anyconnect.com/4"
}
]
}

And lastly, if you have an XML with your connection profiles on the ASA, you can use it as well:

{

"vpn_connection_profile": "Base64 Encoding of your XML"

}

Thank you - this worked perfectly - I couldn't find the info anywhere else - I even tried a JSON validator to see where I was making mistakes. Thank you for taking the time to post this, appreciated!