23
2024
01
23:12:32

strongSwan.conf报错syntax error, unexpected ., expecting : or '{' or '=' [.] 解决办法



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png

版本更新旧的配置文件失效


解决办法:


charon {

        load_modular=yes

        duplicheck.enable=no

        compress = yes

        plugins {

                include strongswan.d/charon/*.conf

        }

        dns1 = 8.8.8.8

        dns2 = 8.8.4.4

        nbns1 = 8.8.8.8

        nbns2 = 8.8.4.4

}

include strongswan.d/*.conf


改为


charon {

        load_modular=yes

        duplicheck{ #这里

                enable=no

        }

        compress = yes

        plugins {

                include strongswan.d/charon/*.conf

        }

        dns1 = 8.8.8.8

        dns2 = 8.8.4.4

        nbns1 = 8.8.8.8

        nbns2 = 8.8.4.4

}

include strongswan.d/*.conf

 



本文链接:https://www.hqyman.cn/post/4877.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: