Skip to content

Instantly share code, notes, and snippets.

@shunghsiyu
shunghsiyu / README.md
Last active June 7, 2021 07:37 — forked from somic/udp_hole_punch_tester.py
Scripts to setup mosh connection with server behind firewall

mosh-nat

Scripts to setup mosh connection with server behind firewall

Setup

  • Install the stuntman package to get the stunclient binary both locally and on the server
  • Place the udp_hole_punch script inside a directory that is in $PATH so that it can be called; both locally and on the server
  • Compile mosh-nat-bind.c into mnb.so and place it inside $HOME/bin/ locally (don't need it on server)