Is the remote VPN server passing the netmask down to the client? vpnc
should export the netmask in the environment of the handler it runs
after connecting, in the INTERNAL_IP4_NETMASK variable.
NetworkManager-vpnc looks for that, and if its found, it will use that
value. So it could be a misconfiguration of your vpn concentrator.
If that value is *not* present, NM will default to a /24, which could be
what's happening here. That may be wrong, yes. But first lets verify
what the VPN client is returning. One way to do this is to
move /usr/libexec/nm-vpnc-service-vpnc-helper
to /usr/libexec/nm-vpnc-service-vpnc-helper.ORIG, then put a small
wrapper script at /usr/libexec/nm-vpnc-service-vpnc-helper that contains
something like:
#!/bin/sh
env> /tmp/vpn-env
/usr/libexec/nm-vpnc-service-vpnc-helper.ORIG $@
and make that script executable, then connect. That should dump the
environment to the file /tmp/vpn-env which will allow us to figure this
out.
Dan