Network Manager post-up script (dispatcher script)

2015-09-07 1 min read Fedora

Network manager is supposed to be much better than network, how so?

it supports dnsmasq for one…

Dnsmasq with netowrkmanager

Local name resolution

Also Network Manager supports dispatcher scripts. How can that help? For one, I used to send interface up emails. To do so, all I had to do was put the following script in “/etc/NetworkManager/dispatcher.d”

#!/bin/sh

cd /etc/sysconfig/network-scripts
. ./network-functions

[ -f ../network ] && . ../network

# Notify programs that have requested notification
IF=$1
STATUS=$2

cat

dnsmasq not starting from NetworkManager with SELinux enabled.

2013-03-16 1 min read Fedora Learning Linux
OpenWrt - Dnsmasq
OpenWrt – Dnsmasq (Photo credit: magicfab)

 

Some time back I posted on dnsmasq starting from Network Manager and how to setup dnsmasq.

 

Now, couple of days back , I setup dnsmasq in NetworkManager but was astonished to see that there was no dnsmasq running. I checked with dig and saw that there was no response from localhost for dns queries. Checked “ps -eaf|grep dns” and found that there was no dnsmasq running. I knew that once you mention “dns=dnsmasq” in the NetworkManager then it should start up but that was not happening. And then I checked audit log, found that some permissions were denied by SELinux.

Continue reading

dnsmasq – use with Network Manager.

2013-01-28 2 min read Fedora Learning Linux
Niles Machine Company
Niles Machine Company (Photo credits: roadtrafficsigns.com)

 

Well if you have not heard about dnsmasq:

 

Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server.
It is designed to provide DNS and, optionally, DHCP, to a small network.
It can serve the names of local machines which are not in the global
DNS. The DHCP server integrates with the DNS server and allows machines
with DHCP-allocated addresses to appear in the DNS with names configured
either in each host or in a central configuration file. Dnsmasq supports
static and dynamic DHCP leases and BOOTP for network booting of diskless
machines.

Continue reading

2010-06-25 4 min read Linux

Note: I am using this and definately this is a big improvement over the previous versions. Here is the blog from gnome blog:

After more than a year of heavy development, <a class="zem_slink freebase/en/networkmanager" title="NetworkManager" rel="homepage" href="http://www.gnome.org/projects/NetworkManager">NetworkManager 0.8 was unleashed on the world a few weeks ago.  While we obviously couldn’t make everyone happy just yet, this release includes a ton of great stuff.  Much of it is under the hood, so while it won’t dazzle you in a blinding flash of light, it should still make your head explode.

Continue reading