---
title: "Network and outbound rules | Docs | Private AI Workspace by R&D Copilot"
description: "Permit required routes and refuse external AI requests."
canonical: "https://private-ai.rdcopilot.com/docs/security/network-and-outbound-rules/"
language: en
updated: 2026-11-22
---

# Network and outbound rules

Permit required routes and refuse external AI requests.

## Build the route list

List source, destination and purpose for user access, identity, connectors, model runtimes, audit, backups and event delivery. Allow only the routes required by the selected deployment. External AI services are outside the model boundary and receive no question or context.

1.  Keep model endpoints inaccessible from the public ingress.
2.  Permit connector destinations individually; do not allow an entire outbound network by default.
3.  Place the event receiver inside the route policy before registering it.

## Test a refusal

Send a check for an external AI destination with the outbound check operation, or press Check outbound request in the Boundary view. Confirm outbound\_denied, that nothing was sent and that the audit log holds a refused entry with the user, the destination and the rule. Do not weaken the boundary to clear the refusal.

## Recheck changes

Repeat route tests after changing a connector, receiver or network rule. In isolated mode, test sign-in, retrieval, indexing and backups with outbound routes disabled. Record the result with the installation configuration.

curl

```bash
curl "$RDC_BASE_URL/private-ai/v1/admin/audit?limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/private-ai/v1/admin/audit?limit=20`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/private-ai/v1/admin/audit?limit=20',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/private-ai/v1/admin/audit?limit=20');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/private-ai/v1/admin/audit?limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 200

```json
{
  "items": [
    {
      "id": "audit-6",
      "time": "2026-11-23T05:48:00Z",
      "user": "andrei-pop",
      "action": "ask",
      "destination": "model-secondary",
      "decision": "refused",
      "rule": "model_unavailable"
    },
    {
      "id": "audit-5",
      "time": "2026-11-22T16:20:00Z",
      "user": "vlad-munteanu",
      "action": "index-again",
      "destination": "doc-scan",
      "decision": "allowed",
      "rule": "admin_role"
    },
    {
      "id": "audit-4",
      "time": "2026-11-22T14:05:00Z",
      "user": "andrei-pop",
      "action": "ask",
      "destination": "model-primary",
      "decision": "refused",
      "rule": "forbidden"
    },
    {
      "id": "audit-3",
      "time": "2026-11-22T11:32:00Z",
      "user": "vlad-munteanu",
      "action": "load-model",
      "destination": "model-primary",
      "decision": "allowed",
      "rule": "admin_role"
    },
    {
      "id": "audit-2",
      "time": "2026-11-22T09:10:00Z",
      "user": "workspace-integration",
      "action": "outbound-request",
      "destination": "external-ai-services",
      "decision": "refused",
      "rule": "outbound_denied"
    },
    {
      "id": "audit-1",
      "time": "2026-11-22T08:14:00Z",
      "user": "mihai-stan",
      "action": "ask",
      "destination": "model-primary",
      "decision": "allowed",
      "rule": "space_permission"
    }
  ],
  "nextCursor": null
}
```
