[Swan] problem command "ipsec verify"

Jorge Sevillanos rsevillanos at gmail.com
Thu May 13 04:19:22 UTC 2021


Hi Bruno, something weird is happening.

Amazon Linux 2 by default comes with python2 & python3 installed and their
executables are  inside /usr/bin
[image: image.png]


If I execute "ipsec verify" inside this PATH: "/usr/bin" , ipsec command
works perfectly.
[image: image.png]
But if I execute  "ipsec verify" in another PATH that is not inside
"/usr/bin", the bad interpreter comes out:
[image: image.png]

Also check the path for command python and python2:
[image: image.png]

[image: image.png]

I also tried to install another version of LibreSwan, 3.32, 4.1 and 4.2,
Version 3.32 and 4.1 worked super but versions 4.2 and 4.4 have this issue.

How can this be fixed?

Regards,

Rodolfo





On Wed, May 12, 2021 at 7:08 PM Bruno <br.larini at gmail.com> wrote:

> If python 2.7 is installed, check if it exists in /usr/bin. On EL7 maybe
> it's named just 'python', so create a symbolic link to it named 'python2'.
>
>
> Em qua, 12 de mai de 2021 21:29, Jorge Sevillanos <rsevillanos at gmail.com>
> escreveu:
>
>> Hi Libreswan, just installed Amazon Linux 2 (fresh) from default ami,
>> nftables  nftables v0.9.0 (Fearless Fosdick) and libreswan  4.4-1.el7_9
>>
>> I downloaded rpm package form:
>> https://download.libreswan.org/binaries/rhel/7/x86_64/libreswan-4.4-1.el7_9.x86_64.rpm
>>
>> And installed package: yum install
>> https://download.libreswan.org/binaries/rhel/7/x86_64/libreswan-4.4-1.el7_9.x86_64.rpm
>>
>> I run the command "ipsec verify" and shows me the following:
>>
>> [root at ip-10-10-2-15 sysctl.d]# ipsec verify
>> /sbin/ipsec: /usr/libexec/ipsec/verify: python2: bad interpreter: No such
>> file or directory
>> /sbin/ipsec: line 565: /usr/libexec/ipsec/verify: Success
>>
>> Please help.
>>
>> Regards,
>>
>> Rodolfo Sevillanos
>> _______________________________________________
>> Swan mailing list
>> Swan at lists.libreswan.org
>> https://lists.libreswan.org/mailman/listinfo/swan
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20210512/3a1b6e9e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 17704 bytes
Desc: not available
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20210512/3a1b6e9e/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 9173 bytes
Desc: not available
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20210512/3a1b6e9e/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 30895 bytes
Desc: not available
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20210512/3a1b6e9e/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 4866 bytes
Desc: not available
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20210512/3a1b6e9e/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 11251 bytes
Desc: not available
URL: <https://lists.libreswan.org/pipermail/swan/attachments/20210512/3a1b6e9e/attachment-0009.png>


More information about the Swan mailing list