snipt

Ctrl+h for KB shortcuts

Bash

Block all traffic from a specific IP

iptables -A INPUT -s 123.123.123.123 -j DROP
https://snipt.net/embed/3bc5ab7df9fe3190e9d9cab24da23ce2/
/raw/3bc5ab7df9fe3190e9d9cab24da23ce2/
3bc5ab7df9fe3190e9d9cab24da23ce2
bash
Bash
1
2019-07-18T06:49:46
True
False
False
/api/public/snipt/33800/
block-all-traffic-from-a-specific-ip
<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>iptables -A INPUT -s 123.123.123.123 -j DROP </span></pre></div> </td></tr></table>
bash, iptables, server