The Secure Workspace (SWS) policy is configured globally (for all Security Gateways). In Connectra versions, it was configured locally (per Connectra Gateway), hence provided more granularity.
Integration of the new Secure Workspace configuration tool into SmartDashboard canceled the ability to configure the policy locally.
- If the gateway was upgraded from Connectra NGX R62, the old Secure Workspace configurations files (strict and relaxed configurations files) will remain on the Security Gateway. The administrator will be able to use one of them as a local configuration file (backward compatibility).
- The changes should be made in the
$CVPNDIR/conf/cvpnd.C configuration file. It is advised to back it up before changing.
- To commit these configuration changes, the last action should be restarting the
- Even if this feature is turned on (which means that the Security Gateway will use the local policy), the global policy (the XML file on the Security Gateway) may change during Security Policy installation.
Note: The documentation below refers to the path of
/opt/CPcvpn-R66/ - this changes per version.
This feature allows the administrator to use a local SWS policy file.
It involves changes in
cvpnd.C configuration file on the Security Gateway, therefore at the end of the process the Connectra daemon
cvpnd should be restarted.
To restart it, run the
This is done by making the following changes in the
:swsLocalPolicyFilePath ("/opt/CPcvpn-R66/htdocs/SNX/CSHELL/<my local file.xml>?)
:swsLocalPolicyFilePath ("<full path to the local Secure Workpace policy file (xml file)>")
- If the
useLocalSwsPolicyFlag property is set to 0, it means "use the CENTRAL SWS policy" (installed during Security Policy installation). In this case, the
swsLocalPolicyFilePath parameter is irrelevant.
- If the
useLocalSwsPolicyFlag property is set to 1, it means "use the LOCAL SWS policy".
Then the policy will be fetched from the path in the second parameter -
- It is possible to keep several local SWS configuration files, however only one of them can be used at a time.
- All local SWS configuration files should be located in the same directory -
/opt/CPcvpn - R66/htdocs/SNX/CSHELL/<the local SWS configuration file name>.
The local configuration file should have permissions:
The administrator can use the current central policy file as a basis for changes. In order to do, the administrator should:
- Copy the
/opt/CPcvpn-R66/htdocs/SNX/CSHELL/CPSWS_CENTRAL.xml file to
CPSWS_LOCAL.xml is optional. The administrator can choose any name but must not change the path).
- Edit this new copy to configure the changes to be made.
- Run the
chmod command to verify that the new configuration file has read permissions
- Configure the
cvpnd.C file as described above, i.e.
:swsLocalPolicyFilePath ("/opt/CPcvpn-R66/htdocs/SNX/CSHELL/CPSWS_LOCAL.xml ")
Versions prior to NGX R66 have two files that include two SWS policies:
After upgrade to R66, these files remain on the Security Gateway. The administrator may use them as a baseline for changes.
To revert to central policy, perform:
- Set the
useLocalSwsPolicyFlag property to 0, i.e.
- Restart the
cvpnd daemon with the
How can I use this feature and the SWS configuration tool in order to create a unique SWS policy for each GW? (Without editing the XML file manually)
Assuming there are three centrally managed Security Gateways, perform the following steps:
- Using the SWS configuration tool (SWS Ctool) in the SmartDashboard, configure the policy you want to use for the Security Gateway #1.
- Install the Security Gateway #1 policy. It will receive the new policy.
- Log in to Security Gateway #1 and copy the central SWS policy (
/opt/CPcvpn-R66/htdocs/SNX/CSHELL/CPSWS_CENTRAL.xml) to another file in the same location.
For example, copy it to the
- Configure Security Gateway #1 to use the new local SWS policy.
- Use the SWS Ctool to reconfigure the SWS policy for the Security Gateway #2.
- Install the Security Gateway #2 policy. It will receive the new policy.
- Log in to Security Gateway #2 and copy the central SWS policy?(as describe above)
- Repeat for Security Gateway #3.
- At the end of the process, each Security Gateway will have a different local SWS policy that was configured using the SWS Ctool.
After these changes are committed, the Security Gateway will use the local SWS policy instead of the central policy. To verify it, perform the following:
- Make sure you understand the difference between the local and the central SWS policy (add a new rule for the local policy, for example).
- Surf to the Gateway that is using the local SWS policy and log in with 'secure workspace'.
- Try to perform an action that is prohibited according to the rule that you added. Make sure it is fails while on other gateways (which use the central policy) it is performed properly.