Skip to content

基于手机实现的的4G代理应用,使用 python 开发,拿来即用的企业级代理服务。

License

Notifications You must be signed in to change notification settings

Kr1s77/FgSurfing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FGProxy

Master

FGProxy 是一个企业级 4G 代理程序。它是一个比树莓派实现的4g代理程序更稳定的代理程序。它摒弃了物联网卡的缺点,使用了真正的 4G 手机卡来实现,部署实现都非常的简单。

文档可能比较简洁,部署失败的可以邮件联系我,或者找我远程协助搭建,有啥问题也可以在 issues 里面提出。

有兴趣的同学可以尝试使用 haproxy + prometheus + grafana 做个代理的监控,还是非常不错的!

bridge.py 可以单独运行在任何服务器上,那么运行 bridge.py 的服务器也可以作为代理使用,如果你想测试,可以通过这个方式

Overall structure

The following logic is then triggered:

Master

HAPROXY STATUS

Master


Before You Begin

  1. Install lineageos at Google Pixel
  2. The mobile phone must use a mobile phone that can execute adb root, I use Google Pixel,My system is lineageos
  3. Before using this program, you need to confirm that your phone has been configured according to the link below How-do-I-run-python-on-Android-devices
  4. Then you can execute the Fgproxy program. After the execution is completed, the port will be mapped to 30000, 30001, 30002... The number of ports is the number of devices
  5. After that, configure haproxy for load balancing Haproxy
  6. Since the machine is in our local area, we need to do intranet penetration to forward the local haproxy load balancing port, here we need FRP

The above is the overall configuration process. After the configuration is completed, the frp exit is our proxy port, which can be used in the crawler.

Create

$ git clone https://github.com/Kr1s77/FgSurfing.git
$ cd FgSurfing/proxy
$ python3 api.py
>> [2021-07-15 14:22:32,522 INFO]  ->  Count: [1] Devices Found
>> [2021-07-15 14:22:32,522 INFO]  ->  Deploy device: FAXXXXXXX  1/1
Currently most of it has been completed

Anyone is welcome to participate and improve one person can go fast, but a group of people can go further

About

基于手机实现的的4G代理应用,使用 python 开发,拿来即用的企业级代理服务。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages