felixlu / jap

Automatically exported from code.google.com/p/jap
0 stars 0 forks source link

JAP_REMOTE_WS_NODE_MODULUS #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi

I deployed "JAP_REMOTE_WS_NODE_MODULUS-2.0.0" and configured 
"JAP_REMOTE_WS.json" as:
{
    "LOGGER":
    {
        "LEVEL": "DEBUG"
    },
    "REMOTE_PROXY_SERVER":
    {
        "TYPE": "HTTP",
        "PORT": 8080,
        "AUTHENTICATION":
        [
            {
                "USERNAME": "",
                "PASSWORD": ""
            }
        ]
    }
}

and " JAP_LOCAL_WS.json" as:

{
    "LOGGER":
    {
        "LEVEL": "DEBUG"
    },
    "LOCAL_PROXY_SERVER":
    {
        "ADDRESS": "127.0.0.1",
        "PORT": 1080
    },
    "REMOTE_PROXY_SERVERS":
    [
        {
            "TYPE": "HTTP",
            "ADDRESS": "xxx-yyy.onmodulus.net",
            "PORT": 8080,
            "AUTHENTICATION":
            {
                "USERNAME": "",
                "PASSWORD": ""
            },
            "CERTIFICATE":
            {
                "AUTHENTICATION":
                {
                    "FILE": ""
                }
            }
        }
    ],

but when i run "JAP_LOCAL_WS.bat" and enter address of a site in my browser, 
nothing happens (no data transfer). 
I have attached screenshots of the cmd window.

Original issue reported on code.google.com by zxhpnr9...@gmail.com on 7 Jun 2013 at 9:42

Attachments:

GoogleCodeExporter commented 8 years ago
Try:

JAP_REMOTE_WS.json:
{
    "LOGGER":
    {
        "LEVEL": "DEBUG"
    },
    "REMOTE_PROXY_SERVER":
    {
        "TYPE": "HTTP",
        "AUTHENTICATION":
        [
            {
                "USERNAME": "",
                "PASSWORD": ""
            }
        ]
    }
}

JAP_LOCAL_WS.json:
{
    "LOGGER":
    {
        "LEVEL": "DEBUG"
    },
    "LOCAL_PROXY_SERVER":
    {
        "ADDRESS": "127.0.0.1",
        "PORT": 1080
    },
    "REMOTE_PROXY_SERVERS":
    [
        {
            "TYPE": "HTTP",
            "ADDRESS": "xxx-yyy.onmodulus.net",
            "PORT": 80,
            "AUTHENTICATION":
            {
                "USERNAME": "",
                "PASSWORD": ""
            },
            "CERTIFICATE":
            {
                "AUTHENTICATION":
                {
                    "FILE": ""
                }
            }
        }
    ],
    "PROXY_SERVER":
    {
        "ADDRESS": "",
        "PORT": 0,
        "AUTHENTICATION":
        {
            "USERNAME": "",
            "PASSWORD": ""
        }
    }
}

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 9:52

GoogleCodeExporter commented 8 years ago
You should use HTTPS (HTTP uses port 80, HTTPS uses port 443).
You should also use a USERNAME and PASSWORD.

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 9:54

GoogleCodeExporter commented 8 years ago
I try:

JAP_REMOTE_WS.json:
{
    "LOGGER":
    {
        "LEVEL": "DEBUG"
    },
    "REMOTE_PROXY_SERVER":
    {
        "TYPE": "HTTPS",
        "AUTHENTICATION":
        [
            {
                "USERNAME": "1",
                "PASSWORD": "1"
            }
        ]
    }
}

JAP_LOCAL_WS.json:
{
    "LOGGER":
    {
        "LEVEL": "DEBUG"
    },
    "LOCAL_PROXY_SERVER":
    {
        "ADDRESS": "127.0.0.1",
        "PORT": 1080
    },
    "REMOTE_PROXY_SERVERS":
    [
        {
            "TYPE": "HTTPS",
            "ADDRESS": "xxx-yyy.onmodulus.net",
            "PORT": 443,
            "AUTHENTICATION":
            {
                "USERNAME": "1",
                "PASSWORD": "1"
            },
            "CERTIFICATE":
            {
                "AUTHENTICATION":
                {
                    "FILE": ""
                }
            }
        }
    ],
    "PROXY_SERVER":
    {
        "ADDRESS": "",
        "PORT": 0,
        "AUTHENTICATION":
        {
            "USERNAME": "",
            "PASSWORD": ""
        }
    }
}

but doesn't work.

Original comment by zxhpnr9...@gmail.com on 7 Jun 2013 at 12:42

GoogleCodeExporter commented 8 years ago
REMOTE_PROXY_SERVERS.ADDRESS should be your application address, not 
"xxx-yyy.onmodulus.net".

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 12:46

GoogleCodeExporter commented 8 years ago
You mean that i enter ip number of my application or what?

Original comment by zxhpnr9...@gmail.com on 7 Jun 2013 at 12:59

GoogleCodeExporter commented 8 years ago
No, the project URL (see attachment).

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 1:10

Attachments:

GoogleCodeExporter commented 8 years ago
I entered that URL

Original comment by zxhpnr9...@gmail.com on 7 Jun 2013 at 1:15

GoogleCodeExporter commented 8 years ago
You entered your project URL?
What is your project URL?

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 1:21

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have tested your configuration without any problems.
You have configured your browsers proxy settings (SOCKS5)?
Can you attach your console output?

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 1:43

GoogleCodeExporter commented 8 years ago
In SOCKS I write 127.0.0.1:1080 (Internet Explorer)

Original comment by zxhpnr9...@gmail.com on 7 Jun 2013 at 1:53

GoogleCodeExporter commented 8 years ago
Can you test with FIREFOX? http://code.google.com/p/jap/wiki/CONFIGURE_BROWSER

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 1:57

GoogleCodeExporter commented 8 years ago
Test with a non blocked URL in your browser (http://www.google.com).

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 2:04

GoogleCodeExporter commented 8 years ago
It works with firefox, but when i want to download a file, it
disconnect in middle.

Original comment by zxhpnr9...@gmail.com on 7 Jun 2013 at 2:25

GoogleCodeExporter commented 8 years ago
For example,I tried to download a file with size 5 mb, but it
disconnect in 1 mb (and it displays that the download is complete)

Original comment by zxhpnr9...@gmail.com on 7 Jun 2013 at 2:44

GoogleCodeExporter commented 8 years ago
Can you open blocked and non blocked URLs in your browser?
Do all downloads have problems?
Can you download without JAP without problems?
Can I reproduce the problem? What steps do I need to take?
Can you attach your MODULUS logs?

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 3:59

GoogleCodeExporter commented 8 years ago
Also you have to configure FIREFOX to do DNS lookups on the SOCKS5 proxy server 
(JAP).
In FIREFOX:
- open about:config
- set network.proxy.socks_remote_dns to true

http://kb.mozillazine.org/Network.proxy.socks_remote_dns

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 4:10

GoogleCodeExporter commented 8 years ago
I can open blocked and non blocked URLs in Firefox only.
all downloads are incomplete.
I can download without JAP without problems.
I tried to download 5.9mb, but disconnected after 1.1mb
I have attached MODULUS logs.

Original comment by zxhpnr9...@gmail.com on 7 Jun 2013 at 4:39

GoogleCodeExporter commented 8 years ago
I changed network.proxy.socks_remote_dns to true, but the download was
incomplete again.

Original comment by zxhpnr9...@gmail.com on 7 Jun 2013 at 4:49

GoogleCodeExporter commented 8 years ago
I have reproduced the problem, but I do not have a solution for the problem.
I will keep you updated.

Thanks for your help!

Original comment by jeroen.v...@gmail.com on 7 Jun 2013 at 7:14

GoogleCodeExporter commented 8 years ago
I really appreciate your consideration and your help. Thank you very much.

Original comment by zxhpnr9...@gmail.com on 8 Jun 2013 at 9:04

GoogleCodeExporter commented 8 years ago
Can you test attached JAP_REMOTE_WS_NODE_MODULUS-2.0.0-TEST?

Original comment by jeroen.v...@gmail.com on 9 Jun 2013 at 12:05

Attachments:

GoogleCodeExporter commented 8 years ago
First, thank for your consideration.
Second, i tested it, and didn't work (it disconnected in middle of the download)
I have attached MODULUS logs.

Original comment by zxhpnr9...@gmail.com on 9 Jun 2013 at 3:27