Backup occurs over excluded wireless networks connected to VPN
Who is this article for?
Incydr, yes.
CrashPlan for Enterprise, yes.
Code42 for Enterprise, yes.
CrashPlan for Small Business, no.
Overview
If devices in your Code42 environment are not honoring wireless network exclusions while connected to VPN, follow the steps below to stop backup traffic over excluded networks.
Considerations
The recommended solution below requires Code42 app version 8.0 or later.
Recommended solution
Step 1: Find the numeric OrgID
To completely exclude wireless networks, you must first identify the numeric ID of the applicable organization.
- Sign in to the Code42 console.
- Select Administration > Environment > Organizations.
- Select an organization:
- To update your entire Code42 environment, select your top-level organization. This organization is at the top of the organizational hierarchy and is the parent for all other organizations.
- To apply different values to different organizations, select a child organization, then follow the steps below. Repeat these steps with each child organization as necessary.
- In the web browser's address bar, note the numeric ID in the URL after "organization" but before any query or token parameters. In this example, the OrgID is 123456: https://console.us.code42.com/console/#/organization/123456?t=78910
Step 2: Use the Code42 API to exclude backups
The steps below assume basic familiarity with curl commands. Use the following example as a template to create a command specific to your Code42 environment:
curl -X PUT \ '<request_url>
/api/OrgSettings/<OrgID>
' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -u 'username
' \ -d '{ "packets": [ { "key": "device_network_alwaysBlockWhenOnBlacklistedWirelessNetwork", "value": "true
", "locked": true } ] }'
- Replace
<request_url>
with the address of your Code42 environment (do not include the brackets in your request). - Replace
<OrgID>
with the number identified in Step 1 above (do not include the brackets in your request). - Replace
username
with your Code42 username. When prompted, enter your password. - Set the
value
parameter totrue
to block backups. Set thevalue
parameter tofalse
to allow backups. - Execute the curl command in your command-line tool of choice.
Step 3: Confirm the setting
Use the GET
method to view the current value of the setting. The OrgSettings
resource also contains keys for numerous other Code42 settings. Therefore, to view only your customizations, you must include the device_network_alwaysBlockWhenOnBlacklistedWirelessNetwork
key as a query parameter.
The example below assumes basic familiarity with curl commands. Use this as a template to create a command specific to your Code42 environment:
curl -X GET \ '<request_url>
/api/OrgSettings/<OrgID>
?keys=device_network_alwaysBlockWhenOnBlacklistedWirelessNetwork' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -u 'username
'
- Replace
<request_url>
with the address of your Code42 environment (do not include the brackets in your request). - Replace
<OrgID>
with the number identified in Step 1 above (do not include the brackets in your request). - Replace
username
with your Code42 username. When prompted, enter your password. - Execute the curl command in your command-line tool of choice. When prompted, enter your password.
The Code42 API returns details about the setting and includes either the key pair"value":"true"
or"value":"false"
. If the setting has not been defined yet, thedata
parameter in the response is empty.