Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to know how to establish VPN connection with Cisco VPN using vpnc on Centos 5.6. I can start the connection but after a period of time the vpnc process doesn't exist in the process list when run

# pgrep vpnc

I don't know is that because the connection itself goes down or what?...if so, then how can I make the connection permanent?

The configuration file looks like this

## generated by pcf2vpnc
IPSec ID xxxx
IPSec gateway xx.xx.xx.xx
IPSec secret xxxxx
Xauth username xxxxxx
Xauth password xxxxxx

I tried the solution in this article here but that didn't solve the problem!

Any one can help me regarding this?

Thanks in advance,

share|improve this question

1 Answer 1

Not specifically related to vpnc but, I'll offer what I can think of...

Typically, client VPN connections go down because there is a period of inactivity across the tunnel. The easiest way to overcome that is to keep a ping -t to a known device at the other end of the tunnel.

Otherwise, if your vpnc process is going down, it may be because the VPN endpoint is overloaded, either endpoint is sending packets that the other endpoint believes to be invalid and so has torn it down, or vpnc is ostensibly broken. See if anythin is mentioned in its associated log files.

It should be noted that, as I understand it vpnc is a client tool, not a service/daemon. It might be more appropriate to use a more service-oriented tool for your endpoint (or even a cheap hardware site-to-site gateway/firewall/router). Not sure what software-based solutions might do this.

The remaining alternative is to script/code your processes so that they check for the existence of the target server address and/or vpnc process and start vpnc if not found, before each unit of work.

But, really, a hardware device should be used for permanent connections. You can pick up a basic Linksys/Netgear/D-Link/etc device that can talk the basic protocols cheaply enough.

share|improve this answer
    
Some googling suggests OpenSwan for a more daemon-based site-to-site IPSec tunnel -- houseoflinux.com/vpn/vpn-site-to-site-openswan-x-asa-cisco ? –  jimbobmcgee Jan 23 '13 at 12:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.