Overview:
Okta is used as an identity provider, which has the users and user groups. We use those information in Cloudflare to provision access trough the VPN. Currently there is no option to create rules trough code, so they have to be created manually.
How to create rules (Policies):
Login in to the dashboard
Go to Gateway - Policies - Network
Select Create a policy and fill it out
In Step 1 select unique name and add a description if necessary
In Step 2 as a selector select destination IP and User Group
In Step 3 select an action that should be taken, if the action is allow set warp enforcement for 8 hours
Save the Policy, wait a while for it to be applied then you can test it.
Attachments:
image-20220913-132119.png (image/png)
Gateway-Policy-Network.png (image/png)
image-20220913-133001.png (image/png)
Gateway-Policy-Network.png (image/png)
image-20220913-133001.png (image/png)