0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Dronyを使いProxy下のAndroid端末でLINEを使う

Last updated at Posted at 2020-12-12

Dronyとは

HTTP, Socks ProxyをVPNとして接続するアプリです。
https://play.google.com/store/apps/details?id=org.sandrob.drony&hl=ja&gl=US

環境

  • 認証付きProxy必須環境
  • 22番ポートはProxyなしで通信可能
  • AzureにSquidでHTTP proxyを構築済み

叩くコマンド

# 外のProxyサーバで行う
/etc/ssh/sshd_configの
GatewayPorts
をyesにする

# APにするPCで行う
ssh -gNfL 0.0.0.0:8888:localhost:8080 username@ipadress
sudo create_ap [無線LANデバイス名] [共有元デバイス名] --no-dnsmasq -d --ieee80211n --redirect-to-localhost [SSID] [パスワード] &
ip a (ap0のIPアドレスを確認する)

主な流れ

  1. ssh -gNfL 0.0.0.0:8888:localhost:8080 username@ipadressで0.0.0.0へAzureのHTTP proxyを持ってくる
  2. create_apを活用して無線APを建てる
  3. スマホでWi-Fiに接続する  このとき,Proxyにはスマホ側のデフォルトゲートウェイをアドレスに設定します。
  4. Deoniで先程と同様にProxyの設定をする

create_apについて

実行してできる仮想ネットワークデバイスのIPアドレスは固定になります。
それがスマホ側のデフォルトゲートウェイになります。

Dronyの設定

google, ブラウザ, Twitterなど元からHTTP proxyに対応しているアプリはDirect設定にすると正常に通信可能です。
LINE, Discord, InstagramなどHTTP proxyに非対応のアプリはVPN経由で通信しようとし,結果的にProxyを通せます。

犠牲にしたもの

VPNに繋がってしまう関係でKDE Connectが死にました。

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?