<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>hacker on Christian Knedel</title>
    <link>https://www.christian-knedel.de/ja/tags/hacker/</link>
    <description>Recent content in hacker on Christian Knedel</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja-jp</language>
    <lastBuildDate>Fri, 14 Feb 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://www.christian-knedel.de/ja/tags/hacker/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Nginx：TORユーザーをブロックするにはどうすればよいですか？</title>
      <link>https://www.christian-knedel.de/ja/post/2020/february/20200214-nginx-tor/</link>
      <pubDate>Fri, 14 Feb 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.christian-knedel.de/ja/post/2020/february/20200214-nginx-tor/</guid>
      <description>私のダークネットブロッカーには、Tor exit node IO listと以下のルールが必要なだけです。
location / { limit_req zone=one; #request limit limit_conn addr include /etc/nginx/conf.d/tor-ips.conf; #tor ips blocken ... } 以下のスクリプトで、IPブラックリストを作成することができます。
IPアップデートスクリプト #!/bin/sh # Copyright 2012, Nico R. Wohlgemuth &amp;lt;nico@lifeisabug.com&amp;gt; WGET=/usr/bin/wget LIST=/etc/nginx/conf.d/tor-ips.conf #ziel der blacklist LISTBAK=/etc/nginx/conf.d/tor-ips.bak TEMPLIST=/tmp/torlist.txt wget -qO- https://check.torproject.org/exit-addresses | grep ExitAddress | cut -d &#39; &#39; -f 2 | sed &amp;quot;s/^/deny /g; s/$/;/g&amp;quot; &amp;gt; $TEMPLIST if [ ! -s $TMPTEMPLIST ]; then echo &amp;quot;error: list is empty or was not downloaded&amp;quot; exit 1 fi head -n3 $TEMPLIST tail -n3 $TEMPLIST echo -e &amp;quot;\ndoes this look okay?</description>
    </item>
    
  </channel>
</rss>
