After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 731074 - custom dnsmasq.conf extension for a "sharing internet" connection
custom dnsmasq.conf extension for a "sharing internet" connection
Status: RESOLVED DUPLICATE of bug 761717
Product: NetworkManager
Classification: Platform
Component: general
0.9.x
Other Linux
: Normal enhancement
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-06-01 11:00 UTC by Alejandro Mery
Modified: 2016-04-12 14:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
lame dispatcher workaround (1.71 KB, text/x-shellscript)
2014-06-01 11:07 UTC, Alejandro Mery
  Details
Workaround patch (1.45 KB, patch)
2015-12-01 09:50 UTC, sashok724
none Details | Review

Description Alejandro Mery 2014-06-01 11:00:29 UTC
when enabling a "sharing internet" connection dnsmasq gets started with a fixed list of options. it is important to be able to extend these options for custom dhcp rules or tftp.

currently the only way is doing:
1) disabling dns=dnsmasq
2) disabling share internet connection
3) create a dispatcher setting the iptables rules and starting the custom dnsmasq

NetworkManager can do better ;-)

allowing a custom per-connection dnsmasq --conf-file would make it much simpler.

also, for this "advanced" usage of connection sharing it's important to be able to have post-up/pre-down dispatcher hooks.
Comment 1 Alejandro Mery 2014-06-01 11:07:40 UTC
Created attachment 277669 [details]
lame dispatcher workaround

I simply replicated the iptables rules you normally create, added one to allow tftp, and manually started dnsmasq with extra options for tftp
Comment 2 sashok724 2015-12-01 09:50:43 UTC
Created attachment 316579 [details] [review]
Workaround patch

It's my workaround
Comment 3 Simón 2015-12-08 18:28:06 UTC
I agree. I have a PC with dual LAN motherboard, one connected to the Internet router and the other to a media player. 
I want assign a fixed IP to media player and it allows access to Internet through the other LAN. I can't do both things with actual NetworkManager.
Comment 4 Bhuvan Krishna 2016-01-20 11:02:00 UTC
I need to change lease time from 50m to 1m but since it is hard coded I can't do it now. I think its better to include a simple config option for such small tweaks. I need this for freedombox because freedombox uses NM for handling everything related to networking. I think if the option in line number 288 is given to the user will fix the problem.

http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/dnsmasq-manager/nm-dnsmasq-manager.c#n288
Comment 5 Bhuvan Krishna 2016-01-20 11:04:14 UTC
(In reply to Bhuvan Krishna from comment #4)
> I need to change lease time from 50m to 1m but since it is hard coded I
> can't do it now. I think its better to include a simple config option for
> such small tweaks. I need this for freedombox because freedombox uses NM for
> handling everything related to networking. I think if the option in line
> number 288 is given to the user will fix the problem.
> 
> http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/dnsmasq-
> manager/nm-dnsmasq-manager.c#n288

this is for NM version 1.0.10-1 for debian.
Comment 6 Beniamino Galvani 2016-04-12 14:08:53 UTC

*** This bug has been marked as a duplicate of bug 761717 ***