-
Notifications
You must be signed in to change notification settings - Fork 87
Configuration
Create Ad-hoc wifi network in your PC. Connect your iPhone to this wifi network. Please don't set up DNS or router in your iPhone wifi setting. Otherwise, tethering will fail.
In this use case, you can only share your iPhone proxy with only one device.
For Mac users, I have confirmed in Mavericks that system wide default proxy configuration provided by Mavericks didn't work properly. This is due to DNS configuration when creating Ad-hoc wifi network. Running "scutil --dns", I can't see DNS configuration in default resolver. I haven't figure out DNS workaround, although I mess around scutil to add global DNS key. Please shoot me an email if you have any clues.
Although system wide proxy failed, you are still able to use Firefox and Chrome for web browse by setting up socks proxy individually.
For Firefox, you need to
For Chrome, run Chrome in command line with "--proxy-server="socks5://myproxy:8080",
e.g./Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --proxy-server="socks5://192.168.1.3:1080"
For other network application using BSD POSIX socket API, you are able to use tsocks to socksify application. I have added my personal patch to tsocks in my another github project (https://github.com/rickyzhang82/tsocks_dnsdirect)
Create wifi network in your router. Connect your devices and iPhone to this network. You will use your iPhone as proxy and DNS server.
In this use case, you can share your iPhone connections to many devices.
For Mac users, set up your DNS server point to iPhone. It works perfectly with default proxy configuration provided by Mavericks. You can always fall back to tscoks if Mavericks doesn't socksify your application.