Files
oneclickvirt.github.io/assets/en_guide_block_block_incus.md.97366d56.js
2025-05-01 04:06:00 +00:00

2 lines
4.9 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{_ as s,v as n,b as o,R as a}from"./chunks/framework.70afa331.js";const C=JSON.parse('{"title":"Blocking Abusive Behavior via Shell Scripts","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"en/guide/block/block_incus.md","filePath":"en/guide/block/block_incus.md","lastUpdated":1746072337000}'),e={name:"en/guide/block/block_incus.md"},t=a('<h1 id="blocking-abusive-behavior-via-shell-scripts" tabindex="-1">Blocking Abusive Behavior via Shell Scripts <a class="header-anchor" href="#blocking-abusive-behavior-via-shell-scripts" aria-label="Permalink to &quot;Blocking Abusive Behavior via Shell Scripts&quot;"></a></h1><h2 id="blocking-ingress-egress-traffic-on-easily-abused-ports-and-filtering-out-port-scanning-and-exploitation-toolkits" tabindex="-1">Blocking Ingress/Egress Traffic on Easily Abused Ports and Filtering Out Port Scanning and Exploitation Toolkits <a class="header-anchor" href="#blocking-ingress-egress-traffic-on-easily-abused-ports-and-filtering-out-port-scanning-and-exploitation-toolkits" aria-label="Permalink to &quot;Blocking Ingress/Egress Traffic on Easily Abused Ports and Filtering Out Port Scanning and Exploitation Toolkits&quot;"></a></h2><ul><li>(<em><strong>Optional</strong></em>, this script is solely for preventing container abuse and is not mandatory to install.)</li><li>Precautionary Measures</li></ul><p>Command:</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">curl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-L</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">https://raw.githubusercontent.com/oneclickvirt/incus/main/scripts/rules.sh</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-o</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">rules.sh</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&amp;&amp;</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">chmod</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">+x</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">rules.sh</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&amp;&amp;</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">bash</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">rules.sh</span></span></code></pre></div><h2 id="use-the-screen-command-to-configure-monitoring-and-blocking-of-certain-processes-commands-terminate-containers-immediately-upon-the-appearance-of-specific-processes" tabindex="-1">Use the &#39;screen&#39; command to configure monitoring and blocking of certain processes&#39; commands: terminate containers immediately upon the appearance of specific processes. <a class="header-anchor" href="#use-the-screen-command-to-configure-monitoring-and-blocking-of-certain-processes-commands-terminate-containers-immediately-upon-the-appearance-of-specific-processes" aria-label="Permalink to &quot;Use the &#39;screen&#39; command to configure monitoring and blocking of certain processes&#39; commands: terminate containers immediately upon the appearance of specific processes.&quot;"></a></h2><ul><li>To stop monitoring, you can use the &#39;screen&#39; command to stop the window named &#39;lxc_monitor&#39; and delete it.</li><li>(<em><strong>Optional</strong></em>, this script is only for preventing misuse of containers; it&#39;s fine not to install it.)</li><li>Shutdown afterwards.</li></ul><p>Command:</p><div class="language-shell"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki material-theme-palenight"><code><span class="line"><span style="color:#FFCB6B;">curl</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-L</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">https://raw.githubusercontent.com/oneclickvirt/incus/main/scripts/build_monitor.sh</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">-o</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">build_monitor.sh</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&amp;&amp;</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">chmod</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">+x</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">build_monitor.sh</span><span style="color:#A6ACCD;"> </span><span style="color:#89DDFF;">&amp;&amp;</span><span style="color:#A6ACCD;"> </span><span style="color:#FFCB6B;">bash</span><span style="color:#A6ACCD;"> </span><span style="color:#C3E88D;">build_monitor.sh</span></span></code></pre></div>',9),l=[t];function i(r,c,p,d,m,u){return n(),o("div",null,l)}const y=s(e,[["render",i]]);export{C as __pageData,y as default};