I get this error when after I clicked Add to add this VPN to my system, Can anyone elebrate what this means.
exception 'clearos\apps\base\Engine_Exception' with message '002 loading secrets from "/etc/ipsec.secrets"' in /usr/clearos/apps/base/libraries/Shell.php:227 Stack trace: #0 /usr/clearos/apps/static_vpn_basic/libraries/Openswan.php(368): clearos\apps\base\Shell->execute('/usr/sbin/ipsec', 'auto --rereadse...', true, Array) #1 /usr/clearos/apps/static_vpn_basic/controllers/static_vpn_basic.php(272): clearos\apps\static_vpn_basic\Openswan->reload('Kacie', false) #2 /usr/clearos/apps/static_vpn_basic/controllers/static_vpn_basic.php(89): Static_Vpn_Basic->_common('Kacie', 'edit') #3 [internal function]: Static_Vpn_Basic->edit('Kacie') #4 /usr/clearos/framework/system/core/CodeIgniter.php(535): call_user_func_array(Array, Array) #5 /usr/clearos/framework/htdocs/app/index.php(224): require_once('/usr/clearos/fr...') #6 {main}
exception 'clearos\apps\base\Engine_Exception' with message '002 loading secrets from "/etc/ipsec.secrets"' in /usr/clearos/apps/base/libraries/Shell.php:227 Stack trace: #0 /usr/clearos/apps/static_vpn_basic/libraries/Openswan.php(368): clearos\apps\base\Shell->execute('/usr/sbin/ipsec', 'auto --rereadse...', true, Array) #1 /usr/clearos/apps/static_vpn_basic/controllers/static_vpn_basic.php(272): clearos\apps\static_vpn_basic\Openswan->reload('Kacie', false) #2 /usr/clearos/apps/static_vpn_basic/controllers/static_vpn_basic.php(89): Static_Vpn_Basic->_common('Kacie', 'edit') #3 [internal function]: Static_Vpn_Basic->edit('Kacie') #4 /usr/clearos/framework/system/core/CodeIgniter.php(535): call_user_func_array(Array, Array) #5 /usr/clearos/framework/htdocs/app/index.php(224): require_once('/usr/clearos/fr...') #6 {main}
Share this post:
Responses (1)
-
Accepted Answer
Unfortunately the interface is a bit sensitive to changes and could do with a developer review. Under certain conditions it can write an invalid configuration file which causes libreswan to fail and refuse to start. The webconfig needs libreswan to run to work.
The simple fix is quite easy. Go into /etc/ipsec.d/ and delete the relevant ipsec.unmanaged.XXX.conf and .secrets files and start define the VPN again.
Before doing this you can try the following:
In the .conf file there only the first line should start "conn". Delete other lines starting "conn". Also delete any blank lines. The second line onwards should all be indented.
In the .secrets file, if the first character is a blank, remove it.
Then see if ipsec will start with a "systemctl start ipsec.service"
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »