[macOS] exclude network connections on the local network in NETransparentProxyProvider

Hi Team,

We are using NETransparentProxyProvider and have observed that AirDrop is not functioning. I attempted to utilize protocolConfiguration in NETransparentProxyManager as mentioned below. manager.protocolConfiguration?.excludeLocalNetworks = true; but it did not work.

Could you please provide guidance on how to exclude local network traffic in NETransparentProxyProvider?

I’ve seen reports of similar problems before (FB10872638). My advice is that you run this test:

  1. Temporarily modify your transparent proxy so that it always return false from handleNewFlow(…).

  2. Re-test with AirDrop.

Do you still see the problem? If so, that’s clearly not your fault — your proxy is saying “No” to everything! — and the next step is to file a bug about the problem.

If you get to that stage, please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

@eskimo, We have tried saying "No" to everything, and still, Airdrop is not working. I will raise a ticket with Apple.

[macOS] exclude network connections on the local network in NETransparentProxyProvider
 
 
Q