Skip to content

用python配合redsocks在linux系统实现类似proxifier的功能

License

Notifications You must be signed in to change notification settings

yangjinhe/proxifier_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

这是什么?

使用python调用redsocks,在Linux上实现类似proxifier的功能。
支持多组配置,目的地址支持ip段、单个ip、指定ip加端口。
程序支持99组配置,占用123xx端口。

如何使用?

  • 编辑好配置文件
[
  {
    "proxy": "socks5://192.168.56.130:33080",
    "targets": [
      "10.123.123.0/24",
      "10.124.124.0/24"
    ]
  },
  {
    "proxy": "socks5://192.168.56.131:33080",
    "targets": [
      "172.18.35.0/24",
      "172.18.36.0/24",
      "192.168.33.123:443",
      "192.168.123.124"
    ]
  }
]
  • 安装好依赖的iptables和redsocks
sudo apt-get install iptables redsocks
  • 启动
sudo python3 main.py start
  • 停止
sudo python3 main.py stop

About

用python配合redsocks在linux系统实现类似proxifier的功能

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages