The ability to connect a VPN from the client to tunnel_server (using the Apple SimpleTunnel application), but unable to browse the Internet on the device

I built a SimpleTunnel sample application (provided by apple) and run the VPN client on the IOS device and the VPN server (tunnel_server) on a MAC running OS 10.11 (OS X El Capitan)

On MAC: -

$ sudo ./tunnel_server 550 ../../tunnel_server/config.plist 

Answer: -

 tunnel_server[87725:2604682] Starting network service on port 550 tunnel_server[87725:2604682] Network service published successfully 

On iOS device: -

Then I launched the PacketTunnel app on my iOS device. Added VPN configuration with the correct IP address (the IP address of the MAC on which tunnel_server is running) and the port number (port number for the tunnel_server server, which is 550).

Next, I try to connect to the VPN from the IO device, and this seems to go fine as I see that the VPN status bar is in the status bar.

The answer on the screen that tunnel_server is running on is: -

 tunnel_server[87739:2606312] Accepted a new connection tunnel_server[87739:2606312] Allocated address Optional("10.8.0.15") 

However, I cannot browse the Internet using Safari on the iOS device (it disconnects), but I can do the same with the MAC.

Any ideas on what I might lose?

Please note that OS X server is not installed on my MAC server. In addition, I ran the following two commands from the terminal before running tunnel_server on the MAC

 sudo sysctl net.inet.ip.forwarding=1 sudo sysctl net.inet.ip.fw.enable=1 
+5
source share

Source: https://habr.com/ru/post/1242938/


All Articles