Here is a step-by-step tutorial on how to use DuckDNS for IP authentication:
1. Sign up for a DuckDNS account. Go to the DuckDNS website (https://www.duckdns.org/) and click the "Register" button. Enter your email address, choose a domain name (eg mydomain.duckdns.org) and click the "Create Domain" button.
2. Install the DuckDNS updater. Depending on your operating system, you can use one of the following methods:
- Linux: If you are using Linux, you can use the "curl" command to update your IP address. Open a terminal and enter the following command:
```
echo "*/5 * * * * /usr/bin/curl -k https://www.duckdns.org/update?domains=&token=&ip=" | sudo tee -a /etc/crontab >/dev/null
```
Replace with your domain name and with your DuckDNS token (you can find it on the DuckDNS website under "Install" > "Token"). This command will update your IP address every 5 minutes.
- Windows: If you are using Windows, you can download the DuckDNS updater from the DuckDNS website (https://www.duckdns.org/install.jsp). After downloading, extract the files to a folder of your choice and run the "duck.exe" file. Enter your domain name and token when prompted.
- MacOS: If you are using macOS, you can download the DuckDNS updater from the DuckDNS website (https://www.duckdns.org/install.jsp). After downloading, extract the files to a folder of your choice and run the "duck.sh" file. Enter your domain name and token when prompted.
3. Configure IP authentication. With your DuckDNS updater running, go to the DuckDNS website and click "Domains" > "IP" authentication. Enter your IP address and click "Add IP". This will only allow your IP address to access your domain.
4. Test your setup. You can test your setup by accessing your domain from a device with a different IP address than the one you configured for IP authentication. You should see an error message stating that you are not authorized to access the domain.
5. You can now use the domain you specified from Duckdns for IP Auth, and you can easily use it in your proxies with IP Auth authorization. Do this, and for IP Auth, forward us the domain you specified in Duckdns. (eg mydomain.duckdns.org)
This way, our Gateway will be notified when your IP changes and you don't have to change it manually.
All these steps take less than two minutes to set up and are 100% free.
That's it! You've successfully configured DuckDNS for IP authentication.