LINUX.ORG.RU

NetworkManager dnsmasq-shared конфигурационный файл

 


0

0

Нужно настроить раздачу интернет через 3g модем в локальную сеть. Все настроил в NetworkManager работает. Но надо настроить раздачу ip с определенном пулом 192.168.х.30-192.168.х.50. По пути /etc/NetworkManager/dnsmasq-shared.d/ пусто.


ps -ax | grep dnsmasq
3418 ? S 0:00 /usr/sbin/dnsmasq --conf-file --no-hosts --keep-in-foreground --bind-interfaces --except-interface=lo --clear-on-reload --strict-order --listen-address=192.168.10.1 --
dhcp-range=192.168.10.10,192.168.10.254,60m --dhcp-lease-max=50 --pid-file=/run/nm-dnsmasq-eno1.pid --conf-
dir=/etc/NetworkManager/dnsmasq-shared.d
4026 pts/0 S+ 0:00 grep --color=auto dnsmasq

положил файл dnsmasq.conf в /etc/NetworkManager/dnsmasq-shared.d/ настройки не подхватились. Где лежат конфиги?


PS нужна настройка именно через NetworkManager


Правите исходник NM, компилируете и запускаете. А иначе, см. файл nm-dnsmasq-manager.c:

/* dnsmasq may read from it's default config file location, which if that
* location is a valid config file, it will combine with the options here
* and cause undesirable side-effects. Like sending bogus IP addresses
* as the gateway or whatever. So tell dnsmasq not to use any config file
* at all.
*/
nm_cmd_line_add_string (cmd, "--conf-file");
nm_cmd_line_add_string (cmd, "--no-hosts");
...

mky ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.