Fix some wrong escapeshellarg() calls
Add escapeshellarg() calls on exec parameters. While I'm here, replace some exec() calls by php functions like symlink, copy, unlink, mkdir
Add {} between variables inside quotes
Prepend ipsec_ here as well for better protection
Correct even here the routes from cisco-avpair processing
Use the pid of the process for the tmp file
Allow other system authentication types to be used with ipsec. LDAP/RADIUS/local acc