With Proximac, it can force App to use SOCKS5 proxy. In the other words, it can forward any App's traffic to a certain SOCKS5 proxy. Moreover, Proximac now can forward all network traffic in your system to a proxy which means you may not need a VPN to do this job. I hope more developers can join this project.
- Support global traffic forwarding (VPN mode).
- Support SOCKS5 authentication using username/password.
Usage
- If you plan to use Proximac on OSX 10.10+, please run
sudo nvram boot-args="debug=0x146 kext-dev-mode=1"
. For 10.11/10.12, do Restart -> Press COMMAND + R ->进入 Recovery Mode -> Terminal -> csrutil enable --without kext --without debug. - Install libuv first. Run
brew install libuv
or whatever works - Run
curl -fsSL https://raw.githubusercontent.com/proximac-org/proximac-install/master/install.py |python
- Set up your config file which indicates Proximac's work mode (VPN or per-App) and proxy configuration
- Run
proximac start -c [path of your config file]
to start Proximac - Run
proximac stop
to stop Proximac
env: python2: No such file or directory
yudeMacBook-Air:~ brite$
$ git clone https://github.com/libuv/libuv
$ cd libuv
$ sh autogen.sh
$ ./configure
$ make && make install
An example of the config file
{
"process_name":
["Unibox", "Google Chrome", "Thunder"],
"local_port":1080,
"local_address":"127.0.0.1",
"proximac_port":8558,
"username":"foo",
"password":"bar"
}
{
"local_port":10085,
"local_address":"127.0.0.1",
"proximac_port":8558,
"VPN_mode":1,
"proxyapp_name":"ShadowsocksX"
}
References
- Shadowsocks-libev.
- Shadowsocks-libuv.
- libuv.
- js0n.
- tcplognke (Apple).
- drcom4mac (As my kext dev guide book)
cd ~/tlsSocks5-by-nvksie;./client -config client_config.json
proximac start -c $HOME/proximac-config.json
sudo networksetup -setdnsservers "Wi-Fi" 127.0.0.1
cd ~/goproxy-by-snail007 && sudo ./proxy dns -S socks -T tcp -P 127.0.0.1:10085 -p :53
这里socks proxy程序tlsSocks5-by-nvksie的搭建详见https://briteming.blogspot.com/2021/06/tlssocks5-by-nvksie.html
dns proxy程序 dns-proxy-by-snail007-goproxy的搭建详见https://briteming.blogspot.com/2019/08/socks-proxydnsdns-proxy-by-snail007.html