<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>広告除去 on </title>
        <link>https://glass-lab.net/categories/%E5%BA%83%E5%91%8A%E9%99%A4%E5%8E%BB/</link>
        <description>Recent content in 広告除去 on </description>
        <generator>Hugo -- gohugo.io</generator>
        <language>ja-jp</language>
        <lastBuildDate>Wed, 23 Aug 2023 05:51:50 +0000</lastBuildDate><atom:link href="https://glass-lab.net/categories/%E5%BA%83%E5%91%8A%E9%99%A4%E5%8E%BB/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>【Youtubeの広告を破壊する編】512mbのVPSの限界に挑戦し、広告を破壊する。その４</title>
        <link>https://glass-lab.net/2023/08/23/%E3%80%90youtube%E3%81%AE%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E7%B7%A8%E3%80%91512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81/</link>
        <pubDate>Wed, 23 Aug 2023 05:51:50 +0000</pubDate>
        
        <guid>https://glass-lab.net/2023/08/23/%E3%80%90youtube%E3%81%AE%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E7%B7%A8%E3%80%91512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81/</guid>
        <description>&lt;img src="https://glass-lab.net/wp-content/uploads/2023/08/image-16.png" alt="Featured image of post 【Youtubeの広告を破壊する編】512mbのVPSの限界に挑戦し、広告を破壊する。その４" /&gt;&lt;p&gt;当ブログはアフィリエイト広告を利用し商品を紹介しています。&lt;/p&gt;
&lt;p&gt;これまでPiholeを用いて広告を破壊する方法を紹介した。&lt;br&gt;
しかしながら、Youtubeの広告はPiholeではどうにもできない。&lt;br&gt;
自分で広告の出ないフロントエンドを作ってしまおうという思想から生まれたのがInvidiousである。&lt;br&gt;
いくつかのInvidiousインスタンスが稼働しているが常に不安定であり、自分用に立ててしまった方が安心感がある。&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://github.com/iv-org/documentation&#34;
                    style=&#34;padding: 12px;border: solid 1px #eee;display: flex;text-decoration: none;color: #000;&#34;
                    onMouseOver=&#34;this.style.opacity=&#39;0.9&#39;&#34;&gt;
                    &lt;div style=&#34;flex-shrink: 0;&#34;&gt;
                        &lt;img src=&#34;https://glass-lab.net/documentation_14210940080140624280_hu_48e87f8229c7bac.webp&#34; alt=&#34;&#34; width=&#34;100&#34; height=&#34;100&#34; style=&#34;object-fit: contain;&#34;&gt;
                    &lt;/div&gt;
                    &lt;div style=&#34;margin-left: 10px;&#34;&gt;
                        &lt;h2 style=&#34;margin: 0;padding-bottom: 13px;border: none;font-size: 16px;&#34;&gt;GitHub - iv-org/documentation: The official Invidious documentation&lt;/h2&gt;
                        &lt;p
                            style=&#34;margin: 0;font-size: 13px;word-break: break-word;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;line-clamp: 3;overflow: hidden;&#34;&gt;The official Invidious documentation. Contribute to iv-org/documentation development by creating an account on GitHub.&lt;/p&gt;
                    &lt;/div&gt;
                &lt;/a&gt;
