using System.Collections.Generic;
using Netch.Models;
namespace Netch.ServerEx.ShadowsocksR
{
public class ShadowsocksR : Server
{
///
/// 加密方式
///
public string EncryptMethod { get; set; } = SSRGlobal.EncryptMethods[0];
///
/// 混淆
///
public string OBFS { get; set; } = SSRGlobal.OBFSs[0];
///
/// 混淆参数
///
public string OBFSParam { get; set; }
///
/// 密码
///
public string Password { get; set; }
///
/// 协议
///
public string Protocol { get; set; } = SSRGlobal.Protocols[0];
///
/// 协议参数
///
public string ProtocolParam { get; set; }
public ShadowsocksR()
{
Type = "SSR";
}
}
public class SSRGlobal
{
///
/// SSR 协议列表
///
public static readonly List Protocols = new List
{
"origin",
"verify_deflate",
"auth_sha1_v4",
"auth_aes128_md5",
"auth_aes128_sha1",
"auth_chain_a"
};
///
/// SSR 混淆列表
///
public static readonly List OBFSs = new List
{
"plain",
"http_simple",
"http_post",
"tls1.2_ticket_auth"
};
///
/// SS/SSR 加密方式
///
public static readonly List EncryptMethods = new List
{
"none",
"table",
"rc4",
"rc4-md5",
"rc4-md5-6",
"aes-128-cfb",
"aes-192-cfb",
"aes-256-cfb",
"aes-128-ctr",
"aes-192-ctr",
"aes-256-ctr",
"bf-cfb",
"camellia-128-cfb",
"camellia-192-cfb",
"camellia-256-cfb",
"cast5-cfb",
"des-cfb",
"idea-cfb",
"rc2-cfb",
"seed-cfb",
"salsa20",
"chacha20",
"chacha20-ietf"
};
}
}