LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   StrongSwan - Initializing iptables failed (https://www.linuxquestions.org/questions/linux-server-73/strongswan-initializing-iptables-failed-4175636521/)

StrongSwanQuestion180816 08-16-2018 05:20 PM

StrongSwan - Initializing iptables failed
 
Hello all,

I am trying to set up a VPN using StrongSwan and Xl2tpd,
now when the client connects to the server, the server fails at initializing iptables.

The exact error message is:
initializing iptables failed: Permission denied (you must be root)

The software versioning information:
- StrongSwan 5.5.1/K4.9.0-5-amd64
- xl2tpd 1.3.8

StrongSwan is setup to use PSK for authentication

scasey 08-17-2018 12:27 PM

Code:

(you must be root)
^^ That seems pretty clear...

StrongSwanQuestion180816 08-18-2018 07:50 AM

I installed StrongSwan from debian repo,
So unless debian messed with the configuration parameters to have the kernel module
run as something other than user root & group root, which is what the StrongSwan documentation
says it'll default to if not set in the configuration, then I whouldn't be getting that error.
Neither one of those values are set in the configuration, and even when they
were explicitly set to root, I still got the same error message.


All times are GMT -5. The time now is 10:30 PM.