dndx / phantun

Transforms UDP stream into (fake) TCP streams that can go through Layer 3 & Layer 4 (NAPT) firewalls/NATs.
Apache License 2.0
1.71k stars 137 forks source link

Add IP4P domain resolve support #161

Open Wikeolf opened 3 months ago

Wikeolf commented 3 months ago

IP4P is a method proposed by the open-source project natmap, which uses AAAA records to transmit encoded IPv4 addresses and ports. With IP4P domain resolution, users can easily achieve network penetration in NAT1 environments and perform UDP obfuscation using natmap and phantun.

This request has preliminarily implemented IP4P resolution with the help of AI tools, although the code quality may not be optimal.