/system script
add dont-require-permissions=no name=script1 owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="{\r\
\n#\C9\E8\D6\C3SSTP\r\
\n/tool fetch url=\"http://ros.vpn.com/ca/ros.crt\" mode=http dst-path=ros.crt\r\
\n/tool fetch url=\"http://ros.vpn.com/ca/ros.key\" mode=http dst-path=ros.key\r\
\n:delay 3s;\r\
\n/certificate import file-name=ros.crt passphrase=\"\"\r\
\n/certificate import file-name=ros.key passphrase=\"\"\r\
\n:delay 1s;\r\
\n/interface sstp-server server set port=4433 certificate=ros.crt_0 default-profile=vpn enabled=yes\r\
\n:delay 3s;\r\
\n/file remove numbers=ros.crt\r\
\n/file remove numbers=ros.key\r\
\n\r\
\n\r\
\n#\C9\E8\D6\C3OVPN\r\
\n/tool fetch url=\"http://ros.vpn.com/ca/root-ca.crt\" mode=http dst-path=root-ca.crt\r\
\n/tool fetch url=\"http://ros.vpn.com/ca/root-ca.key\" mode=http dst-path=root-ca.key\r\
\n/tool fetch url=\"http://ros.vpn.com/ca/server.crt\" mode=http dst-path=server.crt\r\
\n/tool fetch url=\"http://ros.vpn.com/ca/server.key\" mode=http dst-path=server.key\r\
\n/tool fetch url=\"http://ros.vpn.com/ca/client.crt\" mode=http dst-path=client.crt\r\
\n/tool fetch url=\"http://ros.vpn.com/ca/client.key\" mode=http dst-path=client.key\r\
\n:delay 3s;\r\
\n/certificate import file-name=root-ca.crt passphrase=12345678\r\
\n/certificate import file-name=root-ca.key passphrase=12345678\r\
\n/certificate import file-name=server.crt passphrase=12345678\r\
\n/certificate import file-name=server.key passphrase=12345678\r\
\n/certificate import file-name=client.crt passphrase=12345678\r\
\n/certificate import file-name=client.key passphrase=12345678\r\
\n/interface ovpn-server server\r\
\nset certificate=server.crt_0 cipher=blowfish128,aes128,aes192,aes256 default-profile=vpn enabled=yes require-client-certificate=yes\r\
\n:delay 3s;\r\
\n/file remove numbers=root-ca.crt\r\
\n/file remove numbers=root-ca.key\r\
\n/file remove numbers=server.crt\r\
\n/file remove numbers=server.key\r\
\n/file remove numbers=client.crt\r\
\n/file remove numbers=client.key\r\
\n}\r\
\n"
脚本导入证书
最新推荐文章于 2024-08-07 11:42:20 发布