是否可以使用WiFi-direct与其他Android设备共享我的互联网连接?我想使用WiFi-direct而不是WiFi热点。感谢您的建议和意见!
发布于 2017-02-24 23:57:27
我发现了一个新的应用程序,可以让你做到这一点,NetShare在play商店可用,它使用虚拟专用网络路由流量从需要互联网连接的设备到另一个设备(也运行NetShare),有互联网连接。http://play.google.com/store/apps/details?id=kha.prog.mikrotik
发布于 2018-01-23 03:28:34
是的,你可以做到这一点,只需安装简单的Android应用程序命名为以太网,这是免费的谷歌,然后你就可以分享你的vpn连接热点或usb电缆。我也在使用免费互联网,在互联网上进行了大量搜索后,我在一个网站上获得了教程,该网站的链接是http://vlivetricks.com/how-to-use-or-share-mobile-vpn-connection-in-tethering-or-hotspot
发布于 2018-06-08 07:33:50
我实际上从不同的XDA中拼凑了一个shell脚本来完成这个任务,当然需要根用户,可能是BusyBox。使用ip表,因此与运行应用程序相比,它占用的资源较少。这里需要注意的一点是,您需要首先连接要与其共享VPN的所有设备,一旦您运行此操作,其他设备将不会从您的电话AP获取IP。
这可以从终端或adb shell运行。
更改wlan0以匹配您的无线/共享接口。
#!/system/bin/sh
iptables -t filter -F FORWARD
iptables -t nat -F POSTROUTING
iptables -t filter -I FORWARD -j ACCEPT
iptables -t nat -I POSTROUTING -j MASQUERADE
ip rule add from 192.168.43.0/24 lookup 61
ip route add default dev tun0 scope link table 61
ip route add 192.168.43.0/24 dev wlan0 scope link table 61
ip route add broadcast 255.255.255.255 dev wlan0 scope link table 61
https://stackoverflow.com/questions/33822908
复制相似问题