星期二, 5月 19, 2020

Building private and cheaper ngrok-like tunnels

  • In mrvm.net, you can cost USD$4 / year for 1 IPv4 address and 20 ports. In my case, 198.204.227.x 21001 ~ 21020.
  • The ssh for mrvm.net is using another port. So you can control your VPS like ssh user@198.204.227.x -p 21021.
  • In noip.com, you can register 3 free domain names like abc.hopto.org or xyz.ddns.net.
  • Using inlets, you can expose your intranet service on the cloud:
    • VPS
      • export token=$(head -c 16 /dev/urandom | sha1sum | cut -d" " -f1)
      • inlets server --port=21001 --token=$token
    • DEV
      • python -m SimpleHTTPServer 8000 (or your service)
      • inlets client --remote=abc.hopto.org:21001 --upstream=http://localhost:8000 --token=...
    • Client
      • curl http://abc.hopto.org:21001

沒有留言:

張貼留言