ClearOS Feature Request
Exception message in IPsec VPN for Business module configuration
Good afternoon.
I installed the IPsec VPN for Business module and in the configuration I got the following message:
Ooooops: exception 'clearos\apps\base\Engine_Exception' with message '000 using kernel interface: netkey' in /usr/clearos/apps/base/libraries/Shell.php:227 Stack trace: #0 /usr/clearos/apps/static_vpn/libraries/Openswan.php(582): clearos\apps\base\Shell->execute('/usr/sbin/ipsec', 'auto --status', true, Array) #1 /usr/clearos/apps/static_vpn/controllers/report.php(73): clearos\apps\static_vpn\Openswan->get_tunnel_status() #2 /usr/clearos/framework/application/libraries/Page.php(641): Report->index() #3 /usr/clearos/framework/application/libraries/Page.php(504): Page->view_controllers(Array, 'Static IPsec VP...') #4 /usr/clearos/apps/static_vpn/controllers/static_vpn.php(76): Page->view_forms(Array, 'Static IPsec VP...') #5 [internal function]: Static_Vpn->index() #6 /usr/clearos/framework/system/core/CodeIgniter.php(535): call_user_func_array(Array, Array) #7 /usr/clearos/framework/htdocs/app/index.php(224): require_once('/usr/clearos/fr...') #8 {main}
I am very grateful if any of you can help me by indicating how I can correct this or what happened.
I installed the IPsec VPN for Business module and in the configuration I got the following message:
Ooooops: exception 'clearos\apps\base\Engine_Exception' with message '000 using kernel interface: netkey' in /usr/clearos/apps/base/libraries/Shell.php:227 Stack trace: #0 /usr/clearos/apps/static_vpn/libraries/Openswan.php(582): clearos\apps\base\Shell->execute('/usr/sbin/ipsec', 'auto --status', true, Array) #1 /usr/clearos/apps/static_vpn/controllers/report.php(73): clearos\apps\static_vpn\Openswan->get_tunnel_status() #2 /usr/clearos/framework/application/libraries/Page.php(641): Report->index() #3 /usr/clearos/framework/application/libraries/Page.php(504): Page->view_controllers(Array, 'Static IPsec VP...') #4 /usr/clearos/apps/static_vpn/controllers/static_vpn.php(76): Page->view_forms(Array, 'Static IPsec VP...') #5 [internal function]: Static_Vpn->index() #6 /usr/clearos/framework/system/core/CodeIgniter.php(535): call_user_func_array(Array, Array) #7 /usr/clearos/framework/htdocs/app/index.php(224): require_once('/usr/clearos/fr...') #8 {main}
I am very grateful if any of you can help me by indicating how I can correct this or what happened.
In ibVPN
Share this post:
Accepted Answer
Unfortunately the app is a bit sensitive to mis-configurations and to changing configurations. The easiest thing is to delete the conf and secrets files for the conn in /etc/ipsec.d/ and start again.
Before you do that, have a look in the .conf file and if there are any blank lines, remove them. Also there should be only one line starting "conn" at the top. Delete any others. Then try restarting ipsec with a:
Before you do that, have a look in the .conf file and if there are any blank lines, remove them. Also there should be only one line starting "conn" at the top. Delete any others. Then try restarting ipsec with a:
systemctl restart ipsec.service
If it starts, the webconfig should be OK, fingers crossed. 
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 »