• Avery Pennarun's avatar
    Client "almost" works on MacOS and maybe FreeBSD. · 096bbcc5
    Avery Pennarun authored
    Basic forwarding now works on MacOS, assuming you set up ipfw correctly
    (ha ha).  I wasted a few hours today trying to figure this out, and I'm *so
    very close*, but unfortunately it just didn't work.  Think you can figure it
    out?
    
    Related changes:
    - don't die if iptables is unavailable
    - BSD uses getsockname() instead of SO_ORIGINAL_DST
    - non-blocking connect() returns EISCONN once it's connected
    - you can't setsockopt IP_TTL more than once
    096bbcc5
client.py 5.73 KB