Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
7e8c0957
Commit
7e8c0957
authored
Jun 07, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsmasq: use canned --bogus-priv for no_private_reverse #1573
parent
66691090
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
dnsmasq.inc
src/etc/inc/plugins.inc.d/dnsmasq.inc
+2
-12
No files found.
src/etc/inc/plugins.inc.d/dnsmasq.inc
View file @
7e8c0957
...
...
@@ -143,19 +143,9 @@ function dnsmasq_configure_do($verbose = false)
}
}
/* If selected, then first forward reverse lookups for private IPv4 addresses to nowhere. */
/* If any of these are duplicated by a user-specified domain override (e.g. 10.in-addr.arpa) then */
/* the user-specified entry made later on the command line below will be the one that is effective. */
/* Prevent bogus lookups of unknown private ranges */
if
(
isset
(
$config
[
'dnsmasq'
][
'no_private_reverse'
]))
{
/* Note: Carrier Grade NAT (CGN) addresses 100.64.0.0/10 are intentionally not here. */
/* End-users should not be aware of CGN addresses, so reverse lookups for these should not happen. */
/* Just the OPNsense WAN might get a CGN address from an ISP. */
$args
.=
" --server=/10.in-addr.arpa/ "
;
$args
.=
" --server=/168.192.in-addr.arpa/ "
;
/* Unfortunately the 172.16.0.0/12 range does not map nicely to the in-addr.arpa scheme. */
for
(
$subnet_num
=
16
;
$subnet_num
<
32
;
$subnet_num
++
)
{
$args
.=
" --server=/"
.
$subnet_num
.
".172.in-addr.arpa/ "
;
}
$args
.=
" --bogus-priv "
;
}
/* Setup forwarded domains */
...
...
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