Invidiousでは広告の削除し、他の機能もおおよそYoutubeに準拠したものが取り揃えられている。これを512MB1コアのVPSに入れていこうと思う。&lt;/p&gt;
&lt;h2 id=&#34;インストール&#34;&gt;インストール
&lt;/h2&gt;&lt;p&gt;環境&lt;br&gt;
Conoha VPS(512MB1コアVPS)&lt;br&gt;
Debian12.0 docker、pwgen導入済み&lt;/p&gt;
&lt;p&gt;pwgenはDebianであればaptで入れられる&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;sudo apt install pwgen&lt;/pre&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;git clone https://github.com/iv-org/invidious.git
cd invidious&lt;/pre&gt;
&lt;p&gt;InvidiousのGithubからコードを持ってくる。&lt;br&gt;
Invidiousにはバグがあるらしく、いくつかのファイルをマウントする必要があるようだ。&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;nano docker-compose.yml&lt;/pre&gt;
&lt;p&gt;とし&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;version: &#34;3&#34;
services:

  invidious:
    image: quay.io/invidious/invidious:latest
    # image: quay.io/invidious/invidious:latest-arm64 # ARM64/AArch64 devices
    restart: unless-stopped
    ports:
      - &#34;127.0.0.1:3000:3000&#34;
    environment:
      # Please read the following file for a comprehensive list of all available
      # configuration options and their associated syntax:
      # https://github.com/iv-org/invidious/blob/master/config/config.example.yml
      INVIDIOUS_CONFIG: |
        db:
          dbname: invidious
          user: kemal
          password: kemal
          host: invidious-db
          port: 5432
        check_tables: true
        # external_port:
        # domain:
        # https_only: false
        # statistics_enabled: false
        hmac_key: &#34;CHANGE_ME!!&#34;
    healthcheck:
      test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1
      interval: 30s
      timeout: 5s
      retries: 2
    logging:
      options:
        max-size: &#34;1G&#34;
        max-file: &#34;4&#34;
    depends_on:
      - invidious-db

  invidious-db:
    image: docker.io/library/postgres:14
    restart: unless-stopped
    volumes:
      - postgresdata:/var/lib/postgresql/data
      - ./config/sql:/config/sql
      - ./docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh
    environment:
      POSTGRES_DB: invidious
      POSTGRES_USER: kemal
      POSTGRES_PASSWORD: kemal
    healthcheck:
      test: [&#34;CMD-SHELL&#34;, &#34;pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB&#34;]

volumes:
  postgresdata:
&lt;/pre&gt;
&lt;p&gt;以上のように書き換える。この時&lt;strong&gt;hmac_key&lt;/strong&gt;のCHANGE ME!!を&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;pwgen 20 1&lt;/pre&gt;
&lt;p&gt;で出力された文字列に置き換える。&lt;/p&gt;
&lt;p&gt;お好みでPortを書き換えたのち&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;docker compose up -d&lt;/pre&gt;
&lt;p&gt;として起動させる。&lt;/p&gt;
&lt;p&gt;http://(tailscaleで振られた100.~のプライベートIP):3000&lt;br&gt;
とするとInvidiousが起動する。使い方等々はYoutubeと大きく違いはない。&lt;/p&gt;
&lt;p&gt;&lt;a rel=&#34;nofollow&#34; href=&#34;//af.moshimo.com/af/c/click?a_id=4147114&amp;#038;p_id=2540&amp;#038;pc_id=5631&amp;#038;pl_id=49269&#34; referrerpolicy=&#34;no-referrer-when-downgrade&#34;&gt;すぐに使える高速レンタルサーバー【ConoHa VPS】【ConoHa for Windows Server】のお申込み&lt;/a&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; src=&#34;//i.moshimo.com/af/i/impression?a_id=4147114&amp;#038;p_id=2540&amp;#038;pc_id=5631&amp;#038;pl_id=49269&#34; width=&#34;1&#34; height=&#34;1&#34; style=&#34;border:none;&#34; /&gt;&lt;/p&gt;
&lt;p&gt;現在筆者はiOSを使用している&lt;/p&gt;
 



&lt;!-- START MoshimoAffiliateEasyLink --&gt;
&lt;div id=&#34;msmaflink-hqMez&#34;&gt;
  リンク
&lt;/div&gt;
&lt;!-- MoshimoAffiliateEasyLink END --&gt;
&lt;p&gt;iOSの場合invidiousをSafariで開き&lt;figure class=&#34;wp-block-image size-full&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;750&#34; height=&#34;930&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-16.png&#34; alt=&#34;&#34; class=&#34;wp-image-161&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-16.png 750w, https://glass-lab.net/wp-content/uploads/2023/08/image-16-242x300.png 242w&#34; sizes=&#34;(max-width: 750px) 100vw, 750px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;とすることで&lt;figure class=&#34;wp-block-image size-full&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;184&#34; height=&#34;164&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-17.png&#34; alt=&#34;&#34; class=&#34;wp-image-162&#34; /&gt; &lt;/figure&gt; &lt;figure class=&#34;wp-block-image size-large&#34;&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;608&#34; height=&#34;1024&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-18-608x1024.png&#34; alt=&#34;&#34; class=&#34;wp-image-163&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-18-608x1024.png 608w, https://glass-lab.net/wp-content/uploads/2023/08/image-18-178x300.png 178w, https://glass-lab.net/wp-content/uploads/2023/08/image-18.png 750w&#34; sizes=&#34;(max-width: 608px) 100vw, 608px&#34; /&gt;&lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;アプリのようなUIに変更することができる。&lt;/p&gt;
&lt;h2 id=&#34;おわりに&#34;&gt;おわりに
&lt;/h2&gt;&lt;p&gt;これでおおよそすべての広告を破壊できたと思う。&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://glass-lab.net/2023/08/16/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82%E3%81%9D%E3%81%AE3-pihole%E3%81%A8unbo/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;←前&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&#34;nofollow&#34; href=&#34;//af.moshimo.com/af/c/click?a_id=4147114&amp;#038;p_id=2540&amp;#038;pc_id=5631&amp;#038;pl_id=33158&#34; referrerpolicy=&#34;no-referrer-when-downgrade&#34;&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; src=&#34;//image.moshimo.com/af-img/1762/000000033158.png&#34; width=&#34;336&#34; height=&#34;280&#34; style=&#34;border:none;&#34; /&gt;&lt;/a&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; src=&#34;//i.moshimo.com/af/i/impression?a_id=4147114&amp;#038;p_id=2540&amp;#038;pc_id=5631&amp;#038;pl_id=33158&#34; width=&#34;1&#34; height=&#34;1&#34; style=&#34;border:none;&#34; /&gt;&lt;/p&gt;
 



</description>
        </item>
        <item>
        <title>512mbのVPSの限界に挑戦し、広告を破壊する。その3 PiholeとUnboundの設定</title>
        <link>https://glass-lab.net/2023/08/16/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82%E3%81%9D%E3%81%AE3-pihole%E3%81%A8unbo/</link>
        <pubDate>Wed, 16 Aug 2023 12:37:32 +0000</pubDate>
        
        <guid>https://glass-lab.net/2023/08/16/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82%E3%81%9D%E3%81%AE3-pihole%E3%81%A8unbo/</guid>
        <description>&lt;img src="https://glass-lab.net/wp-content/uploads/2023/08/image.png" alt="Featured image of post 512mbのVPSの限界に挑戦し、広告を破壊する。その3 PiholeとUnboundの設定" /&gt;&lt;p&gt;当ブログはアフィリエイト広告を利用し商品を紹介しています。&lt;/p&gt;
&lt;p&gt;PiholeとUnboundの設定＆備忘録的なところを示す。&lt;/p&gt;
&lt;h2 id=&#34;piholeのadlist&#34;&gt;PiholeのAdlist
&lt;/h2&gt;&lt;p&gt;Piholeは自分で広告リストを追加することで強化できる。&lt;/p&gt;
&lt;p&gt;http://(PiholeのIP):(Port)/admin/groups-adlists.php からいじる&lt;figure class=&#34;wp-block-image size-large&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;1024&#34; height=&#34;284&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-10-1024x284.png&#34; alt=&#34;&#34; class=&#34;wp-image-92&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-10-1024x284.png 1024w, https://glass-lab.net/wp-content/uploads/2023/08/image-10-300x83.png 300w, https://glass-lab.net/wp-content/uploads/2023/08/image-10-768x213.png 768w, https://glass-lab.net/wp-content/uploads/2023/08/image-10.png 1240w&#34; sizes=&#34;(max-width: 1024px) 100vw, 1024px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;ここのAddressに広告リストを入れ、Addを押して追加する。&lt;/p&gt;
&lt;p&gt;以下に筆者が集めたAdlistを示す。全部コピペしてAddressに入れることが出来るようにしている。&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts https://warui.intaa.net/adhosts/hosts_lb.txt https://pgl.yoyo.org/adservers/serverlist.php?hostformat=adblockplus&amp;amp;amp;mimetype=plaintext https://raw.githubusercontent.com/Yhonay/antipopads/master/popads.txt https://raw.githubusercontent.com/eEIi0A5L/adblock_filter/master/kame_filter.txt https://zonefiles.io/f/compromised/domains/full/ https://zonefiles.io/f/compromised/ip/live/ https://hosts.oisd.nl/ https://adaway.org/hosts.txt https://hostfiles.frogeye.fr/firstparty-trackers-hosts.txt https://sebsauvage.net/hosts/hosts https://warui.intaa.net/adhosts/hosts.txt https://www.github.developerdan.com/hosts/lists/ads-and-tracking-extended.txt https://blocklistproject.github.io/Lists/abuse.txt https://blocklistproject.github.io/Lists/ads.txt https://blocklistproject.github.io/Lists/drugs.txt https://blocklistproject.github.io/Lists/malware.txt https://blocklistproject.github.io/Lists/phishing.txt https://blocklistproject.github.io/Lists/ransomware.txt https://blocklistproject.github.io/Lists/redirect.txt https://blocklistproject.github.io/Lists/scam.txt https://blocklistproject.github.io/Lists/tracking.txt https://bit.ly/PiHoleHostBlock https://raw.githubusercontent.com/PolishFiltersTeam/KADhosts/master/KADhosts.txt https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts https://v.firebog.net/hosts/static/w3kbl.txt https://raw.githubusercontent.com/matomo-org/referrer-spam-blacklist/master/spammers.txt https://raw.githubusercontent.com/VeleSila/yhosts/master/hosts https://winhelp2002.mvps.org/hosts.txt https://v.firebog.net/hosts/neohostsbasic.txt https://raw.githubusercontent.com/RooneyMcNibNug/pihole-stuff/master/SNAFU.txt https://paulgb.github.io/BarbBlock/blacklists/hosts-file.txt https://v.firebog.net/hosts/AdguardDNS.txt https://v.firebog.net/hosts/Admiral.txt https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt https://v.firebog.net/hosts/Easylist.txt https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&amp;amp;showintro=0&amp;amp;mimetype=plaintext https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts https://raw.githubusercontent.com/bigdargon/hostsVN/master/hosts https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts https://v.firebog.net/hosts/Easyprivacy.txt https://v.firebog.net/hosts/Prigent-Ads.txt https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.2o7Net/hosts  https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/android-tracking.txt https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt  https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/AmazonFireTV.txt https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt https://raw.githubusercontent.com/DandelionSprout/adfilt/master/Alternate%20versions%20Anti-Malware%20List/AntiMalwareHosts.txt https://osint.digitalside.it/Threat-Intel/lists/latestdomains.txt https://s3.amazonaws.com/lists.disconnect.me/simple_malvertising.txt https://v.firebog.net/hosts/Prigent-Crypto.txt https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Risk/hosts https://bitbucket.org/ethanr/dns-blacklists/raw/8575c9f96e5b4a1308f2f12394abd86d0927a4a0/bad_lists/Mandiant_APT1_Report_Appendix_D.txt https://phishing.army/download/phishing_army_blocklist_extended.txt https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt https://v.firebog.net/hosts/RPiList-Malware.txt https://v.firebog.net/hosts/RPiList-Phishing.txt https://raw.githubusercontent.com/Spam404/lists/master/main-blacklist.txt https://raw.githubusercontent.com/AssoEchap/stalkerware-indicators/master/generated/hosts https://urlhaus.abuse.ch/downloads/hostfile/ https://malware-filter.gitlab.io/malware-filter/phishing-filter-hosts.txt https://v.firebog.net/hosts/Prigent-Malware.txt https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser https://raw.githubusercontent.com/chadmayfield/my-pihole-blocklists/master/lists/pi_blocklist_porn_top1m.list https://v.firebog.net/hosts/Prigent-Adult.txt https://hostsfile.mine.nu/hosts0.txt https://hostsfile.org/Downloads/hosts.txt https://v.firebog.net/hosts/Kowabit.txt https://adblock.mahakala.is/ https://hostfiles.frogeye.fr/multiparty-trackers-hosts.txt https://raw.githubusercontent.com/Kees1958/W3C_annual_most_used_survey_blocklist/6b8c2411f22dda68b0b41757aeda10e50717a802/TOP_EU_US_Ads_Trackers_HOST https://raw.githubusercontent.com/tg12/pihole-phishtank-list/master/list/phish_domains.txt https://raw.githubusercontent.com/HorusTeknoloji/TR-PhishingList/master/url-lists.txt https://raw.githubusercontent.com/Cats-Team/AdRules/main/dns.txt https://raw.githubusercontent.com/neodevpro/neodevhost/master/host https://raw.githubusercontent.com/neodevpro/neodevhost/master/lite_host https://raw.githubusercontent.com/5-whys/adh-rules/main/rules/output_full.txt https://raw.githubusercontent.com/xndeye/adblock_list/main/rule/all.txt https://raw.githubusercontent.com/cenk/bad-hosts/main/hosts&lt;/pre&gt;
&lt;p&gt;……この辺にしておこうか。&lt;br&gt;
Adlistが増えると重くなるという話があるが、実際筆者の場合、512mb1コアのConoha VPSで元気に動いている。&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://px.a8.net/svt/ejp?a8mat=3TF70B&amp;#43;BKRG8I&amp;#43;50&amp;#43;4YM976&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;【1.3円/時間】GMOインターネットのSSD「ConoHa VPS」&lt;/a&gt;&lt;/p&gt;
 



&lt;h2 id=&#34;unboundの設定&#34;&gt;Unboundの設定
&lt;/h2&gt;&lt;p&gt;nano /etc/&lt;em&gt;unbound&lt;/em&gt;/&lt;em&gt;unbound&lt;/em&gt;.conf から&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;# Unbound configuration file for Debian.
#
# See the unbound.conf(5) man page.
#
# See /usr/share/doc/unbound/examples/unbound.conf for a commented
# reference config file.
#
# The following line includes additional configuration files from the
# /etc/unbound/unbound.conf.d directory.
include: &#34;/etc/unbound/unbound.conf.d/*.conf&#34;

#
#  local network - DNS Setting
#
# domain name: ***.local
#
server:
        # use all CPUs
        num-threads: 1

        # power of 2 close to num-threads
        msg-cache-slabs: 2
        rrset-cache-slabs: 2
        infra-cache-slabs: 2
        key-cache-slabs: 2
        # more cache memory, rrset=msg*2
        rrset-cache-size: 100m
        msg-cache-size: 50m

        # more outgoing connections
        # depends on number of cores: 1024/cores - 50
        outgoing-range: 950

        # Larger socket buffer.  OS may need config.
        so-rcvbuf: 4m
    # インターフェース設定．デフォルトルートとする
    interface: 0.0.0.0
    # 問いあわせを許可するネットワーク設定
    #
    # ネットワークに合わせて記述する
    access-control: 192.168.1.0/24 allow

    # IPv6 は使用しない
    do-ip6: no

    # ローカルゾーン設定
    #
    #
    local-zone: &#34;***.local.&#34; static


    # NS レコードの設定
    #
    # ネームサーバーの設定を行う
    #
    # プライマリ: ns.~
    # セカンダリ: ns2.~
    local-data: &#34;IN NS ns.***.local.&#34;
    local-data: &#34;IN NS ns2.***.local.&#34;


    # MX recode: mail server

    # メールサーバーの設定．
    #
    # mail.~.local.
    local-data: &#34;IN MX 10 mail.***.mydns.jp.&#34;


    # A レコード，ptr レコードの設定
    #
    # A レコードは，正引き
    # PTR レコードは，逆引き
    #
    # サーバーIP: 192.168.1.10
    local-data: &#34;***.local. IN A 192.168.25.1&#34;
    local-data: &#34;***.local. IN A 192.168.25.1&#34;
    local-data: &#34;***.local. IN A 192.168.25.1&#34;
    local-data: &#34;***.local. IN A 192.168.25.1&#34;
    local-data-ptr: &#34;192.168.25.1 shirakawa.mydns.jp.&#34;

    # 転送設定
    #
    # 上記設定以外の問い合わせが発生した場合，google dns に問いあわせるようにする

forward-zone:
    name: &#34;.&#34;
    forward-addr: 8.8.8.8
    forward-addr: 8.8.4.4&lt;/pre&gt;
&lt;p&gt;色々設定を考えてくれている人はいますが、いろいろ試してみて512mb1コアの場合にはこれが一番早いように感じたので、これに書き換えると高速化可能です。&lt;/p&gt;
&lt;p&gt;続いて　/etc/unbound/unbound.conf.d/pi-hole.conf　として&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;server:
    # If no logfile is specified, syslog is used
    # logfile: &#34;/var/log/unbound/unbound.log&#34;
    verbosity: 0

    interface: 127.0.0.1
    port: 5335
    do-ip4: yes
    do-udp: yes
    do-tcp: yes

    # May be set to yes if you have IPv6 connectivity
    do-ip6: yes

    # You want to leave this to no unless you have *native* IPv6. With 6to4 and
    # Terredo tunnels your web browser should favor IPv4 for the same reasons
    prefer-ip6: no

    # Use this only when you downloaded the list of primary root servers!
    # If you use the default dns-root-data package, unbound will find it automatically
    #root-hints: &#34;/var/lib/unbound/root.hints&#34;

    # Trust glue only if it is within the server&#39;s authority
    harden-glue: yes
    # Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS
    harden-dnssec-stripped: yes

    # Don&#39;t use Capitalization randomization as it known to cause DNSSEC issues sometimes
    # see https://discourse.pi-hole.net/t/unbound-stubby-or-dnscrypt-proxy/9378 for further details
    use-caps-for-id: no

    # Reduce EDNS reassembly buffer size.
    # IP fragmentation is unreliable on the Internet today, and can cause
    # transmission failures when large DNS messages are sent via UDP. Even
    # when fragmentation does work, it may not be secure; it is theoretically
    # possible to spoof parts of a fragmented DNS message, without easy
    # detection at the receiving end. Recently, there was an excellent study
    # &gt;&gt;&gt; Defragmenting DNS - Determining the optimal maximum UDP response size for DNS &amp;lt;&amp;lt;&amp;lt;
    # by Axel Koolhaas, and Tjeerd Slokker (https://indico.dns-oarc.net/event/36/contributions/776/)
    # in collaboration with NLnet Labs explored DNS using real world data from the
    # the RIPE Atlas probes and the researchers suggested different values for
    # IPv4 and IPv6 and in different scenarios. They advise that servers should
    # be configured to limit DNS messages sent over UDP to a size that will not
    # trigger fragmentation on typical network links. DNS servers can switch
    # from UDP to TCP when a DNS response is too big to fit in this limited
    # buffer size. This value has also been suggested in DNS Flag Day 2020.
    edns-buffer-size: 1232

    # Perform prefetching of close to expired message cache entries
    # This only applies to domains that have been frequently queried
    prefetch: yes

    # One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small n$    num-threads: 1

    # Ensure kernel buffer is large enough to not lose messages in traffic spikes
    so-rcvbuf: 1m

    # Ensure privacy of local IP ranges
    private-address: 192.168.0.0/16
    private-address: 169.254.0.0/16
    private-address: 172.16.0.0/12
    private-address: 10.0.0.0/8
    private-address: fd00::/8
    private-address: fe80::/10
&lt;/pre&gt;
&lt;p&gt;これもコピペで大丈夫かと思います。&lt;/p&gt;
&lt;p&gt;これでPihole＋Unboundの環境が整いました。&lt;/p&gt;
&lt;h2 id=&#34;最後に&#34;&gt;最後に
&lt;/h2&gt;&lt;p&gt;Piholeだけでは管理できないものがいくつかあるので、その他の対処法については次回述べることとする。&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://glass-lab.net/2023/08/15/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82%E3%81%9D%E3%81%AE%EF%BC%92/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;←前&lt;/a&gt;　　&lt;a class=&#34;link&#34; href=&#34;https://glass-lab.net/2023/08/23/%E3%80%90youtube%E3%81%AE%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E7%B7%A8%E3%80%91512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;次→&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&#34;nofollow&#34; href=&#34;//af.moshimo.com/af/c/click?a_id=4147114&amp;#038;p_id=2540&amp;#038;pc_id=5631&amp;#038;pl_id=33158&#34; referrerpolicy=&#34;no-referrer-when-downgrade&#34;&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; src=&#34;//image.moshimo.com/af-img/1762/000000033158.png&#34; width=&#34;336&#34; height=&#34;280&#34; style=&#34;border:none;&#34; /&gt;&lt;/a&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; src=&#34;//i.moshimo.com/af/i/impression?a_id=4147114&amp;#038;p_id=2540&amp;#038;pc_id=5631&amp;#038;pl_id=33158&#34; width=&#34;1&#34; height=&#34;1&#34; style=&#34;border:none;&#34; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://px.a8.net/svt/ejp?a8mat=3TF70B&amp;#43;BKRG8I&amp;#43;50&amp;#43;4ZD9F5&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;/a&gt;&lt;/p&gt;
 



</description>
        </item>
        <item>
        <title>512mbのVPSの限界に挑戦し、広告を破壊する。その２</title>
        <link>https://glass-lab.net/2023/08/15/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82%E3%81%9D%E3%81%AE%EF%BC%92/</link>
        <pubDate>Tue, 15 Aug 2023 07:44:01 +0000</pubDate>
        
        <guid>https://glass-lab.net/2023/08/15/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82%E3%81%9D%E3%81%AE%EF%BC%92/</guid>
        <description>&lt;img src="https://glass-lab.net/wp-content/uploads/2023/08/image.webp" alt="Featured image of post 512mbのVPSの限界に挑戦し、広告を破壊する。その２" /&gt;&lt;p&gt;当ブログはアフィリエイト広告を利用し商品を紹介しています。&lt;/p&gt;
&lt;p&gt;前回Pihole,Tailscaleまで導入したので続き&lt;/p&gt;
&lt;h2 id=&#34;tailscale側の設定&#34;&gt;Tailscale側の設定
&lt;/h2&gt;&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://login.tailscale.com/admin/dns&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;https://login.tailscale.com/admin/dns&lt;/a&gt; にアクセスし、&lt;figure class=&#34;wp-block-image size-full&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;869&#34; height=&#34;464&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-6.png&#34; alt=&#34;&#34; class=&#34;wp-image-86&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-6.png 869w, https://glass-lab.net/wp-content/uploads/2023/08/image-6-300x160.png 300w, https://glass-lab.net/wp-content/uploads/2023/08/image-6-768x410.png 768w&#34; sizes=&#34;(max-width: 869px) 100vw, 869px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;Add nameserver→Custum→PiholeをインストールしたVPSのTailscaleで振られたプライベートIP（100～のやつ）を入れOverride local DNS。&lt;/p&gt;
&lt;h2 id=&#34;piholeの設定&#34;&gt;Piholeの設定
&lt;/h2&gt;&lt;p&gt;PiholeをいれたVPSのIPにアクセス　http://(VPSのグローバルIP)/admin&lt;/p&gt;
&lt;p&gt;ログインしたらSetting→Interface settings から Permit all origins にチェック&lt;figure class=&#34;wp-block-image size-full&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;616&#34; height=&#34;542&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-8.png&#34; alt=&#34;&#34; class=&#34;wp-image-88&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-8.png 616w, https://glass-lab.net/wp-content/uploads/2023/08/image-8-300x264.png 300w&#34; sizes=&#34;(max-width: 616px) 100vw, 616px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;前回のようにUnboundを設定した場合はここでこうしても良い&lt;/p&gt;
 



&lt;h2 id=&#34;安全確認&#34;&gt;安全確認
&lt;/h2&gt;&lt;p&gt;TailscaleではPortを開けずにssh等が行えるので安全のためにPortを閉める&lt;/p&gt;
&lt;p&gt;その後ConohaのコントロールパネルならこうするとPortが全部閉まる。&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://px.a8.net/svt/ejp?a8mat=3TF70B&amp;#43;BKRG8I&amp;#43;50&amp;#43;4YM976&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;【1.3円/時間】GMOインターネットのSSD「ConoHa VPS」&lt;/a&gt;&lt;/p&gt;
&lt;figure class=&#34;wp-block-image size-large&#34;&gt;
&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;1024&#34; height=&#34;48&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-9-1024x48.png&#34; alt=&#34;&#34; class=&#34;wp-image-89&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-9-1024x48.png 1024w, https://glass-lab.net/wp-content/uploads/2023/08/image-9-300x14.png 300w, https://glass-lab.net/wp-content/uploads/2023/08/image-9-768x36.png 768w, https://glass-lab.net/wp-content/uploads/2023/08/image-9.png 1503w&#34; sizes=&#34;(max-width: 1024px) 100vw, 1024px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;お使いの端末にTailscaleを導入する。同じアカウントでログインするだけで全部いい感じになっている。&lt;/p&gt;
&lt;p&gt;お使いの端末でTailscaleをConnectした状態でTailscaleで振られたプライベートIPにssh接続をしてみるとなんと普通にsshできる。ありがたやTailscale。&lt;/p&gt;
&lt;h2 id=&#34;第一部完&#34;&gt;～第一部完～
&lt;/h2&gt;&lt;p&gt;これでTailscaleに接続している最中にPiholeが利用可能になった。&lt;/p&gt;
&lt;p&gt;いろいろともっと上手いやり方はありそうだが、セキュリティを考えるとPortを開けなくていいというのはかなりのメリットだと思う。&lt;/p&gt;
&lt;p&gt;Piholeの活用方法だったりは次回以降紹介しようと思う&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://glass-lab.net/2023/08/11/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;←前&lt;/a&gt;　　&lt;a class=&#34;link&#34; href=&#34;https://glass-lab.net/2023/08/16/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82%E3%81%9D%E3%81%AE3-pihole%E3%81%A8unbo/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;次→&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&#34;nofollow&#34; href=&#34;//af.moshimo.com/af/c/click?a_id=4147114&amp;#038;p_id=2540&amp;#038;pc_id=5631&amp;#038;pl_id=33158&#34; referrerpolicy=&#34;no-referrer-when-downgrade&#34;&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; src=&#34;//image.moshimo.com/af-img/1762/000000033158.png&#34; width=&#34;336&#34; height=&#34;280&#34; style=&#34;border:none;&#34; /&gt;&lt;/a&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; src=&#34;//i.moshimo.com/af/i/impression?a_id=4147114&amp;#038;p_id=2540&amp;#038;pc_id=5631&amp;#038;pl_id=33158&#34; width=&#34;1&#34; height=&#34;1&#34; style=&#34;border:none;&#34; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://px.a8.net/svt/ejp?a8mat=3TF70B&amp;#43;BKRG8I&amp;#43;50&amp;#43;4ZD9F5&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;/a&gt;&lt;/p&gt;
 



</description>
        </item>
        <item>
        <title>ポケモンWCSで見つけたポケジェニックを紹介</title>
        <link>https://glass-lab.net/2023/08/13/%E3%83%9D%E3%82%B1%E3%83%A2%E3%83%B3wcs%E3%81%A7%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%9F%E3%83%9D%E3%82%B1%E3%82%B8%E3%82%A7%E3%83%8B%E3%83%83%E3%82%AF%E3%82%92%E7%B4%B9%E4%BB%8B/</link>
        <pubDate>Sun, 13 Aug 2023 13:13:13 +0000</pubDate>
        
        <guid>https://glass-lab.net/2023/08/13/%E3%83%9D%E3%82%B1%E3%83%A2%E3%83%B3wcs%E3%81%A7%E8%A6%8B%E3%81%A4%E3%81%91%E3%81%9F%E3%83%9D%E3%82%B1%E3%82%B8%E3%82%A7%E3%83%8B%E3%83%83%E3%82%AF%E3%82%92%E7%B4%B9%E4%BB%8B/</guid>
        <description>&lt;img src="https://glass-lab.net/wp-content/uploads/2023/08/DSC_0210.jpg" alt="Featured image of post ポケモンWCSで見つけたポケジェニックを紹介" /&gt;&lt;p&gt;明日まで横浜でポケモンイベントをやる予定のようですがあいにくの台風ということで、筆者が見つけたポケジェニックスポットを紹介します。&lt;/p&gt;
&lt;h2 id=&#34;工事中&#34;&gt;工事中 &lt;figure class=&#34;wp-block-image size-large&#34;&gt;
&lt;/h2&gt;&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;1024&#34; height=&#34;683&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/test-1-1024x683.jpg&#34; alt=&#34;&#34; class=&#34;wp-image-63&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/test-1-1024x683.jpg 1024w, https://glass-lab.net/wp-content/uploads/2023/08/test-1-300x200.jpg 300w, https://glass-lab.net/wp-content/uploads/2023/08/test-1-768x512.jpg 768w, https://glass-lab.net/wp-content/uploads/2023/08/test-1-1536x1024.jpg 1536w, https://glass-lab.net/wp-content/uploads/2023/08/test-1.jpg 1800w&#34; sizes=&#34;(max-width: 1024px) 100vw, 1024px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;ポケモンと共存する町ってこんな感じなのかな～と考えさせてくれる一枚&lt;br&gt;
ゴツゴツメットがカワイイ&lt;/p&gt;
&lt;h2 id=&#34;おばけ&#34;&gt;おばけ！？ &lt;figure class=&#34;wp-block-image size-large&#34;&gt;
&lt;/h2&gt;&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;1024&#34; height=&#34;683&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/DSC_0258-1024x683.jpg&#34; alt=&#34;&#34; class=&#34;wp-image-64&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/DSC_0258-1024x683.jpg 1024w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0258-300x200.jpg 300w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0258-768x512.jpg 768w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0258-1536x1024.jpg 1536w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0258.jpg 1800w&#34; sizes=&#34;(max-width: 1024px) 100vw, 1024px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;そろそろ次の場所に移動しようかなと思っていたところで発見&lt;br&gt;
昼間は明るくて見過ごしていた子たち。ごめんなさい……..&lt;br&gt;
夜になってきてかなり雰囲気のある一枚&lt;/p&gt;
 



&lt;h2 id=&#34;人気者&#34;&gt;人気者 &lt;figure class=&#34;wp-block-image size-large&#34;&gt;
&lt;/h2&gt;&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;1024&#34; height=&#34;683&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/DSC_0208-1024x683.jpg&#34; alt=&#34;&#34; class=&#34;wp-image-65&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/DSC_0208-1024x683.jpg 1024w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0208-300x200.jpg 300w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0208-768x512.jpg 768w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0208-1536x1024.jpg 1536w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0208.jpg 1800w&#34; sizes=&#34;(max-width: 1024px) 100vw, 1024px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;ポケジェニックスポットには大抵人が群がっていましたが、特に多くの人を集めていたニャオニクスちゃん&lt;br&gt;
こうやってみるとおしゃれなデザインしてるなと思った。&lt;/p&gt;
&lt;h2 id=&#34;インスタ映え&#34;&gt;インスタ映え &lt;figure class=&#34;wp-block-image size-large&#34;&gt;
&lt;/h2&gt;&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;1024&#34; height=&#34;683&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/DSC_0210-1024x683.jpg&#34; alt=&#34;&#34; class=&#34;wp-image-66&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/DSC_0210-1024x683.jpg 1024w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0210-300x200.jpg 300w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0210-768x512.jpg 768w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0210-1536x1024.jpg 1536w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0210.jpg 1800w&#34; sizes=&#34;(max-width: 1024px) 100vw, 1024px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;たまに見るフォトスポットのようなデザインの一枚&lt;br&gt;
筆者はおひとり様でしたが列に並んで映り込まずに写真だけ撮る人になっていました。&lt;/p&gt;
&lt;h2 id=&#34;ニセピカ&#34;&gt;ニセピカ &lt;figure class=&#34;wp-block-image size-large&#34;&gt;
&lt;/h2&gt;&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;1024&#34; height=&#34;683&#34; src=&#34;https://glass-lab.net/wp-content/uploads/2023/08/DSC_0212-1024x683.jpg&#34; alt=&#34;&#34; class=&#34;wp-image-67&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/DSC_0212-1024x683.jpg 1024w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0212-300x200.jpg 300w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0212-768x512.jpg 768w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0212-1536x1024.jpg 1536w, https://glass-lab.net/wp-content/uploads/2023/08/DSC_0212.jpg 1800w&#34; sizes=&#34;(max-width: 1024px) 100vw, 1024px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;ニセピカことデデンネちゃん&lt;br&gt;
目線の下過ぎて完全にスルーしかけました。&lt;br&gt;
コンセントのところにいるって流石ポケモン様や！って思いながら一枚&lt;/p&gt;
&lt;h2 id=&#34;おわり&#34;&gt;おわり
&lt;/h2&gt;&lt;p&gt;他の方の見つけたポケモンをSNSで見るのって楽しいですよね&lt;br&gt;
筆者は探しながら歩いていたのにいくつかスルーしていたことを、後からSNSで知ることが多くあり泣いています。&lt;/p&gt;
&lt;p&gt;またこういうイベントあったら是非回らせてもらいたいですね～&lt;/p&gt;
 



</description>
        </item>
        <item>
        <title>512mbのVPSの限界に挑戦し、広告を破壊する。</title>
        <link>https://glass-lab.net/2023/08/11/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82/</link>
        <pubDate>Fri, 11 Aug 2023 13:26:07 +0000</pubDate>
        
        <guid>https://glass-lab.net/2023/08/11/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82/</guid>
        <description>&lt;img src="https://glass-lab.net/wp-content/uploads/2023/08/image.png" alt="Featured image of post 512mbのVPSの限界に挑戦し、広告を破壊する。" /&gt;&lt;p&gt;当ブログはアフィリエイト広告を利用し商品を紹介しています。&lt;/p&gt;
&lt;p&gt;サブスク代高いなあと思ったので、VPSでいろいろ代用したメモ。ついでに512mbでこんなにできるのかとびっくりしたのでメモ。&lt;/p&gt;
&lt;p&gt;現状うちの子で動いてるもの&lt;/p&gt;
&lt;p&gt;1.tailscale(vpn)&lt;br&gt;
2.pihole、unbound(ネットサーフィンの広告破壊)&lt;br&gt;
3.invidious(youtubeの広告を破壊、youtube premiumの代用)&lt;br&gt;
4.tinytinyRSS(情報収集)&lt;br&gt;
5.このwordpress&lt;br&gt;
6.dolphin(おひとり様向けmisskey)&lt;/p&gt;
&lt;h2 id=&#34;１下ごしらえ&#34;&gt;１．下ごしらえ
&lt;/h2&gt;&lt;p&gt;１．VPSを借りる。今回はとにかくケチりたかったのと、VPNとしても使いたかったので通信量に制限のないConohaの1コア512mbのものを使用。どうせ使うかと36か月を契約。&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://px.a8.net/svt/ejp?a8mat=3TF70B&amp;#43;BKRG8I&amp;#43;50&amp;#43;4YM976&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;【1.3円/時間】GMOインターネットのSSD「ConoHa VPS」&lt;/a&gt;&lt;/p&gt;
&lt;figure class=&#34;wp-block-image size-large&#34;&gt;
&lt;p&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; width=&#34;1024&#34; height=&#34;965&#34; src=&#34;http://100.115.220.9:8001/wp-content/uploads/2023/08/image-1024x965.png&#34; alt=&#34;&#34; class=&#34;wp-image-18&#34; srcset=&#34;https://glass-lab.net/wp-content/uploads/2023/08/image-1024x965.png 1024w, https://glass-lab.net/wp-content/uploads/2023/08/image-300x283.png 300w, https://glass-lab.net/wp-content/uploads/2023/08/image-768x724.png 768w, https://glass-lab.net/wp-content/uploads/2023/08/image.png 1044w&#34; sizes=&#34;(max-width: 1024px) 100vw, 1024px&#34; /&gt; &lt;/figure&gt;&lt;/p&gt;
&lt;p&gt;２．Google、Githubあたりのアカウントを作っておく。&lt;/p&gt;
 



&lt;p&gt;３．暇な時間を作る。だいたいコピペで済むようにするので1時間はかからないと思う。&lt;/p&gt;
&lt;h2 id=&#34;２tailscaleの導入&#34;&gt;２．tailscaleの導入
&lt;/h2&gt;&lt;p&gt;OS:Debian12.0&lt;br&gt;
他デフォルト&lt;/p&gt;
&lt;p&gt;sshもしくはコンソールからコマンドを打つ。コピペ出来るからsshの方が早い&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;sudo apt update
sudo apt upgrade
curl -fsSL https://tailscale.com/install.sh | sh #tailscaleインストールコマンド&lt;/pre&gt;
&lt;p&gt;↑おまじないとtailscaleの導入&lt;/p&gt;
&lt;p&gt;tailscaleの導入はググれば出るが、最後にリンクが出る。これをGoogleかGithubで認証する。&lt;/p&gt;
&lt;h2 id=&#34;3piholeの導入&#34;&gt;3.piholeの導入
&lt;/h2&gt;&lt;p&gt;これがメイン。これもスクリプトがある&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;curl -sSL https://install.pi-hole.net | bash #piholeをインスト―ル&lt;/pre&gt;
&lt;p&gt;我がvpsではunboundも導入している。効果は謎だが早くなったような気がする。&lt;br&gt;
細かな調整は後日述べる。&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;sudo apt install -y unbound&lt;/pre&gt;
&lt;p&gt;/etc/unbound/unbound.conf.d/pi-hole.conf　を書き換える。&lt;br&gt;
ここからさらに微調整をしたが、とりあえずこれで良い。&lt;/p&gt;
&lt;pre class=&#34;EnlighterJSRAW&#34; data-enlighter-language=&#34;generic&#34; data-enlighter-theme=&#34;&#34; data-enlighter-highlight=&#34;&#34; data-enlighter-linenumbers=&#34;&#34; data-enlighter-lineoffset=&#34;&#34; data-enlighter-title=&#34;&#34; data-enlighter-group=&#34;&#34;&gt;server:
    # If no logfile is specified, syslog is used
    # logfile: &#34;/var/log/unbound/unbound.log&#34;
    verbosity: 0

    interface: 127.0.0.1
    port: 5335
    do-ip4: yes
    do-udp: yes
    do-tcp: yes

    # May be set to yes if you have IPv6 connectivity
    do-ip6: no

    # You want to leave this to no unless you have *native* IPv6. With 6to4 and
    # Terredo tunnels your web browser should favor IPv4 for the same reasons
    prefer-ip6: no

    # Use this only when you downloaded the list of primary root servers!
    # If you use the default dns-root-data package, unbound will find it automatically
    #root-hints: &#34;/var/lib/unbound/root.hints&#34;

    # Trust glue only if it is within the server&#39;s authority
    harden-glue: yes

    # Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS
    harden-dnssec-stripped: yes

    # Don&#39;t use Capitalization randomization as it known to cause DNSSEC issues sometimes
    # see https://discourse.pi-hole.net/t/unbound-stubby-or-dnscrypt-proxy/9378 for further details
    use-caps-for-id: no

    # Reduce EDNS reassembly buffer size.
    # IP fragmentation is unreliable on the Internet today, and can cause
    # transmission failures when large DNS messages are sent via UDP. Even
    # when fragmentation does work, it may not be secure; it is theoretically
    # possible to spoof parts of a fragmented DNS message, without easy
    # detection at the receiving end. Recently, there was an excellent study
    # &gt;&gt;&gt; Defragmenting DNS - Determining the optimal maximum UDP response size for DNS &amp;lt;&amp;lt;&amp;lt;
    # by Axel Koolhaas, and Tjeerd Slokker (https://indico.dns-oarc.net/event/36/contributions/776/)
    # in collaboration with NLnet Labs explored DNS using real world data from the
    # the RIPE Atlas probes and the researchers suggested different values for
    # IPv4 and IPv6 and in different scenarios. They advise that servers should
    # be configured to limit DNS messages sent over UDP to a size that will not
    # trigger fragmentation on typical network links. DNS servers can switch
    # from UDP to TCP when a DNS response is too big to fit in this limited
    # buffer size. This value has also been suggested in DNS Flag Day 2020.
    edns-buffer-size: 1232

    # Perform prefetching of close to expired message cache entries
    # This only applies to domains that have been frequently queried
    prefetch: yes

    # One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1.
    num-threads: 1

    # Ensure kernel buffer is large enough to not lose messages in traffic spikes
    so-rcvbuf: 1m

    # Ensure privacy of local IP ranges
    private-address: 192.168.0.0/16
    private-address: 169.254.0.0/16
    private-address: 172.16.0.0/12
    private-address: 10.0.0.0/8
    private-address: fd00::/8
    private-address: fe80::/10&lt;/pre&gt;
&lt;p&gt;そろそろ長いので次回に続く…&lt;/p&gt;
&lt;p&gt;ps:途中までで飽きて辞めた人もポートは忘れずに閉めておくように&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://glass-lab.net/2023/08/15/512mb%E3%81%AEvps%E3%81%AE%E9%99%90%E7%95%8C%E3%81%AB%E6%8C%91%E6%88%A6%E3%81%97%E3%80%81%E5%BA%83%E5%91%8A%E3%82%92%E7%A0%B4%E5%A3%8A%E3%81%99%E3%82%8B%E3%80%82%E3%81%9D%E3%81%AE%EF%BC%92/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;次→&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel=&#34;nofollow&#34; href=&#34;//af.moshimo.com/af/c/click?a_id=4147114&amp;#038;p_id=2540&amp;#038;pc_id=5631&amp;#038;pl_id=33158&#34; referrerpolicy=&#34;no-referrer-when-downgrade&#34;&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; src=&#34;//image.moshimo.com/af-img/1762/000000033158.png&#34; width=&#34;336&#34; height=&#34;280&#34; style=&#34;border:none;&#34; /&gt;&lt;/a&gt;&lt;img decoding=&#34;async&#34; loading=&#34;lazy&#34; src=&#34;//i.moshimo.com/af/i/impression?a_id=4147114&amp;#038;p_id=2540&amp;#038;pc_id=5631&amp;#038;pl_id=33158&#34; width=&#34;1&#34; height=&#34;1&#34; style=&#34;border:none;&#34; /&gt;&lt;/p&gt;
 



</description>
        </item>
        
    </channel>
</rss>
