Ngrok with DuckDNS

I wanted a way to combine the two and I think I have figured something out. Below is the image of how it works.

duckdns -> redirection server -> ngrok -> main server

Prequisites

  • Python3
  • Ability to use sudo or similar

Installation

  • DuckDNS
    • Get an account at duckdns.org.
    • Register a domain name
    • Keep note of the token
  • Ngrok
    • Get an accout at ngrok.com
    • Copy the authtoken
    • Download the binary from ngrok.com.
    • Extract the binary and run ngrok config authtoken <token>
  • Python3
    • Install requests