Regarding NEPacketTunnelProvider's NEPacket src ip

We gets NEPacket during packetFlow.readPacketObjects. Each packet contains src ip as packet tunnel utun virtual interface address.

for example if packet tunnel utun address is 10.10.10.10, then src ip of every packet is 10.10.10.10.

  • Can we configure packet tunnel in such a way that it gives src ip as ip assigned to system via dhcp/static (primary Ethernet interface en0) instead of 10.10.10.10? I want to do this because tunnel server uses this src ip to perform some business logic.

  • What if we assigns primary Ethernet interface en0 address to packet tunnel utun address?

Regarding NEPacketTunnelProvider's NEPacket src ip
 
 
Q