---
title: Creating a Policy
slug: kronpam-getting-started-guide/creating-a-policy
description: Learn how to create policies for SSH, Telnet, SQL, and HTTP connections in this comprehensive document. Discover why RDP and SFTP connections don't require policies and delve into the workings of White Key and Black Key policies. Find step-by-step instruc
docTags: 
createdAt: 2023-09-08T10:08:34.619Z
---

Policies are applied to SSH/Telnet, SQL, and HTTP connections. RDP and SFTP connections do not need policies. Policies might be White Key and/or Black Key. White Key policies allow users to use white key commands, and Black Key policies restrict users to using black key commands.&#x20;

Policies are created based on Regex Classes:

- &#x20;“**. \***” means all commands.
- If “**. \***” is used after a command, it means all commands starting with that command.

To create a White Key Policy:

1. Navigate to **Policy&#x20;**> **Policy.**&#x20;
2. Click the blue **Add&#x20;**&#x62;utton and a pop-up will appear.
3. Select the **Type** as **White Key.**
4. &#x20;Click **Next.**

To create a Black Key Policy:

1. Navigate to **Policy&#x20;**> **Policy.**&#x20;
2. Click the blue **Add&#x20;**&#x62;utton and a pop-up will appear.
3. Select the **Type** as **Black Key.**
4. Click **Next.**

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/y7ZTRYJ_y5FWdDs-MKYgB_.blob "Selecting a Policy Key Type")

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/b_pCC9nWasu_--bm0toHq_image.png "Defining a White Key to Allow all commands")

![](https://api.archbee.com/api/optimize/g9cApVza9NIhSh0pjZYtA/qGzosvKydWDDg1sgrHlbj_.blob "Defining a Black Key to restrict all commands starting with Sudo")

