thank you MattsetTunnelNetworkSettings is now success. in network preferences the connection appears to be GREEN.But cannot see any flow to handleNewFlow.i was wondring whether i have the rules set right? following is the logic :NWHostEndpoint *host= [NWHostEndpoint endpointWithHostname:@"apple" port:@"0"] ;NENetworkRule *Rule= [[NENetworkRule alloc] initWithDestinationNetwork:host prefix:0 protocol:NENetworkRuleProtocolAny] ;NSArray *RULES= [NSArray arrayWithObjects:Rule, nil];NETransparentProxyNetworkSettings *Settings= [[NETransparentProxyNetworkSettings alloc] initWithTunnelRemoteAddress:@"127(dot)0(dot)0(dot)1"];Settings.includedNetworkRules = RULES;Settings.excludedNetworkRules = nil;[self setTunnelNetworkSettings:Settings ...........----------------------with this i was expecting the flow going throuh browser to apple.com be redirected to my handleNewFlow . But i am not being called at handleNewFlow .please help if i am missing any basic here.
Post
Replies
Boosts
Views
Activity
thank you 🙂
thank you matt for your help .Now i am getting called at startProxyWithOptions.thereafter i am using NETransparentProxyNetworkSettings with tunnel remote address as "127(dot)0(dot)0(dot)1".created arrary of 2 NENetworkRules and set it to includedNetworkRulesthen i call setTunnelNetworkSettings which produces error Domain is NETunnelProviderErrorDomain Code=1 "9223372036854775807 is an invalid network prefix. The prefix must be less than or equal to 32.wanted to ask what wrong i am doing here ?
hi eskimo you said :Yes. Although an app proxy provider is a form of per-app VPN, which not a particularly popular choice for this sort of thing. Most folks use a content filter provider or a transparent proxy provider.by transparent proxy provider do you mean NEAppProxyProvider ?
i could start the app proxy ;also startVPNTunnelAndReturnError returned success .When i open Network preferences, it shows "Connecting..."I also don't get any calls to startProxyWithOptions.am i missing anything?
saveToPreferencesWithCompletionHandler gives error as "Missing protocol or protocol has invalid type."not sure why this error ?
thank you eskimo !