LoginSignup
2
3

More than 5 years have passed since last update.

iptablesで特定のIPアドレスからのアクセスをはじく

Last updated at Posted at 2016-01-19

WordPressのブルートフォース攻撃を海外から受けまくりで鬱陶しいのでついかっとなって設定したくなってしまった時のための備忘録として。自分用メモ。

※iptablesの設定は、間違えるととても影響が大きいので、要注意!
※環境によってもイロイロ違いがあったりするので、要注意!

iptables -A INPUT -s nnn.nnn.nnn.nnn -j DROP
service iptables save

nnn.nnn.nnn.nnn … アクセスをはじきたいIPアドレス

<参考>
しっかり勉強したい方には、この辺の記事がよさげですよ。
http://qiita.com/Tocyuki/items/6d90a1ec4dd8e991a1ce

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3