Hi,
I am using SimpleTunnel sample app to create a VPN server and using iOS device as VPN client. I followed following steps to connect to VPN:
- Run tunnel_server target on my mac by passing arguments like port number and config file location.
- Got this response:
2015-09-28 15:36:12.783 tunnel_server[28665:711450] Starting network service on port 4147
2015-09-28 15:36:13.649 tunnel_server[28665:711450] Network service published successfully
- Run PacketTunnel app on iOS device.
- Added configuration in PacketTunnel screen by changing server address to my mac's IP address, plus the port number I have given for tunnel_server(4147).
- Now tried to connect to VPN from mac, status changed from connecting to Connected. Here is the log:
2015-09-28 15:36:22.504 tunnel_server[28665:711450] Accepted a new connection
2015-09-28 15:36:22.546 tunnel_server[28665:711450] Allocated address Optional("192.168.2.2")
- I can see VPN sign in status bar.
Now if I try to open www.apple.com on Safari in iOS device, it is timing out. But at the same time if I try to do same on mac, I am able to see Apple's site. Both iOS Device and Mac are connected to the same network.
Can anybody tell what I am doing wrong here or just missing anything?
Thanks in Advance.