You are not logged in.

#1 2017-12-22 18:51:37

mathieu_auclair
Member
Registered: 2017-12-22
Posts: 2

[solved] ipsec problem with python

Hello, I've been trying to setup a l2tp vpn connection for my computer, and while following the guide, I felt on a python error on line 84
link to the guide : (https://wiki.archlinux.org/index.php/Op … ient_setup)

```
$ ipsec verify                           
  File "/usr/local/libexec/ipsec/verify", line 84
    print "\t[%s%s%s]"%(FAIL,rtext,ENDC)
                     ^
SyntaxError: invalid syntax
```

OpenSwan service is up and running, and I've checked in /etc/ipsec.conf and /etc/ipsec.d/ to check if there was anything wrong and it does not look like it,
does anyone have an idea of what I could use for a work around

If you need command output just ask!
Thanks for reading

Last edited by mathieu_auclair (2017-12-22 19:11:00)

Offline

#2 2017-12-22 19:12:37

mathieu_auclair
Member
Registered: 2017-12-22
Posts: 2

Re: [solved] ipsec problem with python

Changed shebang for python2 since arch is under python3 by default!
sudo vim /usr/local/libexec/ipsec/verify

#!/usr/bin/python2

instead of

#!/usr/bin/python

Offline

Board footer

Powered by FluxBB