Tutorial: Configure Deny Rules with Domain Routing Using the Access Server CLI⁠

Overview⁠

By default, Access Server supports allowlist rules for domain routing. This tutorial explains how to configure and validate deny rules using the CLI.

You can apply domain routing rules at different levels:

  • Globally (applies to all users).

  • Per Group.

  • Per individual user.

You can use one or more levels at the same time, depending on your access requirements.

Domain routing supports:

  • Exact domains (for example, example.com) — matches only that domain.

  • Wildcard domains (for example, *.example.com) — matches the domain and all subdomains.

  • Wildcard TLDs (for example, *.com) — matches all domains with that top-level domain (TLD).

Deny rules let you block traffic to specific domains, subdomains, or TLDs.

Prerequisites⁠

  • Access Server 3.2.0 or newer.

  • Root privileges on your Access Server's console.

  • DNS server proxy enabled globally.

  • One or more users or groups configured.

Scenario 1: Deny access to a specific domain⁠

In this scenario, you block access to app1.example.com for users connected to the VPN.

Scenario 2: Deny a specific domain and allow a wildcard⁠

In this scenario:

  • Deny: app1.example.com

  • Allow: *.example.com