Project

General

Profile

Actions

Feature #12139

open

Add support in for specifying a DNSMASQ configuration file

Added by M Jurgens over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
DNS Forwarder
Target version:
-
Start date:
07/16/2021
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default

Description

As per https://redmine.pfsense.org/issues/6730 the Dnsmasq command line is hard coded to specify "-C /dev/null". This blocks the ability to specify the -C option in the GUI "Custom options" field.

I'd like to use DNSMasq options significantly more complex than is made available in the GUI for the DNS Forwarder service and significantly larger than fits in the "Custom options" text box. Plus I need to be able to automate changes to the Dnsmasq configuration. To do this I'd like to be able to use a Dnsmasq configuration file. This file would be automatically pushed to the Pfsense server by a management system when it changes. The management system would then restart Dnsmasq.

I could do this by specifying "conf-file=/PATH/dnsmasq.conf" in the "Custom options" field but as mentioned previously this is blocked by the hardcoding of "-C /dev/null".

There are several options:
1) Maybe this issue (https://redmine.pfsense.org/issues/6730) is no longer relevant and you could simply remove the hardcoded "-C /dev/null"
2) Add a GUI option to disable the "-C /dev/null"
3) Don't hardcode "-C /dev/null" but add a GUI option to specify a config file and if nothing is specified use "/dev/null"

Maybe there are others options

At the moment my workaround is to manually modify the services.inc file (every time I upgrade pfsense) to remove the hardcoded "-C /dev/null" so that I can specify "conf-file=/PATH/dnsmasq.conf" in the "Custom options" field

No data to display

Actions

Also available in: Atom PDF