I hate my ISP, but have to like its low price of ADSL access. The price not only delivers me an ADSL connection, also
- Transparent proxies seemingly have been imposed by the ISP so that "my" IP when browsing websites isn't the WAN IP of my router, and
- The ISP assign any possible IP including private address to my router, i.e. randomly sometimes public IP and sometimes private IP 10.x.x.x (thank them for still assigning an IP).
I need DDNS to access my home router and NAS. With transparent proxy injected, DDNS in ordinary home router only exposes IP of ISP proxy not my router. Fortunately, OpenWrt can update DDNS services directly with its own WAN IP. Then when I'm more lucky that my router gets a global IP, I can really access my home router with this global IP. But if without luck my router gets a private IP, what I can only do is waiting - until my router refreshes its IP or someone helps restart my router.
So I would like to beg your help - to eliminate private IP from my router. I believe OpenWrt can be the hero again. My rough idea is: when the router detects a private WAN IP after PPPoE up, it automatically disconnects/reconnects until a global IP is received, or less good, a cron job checks the WAN IP every e.g. 5 minutes and re-establishes WAN connection in case of private IP.
But I don't know how to make that implemented - what and how to change. Could anybody please help me? And if this feature is useful enough to be integrated into the release, it would be perfect.
I appreciate any help!