Is it possible to configure NENetworkRule with a scope of port

Hi there,

Currently I am able to use the app proxy with NENetworkRule setup with separate port. Is it possible to setup the rule with a range of port without the need list one port after the other?

Thanks in advance for any suggestion.

Is it possible to setup the rule with a range of port without the need list one port after the other?

A range of ports meaning ports 80-443, then no, that is not possible. The only options here are to set the remoteNetwork parameter to nil and you will claim any port, or list out all of the ports you are looking to claim.

Code Block swift
NENetworkRule(remoteNetwork: nil, remotePrefix: 0, localNetwork: nil, localPrefix: 0, protocol: .TCP, direction: .outbound)


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Is it possible to configure NENetworkRule with a scope of port
 
 
Q