Skip to content

docs update - how to update IP on openwrt #35

@schtritoff

Description

@schtritoff

Hi! Thanks for this great project (and service). This issue is actually only for documentation purposes. Maybe there could be a place (in readme or wiki) for additional ddns client configuration docs.

I'm using OpenWRT for my router and wanted to update WAN IP on pboehm/ddns service as soon as possible and to avoid running cron job every X minutes to check if IP changed.

After some research I've found in OpenWRT forums those two relevant topics:

Basically what you have to do is:

  1. Make sure you have wget with SSL support opkg install wget ca-certificates
  2. Create a file /etc/udhcpc.user with following contents
#!/bin/sh
if [ "wan" = $INTERFACE ]; then
	logger "$INTERFACE - $interface - $J_T5_source"
	/usr/bin/wget -q -O - 'https://ddns.pboehm.de/update/[HOST]/[TOKEN]?myip='${ip}''
fi
exit 0
  1. Make it executable chmod +x /etc/udhcpc.user

That's it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions