Short version:
How can I configure DNSMasq to send option 252 PAC (Proxy automatic configuration) as whatever the current default WAN gateway is?
Long version:
Internet connection is via Android device with ethernet tethering.
Android tethering subnet and IP changes every reboot.
Android device is running EveryProxy for HTTP/S, SOCKS, and PAC
OpenWRT router (r28556) running DNSMasq needs to send DHCP Option 252 (Proxy automatic configuration) to LAN clients as the current IP of the android device which is the WAN default Gateway issued to OpenWRT via DHCP by the android device.
It doesn't look like I can do this from LUCI, and am fine editing /etc/config/dhcp
or /etc/dnsmasq.conf
whichever is correct, but how do I deal with this dynamic upstream IP as an option setting?
Is there some %default_gateway% variable or something to point to the upstream WAN gateway?
Don't think 0.0.0.0 is going to work. Can't use DNS name because it doesn't appear the android device is announcing a name.
Any ideas, or other workarounds?