美文网首页
openvpn客户端启动报错

openvpn客户端启动报错

作者: 晨曦_zdq | 来源:发表于2021-09-02 12:16 被阅读0次
    https://github.com/izombielandgit/OpenVPN-HOWTO/blob/master/2.%20%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E8%AF%B4%E6%98%8E.md
    

    修改启动文件:将%i.conf 改为实际文件名称

    [root@monitor03 openvpn]# cat /usr/lib/systemd/system/openvpn-client@.service 
    [Unit]
    Description=OpenVPN tunnel for %I
    After=syslog.target network-online.target
    Wants=network-online.target
    Documentation=man:openvpn(8)
    Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
    Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
    
    [Service]
    Type=notify
    PrivateTmp=true
    WorkingDirectory=/etc/openvpn/client
    ExecStart=/usr/sbin/openvpn --suppress-timestamps --nobind --config %i.conf
    CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE
    LimitNPROC=10
    DeviceAllow=/dev/null rw
    DeviceAllow=/dev/net/tun rw
    ProtectSystem=true
    ProtectHome=true
    KillMode=process
    
    [Install]
    WantedBy=multi-user.target
    

    相关文章

      网友评论

          本文标题:openvpn客户端启动报错

          本文链接:https://www.haomeiwen.com/subject/slgqwltx.html