-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
dnsmasq: Add EDNS0 Upstream support #14349
Conversation
Please make this configurable (default: on), as adding the requestors MAC address to upstream forwarded requests might have security or privacy implications. It is only useful if you use Pihole/Adguard but not for external upstream servers. |
If this can have security or privacy implications the default should be off, not on. |
Yes i agree, this is just exposing the options, its up to the user to configure via uci or luci (patch coming for this) |
df7742d
to
63deef5
Compare
Tested together with PiHole (development-v6), works.
I've also created a draft to add this to LuCI in dhcp.js (line 650):
|
Forward client mac address and subnet on dns queries. Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router. This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt. Signed-off-by: David Bentham <db260179@gmail.com>
6d8f1fd
to
1b6ee94
Compare
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
@@ -972,12 +972,16 @@ dnsmasq_start() | |||
append_bool "$cfg" noping "--no-ping" | |||
append_bool "$cfg" rapidcommit "--dhcp-rapid-commit" | |||
append_bool "$cfg" scriptarp "--script-arp" | |||
append_bool "$cfg" add_mac "--add-mac" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This parameter is NOT a boolean. This must change. The manpage says --add-mac[=base64|text]
.
So either --add-mac
by itself, or --add-mac=base64
or --add-mac=text
. There might appear other variations, but I doubt it. This param must handle a naked param, or with an option (which the user provides).
@@ -972,12 +972,16 @@ dnsmasq_start() | |||
append_bool "$cfg" noping "--no-ping" | |||
append_bool "$cfg" rapidcommit "--dhcp-rapid-commit" | |||
append_bool "$cfg" scriptarp "--script-arp" | |||
append_bool "$cfg" add_mac "--add-mac" | |||
append_bool "$cfg" strip_mac "--strip-mac" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine.
|
||
append_bool "$cfg" filter_aaaa "--filter-AAAA" | ||
append_bool "$cfg" filter_a "--filter-A" | ||
|
||
append_parm "$cfg" logfacility "--log-facility" | ||
config_get logfacility "$cfg" "logfacility" | ||
append_parm "$cfg" add_subnet "--add-subnet" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks OK. This must be able to supply a naked parameter as with --add-mac
, or with any combination mentioned in the manpage: --add-subnet[[=[<IPv4 address>/]<IPv4 prefix length>][,[<IPv6 address>/]<IPv6 prefix length>]]
.
--add-mac
by itself means: the address of the requestor will be used.
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
ping @db260179 - please resolve the code-change comments |
When i get time to do this, busy at the moment |
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
The pull request openwrt/openwrt#14349 adds four new options to configure EDNS0 upstream support. This patch adds the new settings to DNSMASQ web UI. Signed-off-by: Carsten Schuette <schuettecarsten@googlemail.com>
I've created two new PRs for this, one for the openwrt core system and a luci patch. |
Please close this PR as outdated/abandoned. |
Forward client mac address and subnet on dns queries.
Pi-hole and Adguard use this feature to send the originators ip address/subnet so it can be logged and not just the nat address of the router.
This feature has been added since version 2.56 of dnsmasq and would be nice to expose this feature in openwrt.