Post

Replies

Boosts

Views

Activity

Reply to Starting App Proxy
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.
May ’20
Reply to Starting App Proxy
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 ?
May ’20