#18642: ddns-scripts disallow to update private ip
----------------------+----------------------------------
 Reporter:  cmtsij    |      Owner:  developers
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:  Chaos Calmer (trunk)
Component:  packages  |    Version:  Trunk
 Keywords:            |
----------------------+----------------------------------
 I register ddns service with private ip in my OpenWRT route.
 Then, I can reach the route's wan private ip in the same private network.
 Should ddns-scripts add a option to allow update private ip?
 Thanks.

 source code to disallow to update private ip is here:
 {{{
 /net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh:
 ...
 send_update() {
         # $1    # IP to set at DDNS service provider
         local __IP

         [ $# -ne 1 ] && write_log 12 "Error calling 'send_update()' -
 wrong number of parameters"

         # verify given IP / no private IPv4's / no IPv6 addr starting with
 fxxx of with ":"
         [ $use_ipv6 -eq 0 ] && __IP=$(echo $1 | grep -v -E
 "(^0|^10\.|^127|^172\.1[6-9]\.|^172\.2[0-9]\.|^172\.3[0-1]\.|^192\.168)")
         [ $use_ipv6 -eq 1 ] && __IP=$(echo $1 | grep "^[0-9a-eA-E]")
         [ -z "$__IP" ] && write_log 4 "Private or invalid or no IP '$1'
 given"
 }}}

--
Ticket URL: <https://dev.openwrt.org/ticket/18642>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to