Skip to main content

Admin Guide

For administrators of Knocknoc. Please start with the introduction

Introduction

Welcome to the Knocknoc Admin Guide. Knocknoc is a component in reducing your attack surface, it...

How Knocknoc removes attack surface

Knocknoc enables you to remove the attack surface of systems, by enacting just-in-time network/ap...

Getting Started

Licensing Knocknoc licensing is based on the number of users. You will need to have a license to...

Understanding Access Control

Backends A backend is a Knocknoc-supported technology that can connect to and update ACLs. Using...

Use Cases

Setup Guides

All the guides to configure and Install Knocknoc server for first use.

Authentication

A guide on configuring the various authentication methods for Knocknoc

Backends

Backends are software interfaces that the Knocknoc Agent can connect and interact with. Select a ...

IPset (Linux Netfilter/IPTables)

IPsets are a powerful and highly efficient way of making a dynamic firewall on a normal Linux mac...

HAProxy

HAProxy is a fantastic reverse proxy with a massive amount of features. Knocknoc has supported HA...

IPsets with UFW

This is an example that lets you use UFW (https://wiki.ubuntu.com/UncomplicatedFirewall) and IPse...

IPsets with Shorewall

This is an example that lets you use Shorewall https://shorewall.org/index.html and IPsets to dyn...

Script Any Arbitrary Backend

The "script" backend type is simply a script the agent can execute that takes a fixed set of argu...

AWS (EC2) Security Groups

Knocknoc can easily connect to AWS using common utilities and IAM credentials, and update the all...

Mikrotik RouterOS

The scripting backend can be used for MikroTik RouterOS config updates as well. Here is a sample ...

Nginx

Nginx support via script was added in knocknoc-agent version 1.0.30. This allows for flexible ACL...

Apache Webserver

Apache 2.4 and above have slightly different ACL syntax, so this page covers how you can use Knoc...

Fortigate Address Groups

Released for wider testing in version 1.0.34 of knocknoc agent, the FortiOS integration allows Kn...

Microsoft Entra

Overview This integration is designed to manage named locations in Microsoft Azure Conditional A...

Allowlist

The Allowlist backend makes a list of active IP address grants available via the Knocknoc server ...

Juniper SRX with Allowlist

Background Knocknoc's Allowlist features provides a very powerful integration with firewalls tha...

ACLS

ACLs allow you to assign a name to an argument for a backend, which is then assigned to a Group

Troubleshooting

What can go wrong, will.