Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
1a9a3489
Commit
1a9a3489
authored
Mar 05, 2014
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set --local-service in Debian package startup.
parent
c8a80487
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
debian/changelog
debian/changelog
+6
-0
debian/init
debian/init
+8
-0
src/dnsmasq.c
src/dnsmasq.c
+3
-0
No files found.
debian/changelog
View file @
1a9a3489
dnsmasq (2.69-1) unstable; urgency=low
dnsmasq (2.69-1) unstable; urgency=low
* New upstream.
* New upstream.
* Set --local-service. (closes: #732610)
This tells dnsmasq to ignore DNS requests that don't come from a local network.
It's automatically ignored if --interface --except-interface, --listen-address
or --auth-server exist in the configuration, so for most installations, it will
have no effect, but for otherwise-unconfigured installations, it stops dnsmasq
from being vulnerable to DNS-reflection attacks.
-- Simon Kelley <simon@thekelleys.org.uk> Tue, 4 Feb 2014 16:28:12 +0000
-- Simon Kelley <simon@thekelleys.org.uk> Tue, 4 Feb 2014 16:28:12 +0000
...
...
debian/init
View file @
1a9a3489
...
@@ -90,6 +90,14 @@ if [ ! "$DNSMASQ_USER" ]; then
...
@@ -90,6 +90,14 @@ if [ ! "$DNSMASQ_USER" ]; then
DNSMASQ_USER
=
"dnsmasq"
DNSMASQ_USER
=
"dnsmasq"
fi
fi
# This tells dnsmasq to ignore DNS requests that don't come from a local network.
# It's automatically ignored if --interface --except-interface, --listen-address
# or --auth-server exist in the configuration, so for most installations, it will
# have no effect, but for otherwise-unconfigured installations, it stops dnsmasq
# from being vulnerable to DNS-reflection attacks.
DNSMASQ_OPTS
=
"
$DNSMASQ_OPTS
--local-service"
start
()
start
()
{
{
# Return
# Return
...
...
src/dnsmasq.c
View file @
1a9a3489
...
@@ -661,6 +661,9 @@ int main (int argc, char **argv)
...
@@ -661,6 +661,9 @@ int main (int argc, char **argv)
my_syslog
(
LOG_INFO
,
_
(
"DBus support enabled: bus connection pending"
));
my_syslog
(
LOG_INFO
,
_
(
"DBus support enabled: bus connection pending"
));
}
}
#endif
#endif
if
(
option_bool
(
OPT_LOCAL_SERVICE
))
my_syslog
(
LOG_INFO
,
_
(
"DNS service limited to local subnets"
));
#ifdef HAVE_DNSSEC
#ifdef HAVE_DNSSEC
if
(
option_bool
(
OPT_DNSSEC_VALID
))
if
(
option_bool
(
OPT_DNSSEC_VALID
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment