Re: dhcp client overwriting vpnc resolv.conf



>>>>> Dan Williams <dcbw redhat com>:

> vpnc certainly isn't NM/dbus aware out of the box.  You need to use
> the NM vpnc VPN plugin, and then stuff will just work.  Are you
> currently using vpnc from the command line?

No, I'm using the network manager vpnc plugin from linux2go, together
with network manager packages from the same place:
	network-manager-gnome 0.6.2-0ubuntu7linux2go2
	network-manager 0.6.2-0ubuntu7linux2go2
	network-manager-vpnc 0.6.2-0ubuntu0linux2go1

The network-manager-vpnc package, depends on the vpnc package, which
is fetched from regular ubuntu, I believe:
	vpnc 0.3.3+SVN20051028-2ubuntu1

The dhcp client, is the ISC dhcp client v3, fetched from a ubuntu
package, and compiled to be dbus aware.

I ran dbus-monitor --system as root, opened a VPNC session using the
nm-applet, waited until the dhcp client had overwritten
/etc/resolv.conf, and then terminated the VPNC session using
nm-applet.  As far as I could tell, both were speaking to dbus, but
the /etc/resolv.conf was still overwritten.

Note! I do _not_ at this stage have a local DNS server on the laptop
in question, and from your first comment I figured that was a must for
the resolv.conf file not to be overwritten...?

The results, in a slightly anonymized version, follows:

root MYCOMPUTER:~# dbus-monitor --system
signal sender=org.freedesktop.DBus -> dest=:1.304 interface=org.freedesktop.DBus; member=NameAcquired
 string ":1.304"
signal sender=:1.11 -> dest=(null destination) interface=org.freedesktop.NetworkManagerInfo; member=UserInterfaceActivated
signal sender=:1.11 -> dest=(null destination) interface=org.freedesktop.NetworkManagerInfo; member=UserInterfaceActivated
signal sender=:1.198 -> dest=(null destination) interface=org.freedesktop.NetworkManager.VPNConnections; member=VPNConnectionStateChange
 string "SOMECOMPANY Somecity"
uint32 3
signal sender=:1.256 -> dest=(null destination) interface=org.freedesktop.NetworkManager.vpnc; member=StateChange
 uint32 6
uint32 3
signal sender=:1.198 -> dest=(null destination) interface=org.freedesktop.NetworkManager.VPNConnections; member=VPNConnectionStateChange
 string "SOMECOMPANY Somecity"
uint32 4
signal sender=org.freedesktop.DBus -> dest=(null destination) interface=org.freedesktop.DBus; member=NameOwnerChanged
 string ":1.305"
string ""
string ":1.305"
signal sender=org.freedesktop.DBus -> dest=(null destination) interface=org.freedesktop.DBus; member=NameOwnerChanged
 string ":1.305"
string ":1.305"
string ""
signal sender=org.freedesktop.DBus -> dest=(null destination) interface=org.freedesktop.DBus; member=NameOwnerChanged
 string ":1.306"
string ""
string ":1.306"
signal sender=org.freedesktop.DBus -> dest=(null destination) interface=org.freedesktop.DBus; member=NameOwnerChanged
 string ":1.306"
string ":1.306"
string ""
signal sender=:1.256 -> dest=(null destination) interface=org.freedesktop.NetworkManager.vpnc; member=IP4Config
 uint32 143225150
string "tun0"
uint32 1108388032
uint32 1108388032
uint32 4294967295
[uint32 1090562240
uint32 1107339456
][uint32 1090562240
uint32 1107339456
]string "domain.somecompany.com"
string "This is Somecompany intranet.
Access is limited to acceptable business use only.

For help pls contact help somecompany com
"
signal sender=:1.256 -> dest=(null destination) interface=org.freedesktop.NetworkManager.vpnc; member=StateChange
 uint32 3
uint32 4
signal sender=:1.198 -> dest=(null destination) interface=org.freedesktop.NetworkManager.VPNConnections; member=LoginBanner
 string "SOMECOMPANY Somecity"
string "This is Somecompany intranet.
Access is limited to acceptable business use only.

For help pls contact help somecompany com
"
signal sender=:1.198 -> dest=(null destination) interface=org.freedesktop.NetworkManager.VPNConnections; member=VPNConnectionStateChange
 string "SOMECOMPANY Somecity"
uint32 5
signal sender=org.freedesktop.DBus -> dest=(null destination) interface=org.freedesktop.DBus; member=NameOwnerChanged
 string ":1.307"
string ""
string ":1.307"
signal sender=:1.1 -> dest=(null destination) interface=com.redhat.dhcp.state; member=eth0
 byte 3
signal sender=org.freedesktop.DBus -> dest=(null destination) interface=org.freedesktop.DBus; member=NameOwnerChanged
 string ":1.307"
string ":1.307"
string ""
signal sender=:1.11 -> dest=(null destination) interface=org.freedesktop.NetworkManagerInfo; member=UserInterfaceActivated
signal sender=:1.11 -> dest=(null destination) interface=org.freedesktop.NetworkManagerInfo; member=UserInterfaceActivated
signal sender=:1.198 -> dest=(null destination) interface=org.freedesktop.NetworkManager.VPNConnections; member=VPNConnectionStateChange
 string "SOMECOMPANY Somecity"
uint32 1
signal sender=:1.256 -> dest=(null destination) interface=org.freedesktop.NetworkManager.vpnc; member=StateChange
 uint32 4
uint32 5
signal sender=:1.256 -> dest=(null destination) interface=org.freedesktop.NetworkManager.vpnc; member=StateChange
 uint32 5
uint32 6
signal sender=org.freedesktop.DBus -> dest=(null destination) interface=org.freedesktop.DBus; member=NameOwnerChanged
 string ":1.308"
string ""
string ":1.308"
signal sender=org.freedesktop.DBus -> dest=(null destination) interface=org.freedesktop.DBus; member=NameOwnerChanged
 string ":1.308"
string ":1.308"
string ""






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]