海外でもニコニコの公式アニメが見たい
海外に行った時にニコニコを見ようと思ったら海外IPのせいで公式アニメチャンネルから弾かれたので日本にあるサーバからプロキシを通して視聴した話.
polipoを各自お使いのOSにインストールして,コンフィグファイルを弄ればできる.
僕はarch linuxを使っているので,sudo pacman -S polipo
で一発だった.
コンフィグファイルは/etc/polipoにconfig.sampleがあるので同じディレクトリにconfigという名前でコピーして以下のようにいじった.
proxyAddress = "0.0.0.0" # IPv4 only
# If you do that, you'll want to restrict the set of hosts allowed to
# connect:
allowedClients = 127.0.0.1, 134.157.168.0
# allowedClients = 127.0.0.1, 134.157.168.0/24
# Uncomment this if you want your Polipo to identify itself by
# something else than the host name:
proxyName = "your domain"<
# Uncomment this if there's only one user using this instance of Polipo:
cacheIsShared = false
終わったらsudo systemctl start polipo
をやった.
サーバ側はこれで出来た.僕はiptablesなどのファイアウォールを使用してないので,使用している人は各自適切に設定してください.
ブラウザやOSの方でプロキシの設定をIPアドレスor自分のドメイン:8123にすればニコニコでアニメが見られる.