{"id":1021,"date":"2021-07-16T07:32:06","date_gmt":"2021-07-16T12:32:06","guid":{"rendered":"https:\/\/www.knownhost.com\/kb\/?p=1021"},"modified":"2021-11-19T07:13:45","modified_gmt":"2021-11-19T13:13:45","slug":"how-to-enable-port-knocking-in-csf-lfd","status":"publish","type":"post","link":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/","title":{"rendered":"How To Enable Port Knocking in CSF\/LFD"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #212121;color:#212121\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #212121;color:#212121\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/#via_cli\" >Via CLI<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/#via_your_panels_csflfd_plugins_gui\" >Via Your Panel&#8217;s CSF\/LFD Plugin&#8217;s GUI<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>Below, we will outline two different methods of configuring port knocking with CSF\/LFD (via CLI and via&nbsp;GUI). This can be quite helpful for maintaining SSH functionality while also addressing PCI Scans failures due to SSH.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"via_cli\"><\/span>Via CLI<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Log in as root via SSH. Remember that <a href=\"https:\/\/www.knownhost.com\/\">KH servers<\/a> use port 2200 by default for SSH connections.<\/p>\n\n\n\n<p>Edit the CSF configuration file to enable and configure Port Knocking:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  nano \/etc\/csf\/csf.conf<\/code><\/pre>\n\n\n\n<p>Type &#8216;Ctrl w&#8217; to search and enter the following to search for the appropriate section:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  section:Port Knocking<\/code><\/pre>\n\n\n\n<p>There must be a minimum of 3 ports to knock.<\/p>\n\n\n\n<p>Locate &#8220;PORTKNOCKING =&#8221; in the section. Enter the SSH port, the protocol, the window in seconds that you have to log in after the ports have been knocked, and then the sequence of ports to knock like so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  PORTKNOCKING = \"2200;TCP;20;31;313;3133;31337\"<\/code><\/pre>\n\n\n\n<p>This configures port knocking for SSH over port 2200 using TCP ports. After successfully knocking the ports, there is a 20 second window to log in. The port sequence is 31, 313, 3133, &amp; 31337 in the example above, but you are free to change it as desired.<\/p>\n\n\n\n<p>You may also choose to receive an alert when the port protected by portknocking is opened by changing the following to equal 1 instead of 0:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  PORTKNOCKING_ALERT = \"0\"<\/code><\/pre>\n\n\n\n<p>Now, simply restart the firewall with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  csf -ra<\/code><\/pre>\n\n\n\n<p><strong>IMPORTANT:<\/strong>&nbsp;Do not terminate your current SSH session!<\/p>\n\n\n\n<p>Now, open a *new* terminal session, send a request to each TCP port you&#8217;ve specified, and then try to access your server via SSH. If this fails, then you may have a typo, so you can use your current active terminal session to check.<\/p>\n\n\n\n<p>You can use nmap to send a scan to the ports as requested like so (replace host.server.com with your actual hostname or IP):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  nmap -Pn -p T:31,313,3133,31337 host.server.com\n\n  Starting Nmap 7.01 ( https:\/\/nmap.org ) at 2019-06-01 17:14 CDT\n  Nmap scan report for host.server.com (162.XX.XX.XX)\n  Host is up.\n  rDNS record for 162.XX.XX.XX: mydemodomain.tld\n  PORT      STATE    SERVICE\n  313\/tcp   filtered unknown\n  3133\/tcp  filtered unknown\n  31337\/tcp filtered Elite\n\n  Nmap done: 1 IP address (1 host up) scanned in 3.46 seconds\n  $ ssh root@host.server.com -p2200\n  root@host.server.com's password: <\/code><\/pre>\n\n\n\n<p>The nmap flags above mean the following (via &#8216;nmap \u2013help&#8217; output):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  -Pn: Treat all hosts as online -- skip host discovery\n  -p &lt;port ranges&gt;: Only scan specified ports\n    Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9<\/code><\/pre>\n\n\n\n<p>Do note, though, that if your IP is in the csf.allow file, you will bypass port knocking altogether, so you&#8217;ll want to keep this in mind when you test to confirm that configuring port knocking did work.<\/p>\n\n\n\n<p>You could ease the entire login process by making a bash alias in your ~\/.bashrc file like so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  alias host='nmap -Pn -p T:31,313,3133,31337 host.server.com; ssh root@host.server.com -p2200'<\/code><\/pre>\n\n\n\n<p>You can then source the file to load it immediately:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  source ~\/.bashrc<\/code><\/pre>\n\n\n\n<p>A few points to note regarding the alias:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>host is the alias you will type into the browser to execute the alias and is also the first part of the server&#8217;s hostname<\/li><li>host.server.com above represents your server&#8217;s hostname, so make sure to substitute this with a hostname and make sure the hostname is resolving to the server<\/li><li>-p2200 represents the SSH port, which is a custom SSH port in this case<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"via_your_panels_csflfd_plugins_gui\"><\/span>Via Your Panel&#8217;s CSF\/LFD Plugin&#8217;s GUI<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You can also make the necessary changes via the firewall&#8217;s&nbsp;GUI&nbsp;that is integrated with your panel. The following example using DirectAdmin, however, this same steps could be applied to the CSF\/LFD integration with cPanel or any other supported panel.<\/p>\n\n\n\n<p>The general steps are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Log into your panel and locate the CSF\/LFD Firewall Plugin<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"164\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdpluginda.png\" alt=\"\" class=\"wp-image-1022\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdpluginda.png 800w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdpluginda-300x62.png 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdpluginda-768x157.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Click the CSF\/LFD plugin icon.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"477\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdda.png\" alt=\"\" class=\"wp-image-1023\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdda.png 800w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdda-300x179.png 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdda-768x458.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Under &#8220;csf &#8211; ConfigServer Firewall&#8221;, click &#8220;Firewall Configuration&#8221;<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"481\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/fwconf.png\" alt=\"\" class=\"wp-image-1024\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/fwconf.png 800w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/fwconf-300x180.png 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/fwconf-768x462.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to the section &#8220;Port Knocking&#8221; and fill in the necessary details.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"663\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/portknocking.png\" alt=\"\" class=\"wp-image-1025\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/portknocking.png 800w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/portknocking-300x249.png 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/portknocking-768x636.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>  There must be a minimum of 3 ports to knock.<\/code><\/pre>\n\n\n\n<p>Locate \u201cPORTKNOCKING =\u201d in the section. Enter the SSH port, the protocol, the window in seconds that you have to log in after the ports have been knocked, and then the sequence of ports to knock like so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  PORTKNOCKING = \"2200;TCP;20;31;313;3133;31337\"<\/code><\/pre>\n\n\n\n<p>This configures port knocking for SSH over port 2200 using TCP ports. After successfully knocking the ports, there is a 20 second window to log in. The port sequence is 31, 313, 3133, &amp; 31337 in the example above, but you are free to change it as desired.<\/p>\n\n\n\n<p>You may also choose to receive an alert when the port protected by portknocking is opened by changing the following to equal 1 instead of 0:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  PORTKNOCKING_ALERT = \"0\"<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Save by clicking &#8220;Change&#8221; at the bottom of the page and on the next screen, click &#8220;Restart csf+lfd&#8221; to apply the changes.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"465\" src=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/restartcsflfd.png\" alt=\"\" class=\"wp-image-1026\" srcset=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/restartcsflfd.png 800w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/restartcsflfd-300x174.png 300w, https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/restartcsflfd-768x446.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Now, open a terminal session, send a request to each TCP port you&#8217;ve specified, and then try to access your server via SSH to test.<\/p>\n\n\n\n<p>Instead of manually hitting each port, you could ease the entire login process by making a bash alias in your ~\/.bashrc file like so, which uses nmap to scan those ports and then issue the ssh connect command immediately afterwards:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  alias host='nmap -Pn -p T:31,313,3133,31337 host.server.com; ssh root@host.server.com -p2200'<\/code><\/pre>\n\n\n\n<p>You can then source the file to load it immediately:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  source ~\/.bashrc<\/code><\/pre>\n\n\n\n<p>A few points to note regarding the alias:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>host is the alias you will type into the browser to execute the alias and is also the first part of the server&#8217;s hostname<\/li><li>host.server.com above represents your server&#8217;s hostname, so make sure to substitute this with a hostname and make sure the hostname is resolving to the server (you may use the server IP if not or if you prefer it to the hostname)<\/li><li>-p2200 represents the SSH port, which is a custom SSH port in this case<\/li><\/ul>\n\n\n\n<p>That&#8217;s it! \ud83d\ude42<\/p>\n\n\n\n<p>As always, contact the support team if you have any trouble at all!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below, we will outline two different methods of configuring port knocking with CSF\/LFD (via CLI and via&nbsp;GUI). This can be quite helpful for maintaining SSH functionality while also addressing PCI Scans failures due to SSH. Via CLI Log in as root via SSH. Remember that KH servers use port 2200 by default for SSH connections. [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[91],"tags":[109,126,128,230,123,278],"class_list":["post-1021","post","type-post","status-publish","format-standard","hentry","category-guides","tag-cpanel","tag-csf","tag-directadmin","tag-firewall","tag-linux","tag-port-knocking"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Enable Port Knocking in CSF\/LFD - KnownHost<\/title>\n<meta name=\"description\" content=\"Learn more about what Port Knocking is and how to enable it in CSF\/LFD using DirectAdmin control panel on KnownHost servers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Enable Port Knocking in CSF\/LFD - KnownHost\" \/>\n<meta property=\"og:description\" content=\"Learn more about what Port Knocking is and how to enable it in CSF\/LFD using DirectAdmin control panel on KnownHost servers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/\" \/>\n<meta property=\"og:site_name\" content=\"KnownHost\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-16T12:32:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-19T13:13:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdpluginda.png\" \/>\n<meta name=\"author\" content=\"Jonathan K. W.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan K. W.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/\"},\"author\":{\"name\":\"Jonathan K. W.\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"headline\":\"How To Enable Port Knocking in CSF\\\/LFD\",\"datePublished\":\"2021-07-16T12:32:06+00:00\",\"dateModified\":\"2021-11-19T13:13:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/\"},\"wordCount\":838,\"image\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/csflfdpluginda.png\",\"keywords\":[\"cpanel\",\"csf\",\"directadmin\",\"firewall\",\"linux\",\"port knocking\"],\"articleSection\":[\"Guides\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/\",\"name\":\"How To Enable Port Knocking in CSF\\\/LFD - KnownHost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/csflfdpluginda.png\",\"datePublished\":\"2021-07-16T12:32:06+00:00\",\"dateModified\":\"2021-11-19T13:13:45+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\"},\"description\":\"Learn more about what Port Knocking is and how to enable it in CSF\\\/LFD using DirectAdmin control panel on KnownHost servers.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/csflfdpluginda.png\",\"contentUrl\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/csflfdpluginda.png\",\"width\":800,\"height\":164},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/how-to-enable-port-knocking-in-csf-lfd\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Enable Port Knocking in CSF\\\/LFD\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/\",\"name\":\"KnownHost\",\"description\":\"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knownhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/3db6e20d1f33519cd68fe0ba1230a48b\",\"name\":\"Jonathan K. W.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g\",\"caption\":\"Jonathan K. W.\"},\"sameAs\":[\"https:\\\/\\\/www.knownhost.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Enable Port Knocking in CSF\/LFD - KnownHost","description":"Learn more about what Port Knocking is and how to enable it in CSF\/LFD using DirectAdmin control panel on KnownHost servers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/","og_locale":"en_US","og_type":"article","og_title":"How To Enable Port Knocking in CSF\/LFD - KnownHost","og_description":"Learn more about what Port Knocking is and how to enable it in CSF\/LFD using DirectAdmin control panel on KnownHost servers.","og_url":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/","og_site_name":"KnownHost","article_published_time":"2021-07-16T12:32:06+00:00","article_modified_time":"2021-11-19T13:13:45+00:00","og_image":[{"url":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdpluginda.png","type":"","width":"","height":""}],"author":"Jonathan K. W.","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan K. W.","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/#article","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/"},"author":{"name":"Jonathan K. W.","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"headline":"How To Enable Port Knocking in CSF\/LFD","datePublished":"2021-07-16T12:32:06+00:00","dateModified":"2021-11-19T13:13:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/"},"wordCount":838,"image":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdpluginda.png","keywords":["cpanel","csf","directadmin","firewall","linux","port knocking"],"articleSection":["Guides"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/","url":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/","name":"How To Enable Port Knocking in CSF\/LFD - KnownHost","isPartOf":{"@id":"https:\/\/www.knownhost.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/#primaryimage"},"image":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdpluginda.png","datePublished":"2021-07-16T12:32:06+00:00","dateModified":"2021-11-19T13:13:45+00:00","author":{"@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b"},"description":"Learn more about what Port Knocking is and how to enable it in CSF\/LFD using DirectAdmin control panel on KnownHost servers.","breadcrumb":{"@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/#primaryimage","url":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdpluginda.png","contentUrl":"https:\/\/www.knownhost.com\/kb\/wp-content\/uploads\/2021\/07\/csflfdpluginda.png","width":800,"height":164},{"@type":"BreadcrumbList","@id":"https:\/\/www.knownhost.com\/kb\/how-to-enable-port-knocking-in-csf-lfd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knownhost.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How To Enable Port Knocking in CSF\/LFD"}]},{"@type":"WebSite","@id":"https:\/\/www.knownhost.com\/kb\/#website","url":"https:\/\/www.knownhost.com\/kb\/","name":"KnownHost","description":"KnownHost provides a comprehensive webhosting knowledge base to help answer many of your common webhosting and linux questions.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knownhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.knownhost.com\/kb\/#\/schema\/person\/3db6e20d1f33519cd68fe0ba1230a48b","name":"Jonathan K. W.","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f432b99e6651fe8d1deb57a285bd84e806f1c9ae8b4c6c585d7e3a0b33789ad9?s=96&d=mm&r=g","caption":"Jonathan K. W."},"sameAs":["https:\/\/www.knownhost.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/1021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/comments?post=1021"}],"version-history":[{"count":0,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/posts\/1021\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/media?parent=1021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/categories?post=1021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knownhost.com\/kb\/wp-json\/wp\/v2\/tags?post=1021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}