{"id":253,"date":"2025-06-17T10:50:12","date_gmt":"2025-06-17T10:50:12","guid":{"rendered":"https:\/\/cptdcli.com\/?p=253"},"modified":"2025-06-17T23:42:44","modified_gmt":"2025-06-17T23:42:44","slug":"%d0%bd%d0%be%d0%b2%d0%b0%d1%8f-%d0%ba%d0%be%d0%bc%d0%b0%d0%bd%d0%b4%d0%b0-gateway","status":"publish","type":"post","link":"https:\/\/www.cptdcli.org\/?p=253","title":{"rendered":"New command into Repository: gateway"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">A new command named gateway has been added to the CPTD CLI system.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This command is designed to analyze the network configuration of Linux systems and allows you to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Display the current default gateway and additional routes<\/li>\n\n\n\n<li>Show a list of open ports (TCP and UDP)<\/li>\n\n\n\n<li>Filter the output: gateways only, ports only, TCP only, or UDP only<\/li>\n\n\n\n<li>Save the result to a file if needed<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The command works exclusively on Linux. It automatically checks the operating system compatibility on startup.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Usage Examples:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>cptd gateway\ncptd gateway --only-gateway\ncptd gateway --only-ports --tcp\ncptd gateway --all --save report.txt\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Installation:<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>cptd command --add gateway.zip\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Command Information:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Name: gateway<\/li>\n\n\n\n<li>Version: 1.0<\/li>\n\n\n\n<li>Author: Asbjorn Rasen<\/li>\n\n\n\n<li>Dependency: colorama<\/li>\n\n\n\n<li>License: CPTD-DSL License v1.1<\/li>\n\n\n\n<li>Repository: <a href=\"https:\/\/github.com\/asbjornrasen\">https:\/\/github.com\/asbjornrasen<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<blockquote class=\"wp-block-quote is-style-default has-black-color has-pale-ocean-gradient-background has-text-color has-background has-link-color wp-elements-db52b165466df0d87d310243bfdb8203 is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-medium-font-size wp-block-paragraph\">The <code>gateway<\/code> command gives you a quick overview of your current network configuration. Simple, transparent, and just one call away.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>A new command named gateway has been added to the CPTD CLI system. This command is designed to analyze the network configuration of Linux systems and allows you to: The command works exclusively on Linux. It automatically checks the operating system compatibility on startup. Usage Examples: Installation: Command Information: The gateway command gives you a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":281,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-253","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-new-commands"],"_links":{"self":[{"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=\/wp\/v2\/posts\/253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=253"}],"version-history":[{"count":7,"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=\/wp\/v2\/posts\/253\/revisions"}],"predecessor-version":[{"id":268,"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=\/wp\/v2\/posts\/253\/revisions\/268"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=\/wp\/v2\/media\/281"}],"wp:attachment":[{"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cptdcli.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}