def start_REMOTE_PROXY_SERVER():
    global port_REMOTE_PROXY_SERVER

    configuration = \
    {
        "PROXY_SERVERS": [],
        "REMOTE_PROXY_SERVER":
        {
            "TYPE": "SSL",
            "ADDRESS": "45.78.37.246", #主机的ip, local proxy 连接这个地址
            "PORT": 9998,           #本地proxy链接使用的端口,自定义
            "CERTIFICATE":
            {
                "FILE": "C.pem",  #ssl_ca_generate.py 生成的证书
                "KEY":
                {
                    "FILE": "CK.pem" #ssl_ca_generate.py 生成的证书
                }
            },
            "ACCOUNTS":
            [
                {
                    "NAME": "lzz",     #local proxy 使用的用户名密码,自定义
                    "PASSWORD": "******"
                }
            ]
        }
    }

    port_REMOTE_PROXY_SERVER = remote_proxy_server.createPort(configuration)
    port_REMOTE_PROXY_SERVER.startListening()
Exemple #2
0
def start_REMOTE_PROXY_SERVER():
    global port_REMOTE_PROXY_SERVER

    configuration = \
    {
        "PROXY_SERVERS": [],
        "REMOTE_PROXY_SERVER":
        {
            "TYPE": "WSS",
            "ADDRESS": "127.0.0.1",
            "PORT": 8443,
            "CERTIFICATE":
            {
                "FILE": "files/SSL/C.pem",
                "KEY":
                {
                    "FILE": "files/SSL/CK.pem"
                }
            },
            "ACCOUNTS":
            [
                {
                    "NAME": "1",
                    "PASSWORD": "******"
                }
            ]
        }
    }

    port_REMOTE_PROXY_SERVER = remote_proxy_server.createPort(configuration)
    port_REMOTE_PROXY_SERVER.startListening()
def start_REMOTE_PROXY_SERVER():
    global port_REMOTE_PROXY_SERVER

    configuration = \
    {
        "PROXY_SERVERS": [],
        "REMOTE_PROXY_SERVER":
        {
            "TYPE": "SSL",
            "ADDRESS": "45.78.37.246", #主机的ip, local proxy 连接这个地址
            "PORT": 9998,           #本地proxy链接使用的端口,自定义
            "CERTIFICATE":
            {
                "FILE": "C.pem",  #ssl_ca_generate.py 生成的证书
                "KEY":
                {
                    "FILE": "CK.pem" #ssl_ca_generate.py 生成的证书
                }
            },
            "ACCOUNTS":
            [
                {
                    "NAME": "lzz",     #local proxy 使用的用户名密码,自定义
                    "PASSWORD": "******"
                }
            ]
        }
    }

    port_REMOTE_PROXY_SERVER = remote_proxy_server.createPort(configuration)
    port_REMOTE_PROXY_SERVER.startListening()
Exemple #4
0
def start_REMOTE_PROXY_SERVER():
    global port_REMOTE_PROXY_SERVER
    
    configuration = \
    {
        "PROXY_SERVERS": [],
        "REMOTE_PROXY_SERVER":
        {
            "TYPE": "SSL",
            "ADDRESS": "127.0.0.1",
            "PORT": 8443,
            "CERTIFICATE":
            {
                "FILE": "files/SSL/C.pem",
                "KEY":
                {
                    "FILE": "files/SSL/CK.pem"
                }
            },
            "ACCOUNTS":
            [
                {
                    "NAME": "1",
                    "PASSWORD": "******"
                }
            ]
        }
    }
    
    port_REMOTE_PROXY_SERVER = remote_proxy_server.createPort(configuration)
    port_REMOTE_PROXY_SERVER.startListening()
Exemple #5
0
def start_REMOTE_PROXY_SERVER():
    global port_REMOTE_PROXY_SERVER
    
    configuration = \
    {
        "PROXY_SERVERS": [],
        "REMOTE_PROXY_SERVER":
        {
            "TYPE": "SSH",
            "ADDRESS": "127.0.0.1",
            "PORT": 8022,
            "KEY":
            {
                "PUBLIC":
                {
                    "FILE": "files/SSH/KP.pem",
                    "PASSPHRASE": ""
                },
                "PRIVATE":
                {
                    "FILE": "files/SSH/KP.pem",
                    "PASSPHRASE": ""
                }
            },
            "ACCOUNTS":
            [
                {
                    "NAME": "1",
                    "PASSWORD": "******",
                    "KEYS":
                    [
                        {
                            "PUBLIC":
                            {
                                "FILE": "files/SSH/KP.pem",
                                "PASSPHRASE": ""
                            }
                        }
                    ],
                    "CONNECTIONS": 2
                }
            ]
        }
    }
    
    port_REMOTE_PROXY_SERVER = remote_proxy_server.createPort(configuration)
    port_REMOTE_PROXY_SERVER.startListening()
Exemple #6
0
def start_REMOTE_PROXY_SERVER():
    global port_REMOTE_PROXY_SERVER

    configuration = \
    {
        "PROXY_SERVERS": [],
        "REMOTE_PROXY_SERVER":
        {
            "TYPE": "SSH",
            "ADDRESS": "127.0.0.1",
            "PORT": 8022,
            "KEY":
            {
                "PUBLIC":
                {
                    "FILE": "files/SSH/KP.pem",
                    "PASSPHRASE": ""
                },
                "PRIVATE":
                {
                    "FILE": "files/SSH/KP.pem",
                    "PASSPHRASE": ""
                }
            },
            "ACCOUNTS":
            [
                {
                    "NAME": "1",
                    "PASSWORD": "******",
                    "KEYS":
                    [
                        {
                            "PUBLIC":
                            {
                                "FILE": "files/SSH/KP.pem",
                                "PASSPHRASE": ""
                            }
                        }
                    ],
                    "CONNECTIONS": 2
                }
            ]
        }
    }

    port_REMOTE_PROXY_SERVER = remote_proxy_server.createPort(configuration)
    port_REMOTE_PROXY_SERVER.startListening()