VPNC for some reason keeps disconnecting me after a period of time. I've tried timing it to see how long it takes and it seems to be everytime after 24 minutes.
After being disconnected I have no internett connection as my /etc/resolv.conf is still the same as it should be when connect to vpnc. If I try vpnc-disconnect it only sais "no vpnc found running". I have to take eth0 dow and up, then manually edit the /etc/resolv.conf to get a proper network connection.
My settings are the following:
IPSec gateway xx.xx.xx.xx IPSec ID anonymized IPSec secret anonymized #IKE Authmode hybrid Xauth username myUsername DPD idle timeout (our side) 0
I also tried having a ping running continuously. I have streams and music playing continuously as well, but it still disconnects me.
This is working fine without disconnects on windows.
EDIT. More info: Ive added log from my /var/log/syslog of what happens when I am disconnected:
I connect first:
Jul 24 14:03:09 cad-unix NetworkManager: SCPlugin-Ifupdown: devices added path: /sys/devices/virtual/net/tun0, iface: tun0) Jul 24 14:03:09 cad-unix NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown configuration found.
Then I am disconnected after 24 minutes:
Jul 24 14:27:29 cad-unix avahi-daemon: Withdrawing workstation service for tun0. Jul 24 14:27:29 cad-unix NetworkManager: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/tun0, iface: tun0)
Edit: Tweaked the question a bit for better reading. Also now specifying that the problem happens at 24 minutes everytime.
Edit: Version Im running: vpnc version 0.5.3
Edit: After compiling version 0.5.1 I now recieve one more entry in the log file: vpnc: connection terminated by peer
Last edit I guess: Im desperate. Open for any suggestion. Even changing to another linux distro is an option if it is Ubuntu which is the problem.