Android가 Ubuntu의 프록시를 공유하도록 만드는 방법은 무엇입니까?

Android가 Ubuntu의 프록시를 공유하도록 만드는 방법은 무엇입니까?

이 링크 forum.xda-developers.com/showthread.php?t=2287494에 따라 역방향 테더링 모드를 사용하여 Android 모바일을 우분투에 연결했습니다.

아래는 내 스크립트이며 잘 작동합니다.

▶ cat bin/reverse-tethering.bash 
#!/bin/bash

adb root
adb shell busybox ifconfig
adb shell netcfg rndis0 dhcp
adb shell ifconfig rndis0 10.42.0.2 netmask 255.255.255.0
adb shell route add default gw 10.42.0.1 dev rndis0

우분투에서 글로벌 프록시를 설정했는데 모바일에서는 프록시 설정을 사용하지 않는 것 같습니다. 모바일에서는 트위터에 연결할 수 없습니다. 그렇지 않으면 우분투에서는 연결할 수 있습니다.

아래는 내 설정이며 ssh -D 양말을 사용합니다.

▶ env|grep proxy
  28   :NO_PROXY=localhost,127.0.0.0/8,::1
  40   :all_proxy=socks://127.0.0.1:7070/
  41   :ALL_PROXY=socks://127.0.0.1:7070/
  55   :UBUNTU_MENUPROXY=1
  65   :no_proxy=localhost,127.0.0.0/8,::1

내가 어떻게 할 수 있는지 아는 사람 있나요? 내가 원하는 더 좋은 방법은 내 bash에 몇 줄을 추가하는 것입니다. 예: netcfg/ifconfig 설정 프록시를 사용하여 7070과 같은 ubuntu' 포트를 가리킵니다.

관련 정보