• ipsec安装好后运行ipsec verify命令发现错误的解决方案


    Checking your system to see if IPsec got installed and started correctly:
    Version check and ipsec on-path [OK]
    Linux Openswan U2.6.33/K3.0.18-x86_64-linode24 (netkey)
    Checking for IPsec support in kernel [OK]
    SAref kernel support [N/A]
    NETKEY: Testing XFRM related proc values [OK]
    [OK]
    [OK]
    Checking that pluto is running [OK]
    Pluto listening for IKE on udp 500 [OK]
    Pluto listening for NAT-T on udp 4500 [OK]
    Two or more interfaces found, checking IP forwarding [OK]
    Checking NAT and MASQUERADEing
    Checking for 'ip' command [OK]
    Checking /bin/sh is not /bin/dash [OK]
    Checking for 'iptables' command [OK]
    Opportunistic Encryption Support [DISABLED]

    这样的状态就是正常的了、已经通过了验证

    ==========================================

    如果迩发现这行是WARNING的话

    Checking /bin/sh is not /bin/dash                               [WARNING]

    因为ubtuntu和debian系统已经使用dash来代替bash脚本执行器、虽然dash更快更方便、但在某些脚本兼容性上还是不太稳定、莪们可以将ubuntu默认的脚本执行方式改回bash来执行、执行以下命令

    sudo dpkg-reconfigure dash

    按英文提示、选择no、就可以把dash切换成bash、再执行ipsec verify就不会出现WARNING的提示了

    =========================================

    Pluto listening for IKE on udp 500                              [FAILED]
    Cannot execute command "lsof -i UDP:500": No such file or directory
    Pluto listening for NAT-T on udp 4500 [FAILED]
    Cannot execute command "lsof -i UDP:4500": No such file or directory

    如果出现以上的问题、就是没安装lsof的命令啦、安装就可以了

    apt-get install lsof




  • 相关阅读:
    装饰器 、迭代器,json,pickle,hash
    装饰器知识
    python 编码问题处理
    大数据组件服务的启动与关闭命令
    网站数据统计分析之一:日志收集原理及其实现
    style资源搜索
    分享5个超实用的办公资源网站,错过就可惜了!
    资源搜索
    七大顶级资源
    hive工具bin下的schematool的作用
  • 原文地址:https://www.cnblogs.com/klobohyz/p/2337775.html
Copyright © 2020-2023  润新知