Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs update - how to update IP on openwrt #35

Open
schtritoff opened this issue Apr 6, 2021 · 1 comment
Open

docs update - how to update IP on openwrt #35

schtritoff opened this issue Apr 6, 2021 · 1 comment

Comments

@schtritoff
Copy link

schtritoff commented Apr 6, 2021

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!

@neufeind
Copy link

I didn't find the myip-param in docs or the source. Is there such a parameter with ddns? I looked for this to have placeholders for IPv4 + IPv6 - in case the FritzBox wants to set both IPs (no matter that the ddns-hostname resolves to and which IP is automatically returned from the request).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants