TypeScript 接口继承的具体使用
288
2022-10-30
to openvpnadduser.sh
#!/bin/bash ip=`grep IPADDR /etc/sysconfig/network-scripts/ifcfg-eth0 | awk -F= '{print $2}'` read -p "Please Enter New Username:" user cd /etc/openvpn/easy-rsa/x.0/ . ./vars source ./vars ./build-key $user cd keys/ clienttcp=" client remote vpn.xxx.com dev tun proto tcp resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert $user.crt key $user.key ns-cert-type server comp-lzo route-delay 2 route-method exe verb 3" echo "$clienttcp" > $HOSTNAME.$user.tcp.ovpn tar czf $HOSTNAME.$user.tgz ca.crt ca.key $user.crt $user.csr $user.key $HOSTNAME.$user.tcp.ovpn mv $HOSTNAME.$user.tgz /root/CA echo "Download /root/$HOSTNAME.$user.tgz using winscp or other sftp/scp client Create a directory named vpn at C:\Program Files\Open×××\config\ and untar the content of $HOSTNAME.$user.tgz there"
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~