Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Text only

csf firewall

nano -w /etc/csf/csf.allow
https://www.howtoforge.com/tutorial/install-and-configure-csf-config-server-firewall-on-centos-7/
https://snipt.net/embed/73c23159e21f9e7e733cabd928a764d5/
https://snipt.net/raw/73c23159e21f9e7e733cabd928a764d5/
73c23159e21f9e7e733cabd928a764d5
text
Text only
2
2016-12-05T03:57:40
True
False
False
Jun 03, 2016 at 01:18 AM
/api/public/snipt/147102/
csf-firewall
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>nano -w /etc/csf/csf.allow </span><span id="L-2"><a name="L-2"></a>https://www.howtoforge.com/tutorial/install-and-configure-csf-config-server-firewall-on-centos-7/ </span></pre></div> </td></tr></table>
network

Bash

list all IPs connected to port 80

netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head
https://snipt.net/embed/4d35170f7b72c0b14ec371ebca4d8948/
https://snipt.net/raw/4d35170f7b72c0b14ec371ebca4d8948/
4d35170f7b72c0b14ec371ebca4d8948
bash
Bash
1
2016-12-05T04:23:03
True
False
True
Feb 22, 2013 at 03:51 PM
/api/public/snipt/56250/
list-all-ips-connected-to-port-80
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>netstat -tn 2&gt;/dev/null <span class="p">|</span> grep :80 <span class="p">|</span> awk <span class="s1">&#39;{print $5}&#39;</span> <span class="p">|</span> cut -d: -f1 <span class="p">|</span> sort <span class="p">|</span> uniq -c <span class="p">|</span> sort -nr <span class="p">|</span> head </span></pre></div> </td></tr></table>
bash, ips, network
Copyrighted, illegal, or inappropriate content? Email [email protected].