我正在寻找一个袜子代理服务器,我可以在我的Android手机上运行。我只能找到一些商业应用程序,但更喜欢福斯替代方案。
它不需要是一个应用程序:二进制我可以从 adb shell
运行,但如果它不需要root,我更喜欢它。
我正在寻找一个袜子代理服务器,我可以在我的Android手机上运行。我只能找到一些商业应用程序,但更喜欢福斯替代方案。
它不需要是一个应用程序:二进制我可以从 adb shell
运行,但如果它不需要root,我更喜欢它。
I am looking for a SOCKS proxy server I can run on my Android phone. I could only find some commercial apps, but would prefer a FOSS alternative.
It does not need to be an app: a binary I can run from adb shell
would work as well, but I'd prefer it if it does not require root.
您可以使用FOSS应用程序 simplesshd 此!您可以直接从该链接或使用手机上使用 f-droid 应用商店。
一旦设置,您可以使用像这样的电脑的LAN或WAN IP连接到您的设备:
ssh -D 8899 <PHONE-IP>
-D
选项设置 a local "dynamic" application-level port forwarding
,它基本上使ssh像ssh这样的ssh行为(socks4被支持的Aswell)代理服务器。
在此之后,您可以将代理程序设置为 127.0.0.1:8899
在PC上。我用卷曲测试了它:
curl --socks5 127.0.0.1:8899 https://myip.is
,它的工作!请注意,我甚至不需要root,它用作正常的Android用户。
请注意,如果要使用移动网络,因此您的单元格提供程序可能不会允许您使用WAN IP连接到SSHD。如果没有必要的话,VPN可以是这个问题。
You can use the FOSS application SimpleSSHD for this! You can get it directly from that link or using the F-droid app store on your phone.
Once setup you can connect to your device using either your LAN or WAN IP from your PC like this:
ssh -D 8899 <PHONE-IP>
The -D
option sets up a local "dynamic" application-level port forwarding
, which essentially makes ssh act like a SOCKS5 (SOCKS4 is supported aswell) proxy server.
After this, you can set your proxy to 127.0.0.1:8899
on your PC. I've tested it with curl:
curl --socks5 127.0.0.1:8899 https://myip.is
And it worked! Note that I did not even need root for this, it worked as the normal android user.
Note that if you want to use your mobile network for this your cell provider might not let you connect to SSHD using the WAN IP. A VPN can cirucmvent this if neccessary.
© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有