wangyu- / udp2raw

A Tunnel which Turns UDP Traffic into Encrypted UDP/FakeTCP/ICMP Traffic by using Raw Socket,helps you Bypass UDP FireWalls(or Unstable UDP Environment)
MIT License
7.16k stars 1.16k forks source link

MacOs When net.inet.ip.forwarding=1 will loop (re)sent tcp syn #527

Closed bboy910225 closed 3 months ago

bboy910225 commented 3 months ago

I am using Wireguard + udpspeeder + udp2raw. It's work success.

But when I enable sysctl -w net.inet.ip.forwarding=1. Udp2raw will loop (re)sent tcp syn( it seems come from wireguard). I am try to edit pfctl rule. But it's still failed.

Because I set net.inet.ip.forwarding=0 connect normal. I want to share my Mac OS to other wireguard's tunnel that I need to switch net.inet.ip.forwarding=1. Any one suggest how to solve it problem or any other methods to connect wireguard tunnel each other. Thanks for your help!

bboy910225 commented 3 months ago

Already fix it. Thanks