Home ARCHIVED: Configure Dynamic DNS with Dynu
Post
Cancel
Preview Image

ARCHIVED: Configure Dynamic DNS with Dynu

ARCHIVED: NOW USING TRAEFIK REVERSE PROXY WITH
CLOUDFLARE DNS AND LET’S ENCRYPT FOR SSL CERTIFICATION

Access the Proxmox server from the internet. Used elements from this guide (Tech Guides).

Get free Dynamic DNS domain

  • Go to DynuDNS and create an account and domain:
    • Add First Name: Bob and Last Name: Beveridge
    • Add Username: bsquared
    • Add password: XNxHPTh3abscQEjM
    • Add Email Address, and confirm
    • Click Submit
    • Dynu will send a verification email to confirm email address above, click on link therein
    • Login to dynu.com using credentials above
    • At the Control Panel, select DDNS services
      • Select Host name: bsquared
      • Select Top Level: webredirect.org
      • Click +Add, if domain not in use will go to next screen where DynuDNS should have populated the public IP address

Automatically Update IP Address

The public IP address is issued via DHCP and might be changed by the ISP so need to monitor this and update the IP address on DynuDNS as required. Setup a CRON job to do this automatically:

  • In Proxmox node (pve) select >_Shell

    crontab -e

    • Add following command to the file:

      1
      
      /15 * * * * wget -O dynulog -4 "https://api.dynu.com/nic/update?hostname=bsquared.webredirect.org&myip=10.0.0.0&myipv6=no&username=bsquared&password=8135b9df6e6036e71fa8ee493a89da50"
      
      • Every 15 mins, of every hour, of every day, of every month, of every year. This command executes a wget (web GET) writing the output to the dynulog file, for the IPv4 protocol only. It uses the domain name, IP address = 10.0.0.0 forces change to current IP address of server (???), with username from above. Rather than send the password in plain, it is a MD5 hash of the password. This can be done through the DynuDNS website (link)
  • The command can be tested by just running the wget command in the shell, then run a cat dynulog command to list the output. Will get a good with the updated IP address, or nochg if the address is unchanged

Port forward domain name to Proxmox server

  • Port forward to Proxmox server
    • In VirginMediaHub (192.168.0.1)
      • Go to Advanced Settings -> Security -> Port forwarding
    • Click Create a new rule:
      • IP address of Proxmox server: 192.168.0.108 [Home Assistant server]
      • Port range local from: 80 to: 80, external from: 80 to: 80
      • Protocol: Both
      • Enabled: On
      • Click Add Rule
    • Same for port 443, and port 8006 for Proxmox server GUI
This post is licensed under CC BY 4.0 by the author.
Recently Updated
Trending Tags
Contents
Trending Tags