×

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

hqy hqy 发表于2024-01-23 23:12:32 浏览620 评论0

抢沙发发表评论

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


解决办法:


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://hqyman.cn/post/4877.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:
打赏