Learn-iOS-Swift-by-Examples icon indicating copy to clipboard operation
Learn-iOS-Swift-by-Examples copied to clipboard

Excuse me, I need you help

Open longbkhn opened this issue 8 years ago • 2 comments

@Lax , I have a question: When I use apple's SimpleTunnel app, make a VPN connection from client to the tunnel_server but unable to browse the internet on the device?

Thank you!

longbkhn avatar Jun 29 '17 02:06 longbkhn

@longbkhn : Can you give more technical details about your code, environments, or how can reproduce the problem?

Lax avatar Jun 30 '17 05:06 Lax

@Lax Thank you for reply: Environments: SimpleTunnel client : iOS 9.3.5 Tunnel server : mac OS 10.12 Our configuration :

Client IP: 192.168.43.241
Tunnel_server (VPN server): 192.168.43.162

config.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>IPv4</key>
	<dict>
		<key>Pool</key>
		<dict>
			<key>EndAddress</key>
			<string>10.10.5.10</string>
			<key>StartAddress</key>
			<string>10.10.5.3</string>
		</dict>
	</dict>
</dict>
</plist>

Reproduce

  1. Client connects tunnel_server (VPN server) On MAC: $ sudo ./tunnel_server 9999 ../../tunnel_server/config.plist Response : tunnel_server[1113:36731] Starting network service on port 9999 tunnel_server[1113:36731] Network service published successfully On IOS device: Run SimpleTunnel App: Add config : 192.168.43.162:9999 Response on the screen running tunnel_server : tunnel_server[1113:36731] Accepted a new connection tunnel_server[1113:36731] Allocated address Optional("10.10.5.3")
  2. I start Safari at the client (Ex: google.com)
  3. Safari on the IOS device (it times out)

longbkhn avatar Jun 30 '17 07:06 longbkhn