iPhone VPN to track usage

有些话、适合烂在心里 提交于 2019-12-25 08:16:46

问题


Hi StackOverflow community.

I am beginning a new project and was wondering if I could get some insight on VPNs and iPhones.

I want to create a VPN so that I can route all of my network traffic through it from my iPhone. I also hope to log each request that was routed through the VPN? (Similar to Hooked)

I am not sure where to start - any insight would be helpful!

Here is my initial plan:

1) Create a VPN (what should I use to create it?)

-How to accept iPhone request?

-How to route all requests to where they need to go?

2) Hook VPN up to iPhone and route all traffic through it


回答1:


This is actually not a programming, but a network question. So you might rather post a question over at serverfault.

You need a VPN server that in best case, has a fixed IP. From your iPhone you connect to this VPN via the external IP. If you don't have a fixed one, you'd need to update the IP from time to time or use DynDNS or something similar, but they're not perfect, as far as I know.

You configure & connect the VPN within the iPhones Settings app (General → VPN)

Within the VPN your iPhone gets assigned an IP address within the IP range of your private network (e.g. 10.0.0.xxx).

All the devices traffic gets routed through the VPN. When you have extensive logging on the VPN sever, you should be able to get a log of these requests.

EDIT This is all really broad and generalized. But as mentioned, this is mostly about VPN Sever configuration and, thus cannot be further discussed here on SO.



来源:https://stackoverflow.com/questions/39809680/iphone-vpn-to-track-usage

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!