Skip to content
/ phantunX Public
forked from dndx/phantun

Transforms UDP stream into (fake) TCP streams that can go through Layer 3 & Layer 4 (NAPT) firewalls/NATs.

License

Notifications You must be signed in to change notification settings

irocn/phantunX

 
 

Repository files navigation

PhantunX

A lightweight and fast UDP to TCP obfuscator idea from phantun.

MacOS Client

  1. sudo sysctl -w net.inet.ip.forwarding=1
  2. To implement the equivalent of iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE for Network Address Translation (NAT) on macOS
    1. sudo nano /etc/pf.conf
    2. after the line rdr-anchor "com.apple/*". add line "nat on en0 from 192.168.1.0/24 to any -> (en0)"
    3. sudo pfctl -f /etc/pf.conf # Reload the PF configuration
    4. sudo pfctl -e # Enable PF (if not already enabled)

Linux Client

On Linux it is easy to config.

  1. enable traffic forward
    1. sudo sysctl -w net.inet.ip.forwarding=1
  2. Network Address Translation (NAT)
    1. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    2. ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

About

Transforms UDP stream into (fake) TCP streams that can go through Layer 3 & Layer 4 (NAPT) firewalls/NATs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 88.0%
  • Shell 10.9%
  • Dockerfile 1.1%