Weekend Project: Secure Your System with Port Knocking

Written By
Web Webster
Web Webster
Aug 21, 2010

“Port knocking is an authentication system that allows a server
to keep ports closed by default, and open them up only when clients
send a pre-determined sequence of connection requests aimed at
particular TCP or UDP ports. as a result, you can, for example,
keep SSH both invisible and inaccessible to passersby, but still
allow clients armed with the secret knock to connect. setting up
port knocking on your Linux system is easy, but make sure you set
aside time to familiarize yourself with the security and practical
risks.

“Server-side setup

“The most popular port knocking package on Linux system is
knockd. It works in concert with Linux’s iptables firewall, running
as a daemon that listens on a network interface for a
pre-configured sequence of connection requests. When a matching
sequence is detected, knockd executes an associated command from
its configuration file — canonically, an iptables command
that either opens or closes a particular port on which a service is
already running.”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.