so around one year ago, I posted a topic here complaining about inability of setting proxy server for apps (e.g HaikuDepot). Today I ported proxychains-ng to Haiku and that works!
To install and configure proxychains, just follow the instructions in README file.
Besides this port also ships a simple wrapper script to force any app use proxy:
- To force HaikuDepot access internet through proxy
- To force WebPositive use proxy (DNS will be resolved remotely)
- To force Otter-Browser use proxy (DNS will be resolved remotely)
I noticed that what proxychains actually does is to hijack the system library at runtime and replace certain network related functions with it’s own ones. And I think system-wide proxy can be possible by adopting this strategie.
So the following system functions have to be changed:
connect(), sendto(), close(), gethostbyname(), getaddrinfo(), freeaddrinfo(),
A new option in Network Manager:
A pull request has been made to the original repository (https://github.com/rofl0r/proxychains-ng)