Howto Proxy for Android
install android tools
install android tools on archlinux:
pacman -S android-tools --noconfirm
install android tools in other platforms:
https://developer.android.com/tools/releases/platform-tools
turn on the developer options on android:
1. go to settings 2. tap about device or about phone 3. tap software information 4. tap build number seven times 5. enter your pin pattern to enable developer mode
enable usb debugging:
settings / developer tools / usb debbuging
connect your phone via usb to your computer, open a terminal and use adb to connect:
adb devices
if everything is fine you should see something like this:
List of devices attached 1A281JEG502493 device
install proxy in android
install every proxy on your android phone:
https://play.google.com/store/apps/details?id=com.gorillasoftware.everyproxy
launch every proxy app on your android and enable socks5 proxy:
proxy host exposed via port 1080
on your linux terminal use adb to forward port 1080:
adb forward tcp:1080 tcp:1080
set proxy settings on desktop
on your web browser settings search for proxy:
about:preferences#general
set manual proxy configuration:
socks host: 127.0.0.1 port: 1080
proxychains
install proxy on archlinux:
pacman -S proxychains-ng --noconfirm
edit /etc/proxychains.conf to configure your proxy address:
socks5 127.0.0.1 1080
now you can use your proxy to access remote servers via ssh:
proxychains ssh root@publicipaddress -p 22
use proxychains to connect to openvpn:
proxychains openvpn --config /etc/openvpn/openvpn.conf
references
- https://github.com/ambrop72/badvpn/issues/64
- https://github.com/xjasonlyu/tun2socks/wiki/Examples
- https://forums.balena.io/t/redsocks-proxy-not-working/220377/6?page=2
- https://medium.com/@jogarcia/breaking-the-proxy-walls-with-redsocks-in-linux-f4c1bfb6fb6a
- https://gist.github.com/softmoth/039e2879198f298a41f0924f9fd357c2