---
title: 'Portknocking Settings'
url: 'https://docs.danami.com/juggernaut/settings/firewall/portknocking-settings'
markdown: 'https://docs.danami.com/juggernaut/settings/firewall/portknocking-settings.md'
date: '2026-09-22'
description: 'Portknocking - PORTKNOCKING Enable port knocking to be on multiple ports with a variable number of knocked ports and a timeout. There must be a minimum of 3 ports to knock for an entry to be valid. e.g.: 22;TCP;20;100;200;300;400 Default: empty Portknocking logging - PORTKNOCKING_LOG Enable PORTKN…'
taxonomy:
  category:
    - docs
  tag:
    - portknocking
---

[](#)  [ Basics ](https://docs.danami.com/juggernaut/)     [ Settings Reference ](https://docs.danami.com/juggernaut/settings)     [ Firewall ](https://docs.danami.com/juggernaut/settings/firewall)      Portknocking Settings    

# Portknocking Settings

**Portknocking** - `PORTKNOCKING`
Enable port knocking to be on multiple ports with a variable number of knocked ports and a timeout. There must be a minimum of 3 ports to knock for an entry to be valid. e.g.: 22;TCP;20;100;200;300;400
Default: empty

**Portknocking logging** - `PORTKNOCKING_LOG`
Enable PORTKNOCKING logging by iptables.
Default: 1 Range: 0-1

## Related Pages

- [Port Knocking](https://docs.danami.com/juggernaut/user-guide/port-knocking "Port Knocking")

 [ ](https://docs.danami.com/juggernaut/command-line-interface/firewall/firewall-portknocking)

---

## Navigation

- Parent: [Firewall](https://docs.danami.com/juggernaut/settings/firewall.md)
- Previous: [Logging Settings](https://docs.danami.com/juggernaut/settings/firewall/logging-settings.md)
- Next: [Docker Settings](https://docs.danami.com/juggernaut/settings/firewall/docker-settings.md)
