Squid3 を通して ニコニコ(ニコニコ生放送) を視聴する方法

公式ヘルプによる仕様

※niconicoでは「80、81~86、88~92、99、443、843、1935、2805~2899」のポート番号を利用します。

したがって /etc/squid/squid.conf に追記

/etc/squid/squid.conf に以下のように追記します*1。80 と 443 はデフォルトで記載されているので省略しています。

# for niconico
acl Safe_ports port 81-86
acl Safe_ports port 88-92
acl Safe_ports port 99
acl Safe_ports port 843
acl Safe_ports port 1935
acl Safe_ports port 2805-2899
acl SSL_ports port 81-86
acl SSL_ports port 88-92
acl SSL_ports port 99
acl SSL_ports port 843
acl SSL_ports port 1935
acl SSL_ports port 2805-2899

Squid3 を再起動

あとは Squid3 を再起動すれば OK です。

$ sudo systemctl restart squid.service

*1:過剰かもしれません

Powered by はてなブログ