• Re: Port restore problem of reverse proxy after login.

    From =?UTF-8?B?T8SfdXo=?=@21:1/5 to hongy...@gmail.com on Sat Nov 6 00:56:41 2021
    On Saturday, November 6, 2021 at 10:28:46 AM UTC+3, hongy...@gmail.com wrote:
    I've nginx installed on my Ubuntu based VPS with the domain name my.domain.xyz. A socks5 proxy listening on port 6001 of the VPS which
    can access the intranet website 10.8.10.220:2021. Now, I run socat as following on the VPS:

    What does this have to do with the shell? Why are you asking this here?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From hongyi.zhao@gmail.com@21:1/5 to All on Sat Nov 6 00:28:43 2021
    I've nginx installed on my Ubuntu based VPS with the domain name
    my.domain.xyz. A socks5 proxy listening on port 6001 of the VPS which
    can access the intranet website 10.8.10.220:2021. Now, I run socat as
    following on the VPS:

    $ socat -v -d -d TCP4-LISTEN:2021,fork,reuseaddr socks5:127.0.0.1:10.8.10.220:2021,socks5port=6001

    Then I configure a reverse nginx proxy as follows:

    server {
    listen 8888;
    location / {
    proxy_pass http://localhost:2021;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    }

    The above configuration will let me access the intranet website 10.8.10.220:2021 from outside with the following URL: http://my.domain.xyz:8888.

    OTOH, the intranet website 10.8.10.220:2021 needs to log in with specific username and password. After I open http://my.domain.xyz:8888 and then
    do the login, the URL always changes to the following form:

    http://my.domain.xyz:2021

    This will cause subsequent operations to fail. Is there any way to
    continue using port 8888 to solve this problem?

    Regards,
    HZ

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kenny McCormack@21:1/5 to oguzismailuysal@gmail.com on Sat Nov 6 09:54:15 2021
    In article <1bdae92f-2bf1-4046-a450-3d7738675d46n@googlegroups.com>,
    O uz <oguzismailuysal@gmail.com> wrote:
    On Saturday, November 6, 2021 at 10:28:46 AM UTC+3, hongy...@gmail.com wrote: >> I've nginx installed on my Ubuntu based VPS with the domain name
    my.domain.xyz. A socks5 proxy listening on port 6001 of the VPS which
    can access the intranet website 10.8.10.220:2021. Now, I run socat as
    following on the VPS:

    What does this have to do with the shell? Why are you asking this here?

    The answer to both of your questions is explained in another recent post
    (on another "HY" thread).

    He considers this newsgroup to be his one-stop-shopping place for all his computer questions.

    --
    The randomly chosen signature file that would have appeared here is more than 4 lines long. As such, it violates one or more Usenet RFCs. In order to remain in compliance with said RFCs, the actual sig can be found at the following URL:
    http://user.xmission.com/~gazelle/Sigs/RepInsults

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Aragorn@21:1/5 to All on Sat Nov 6 19:02:19 2021
    On 06.11.2021 at 09:54, Kenny McCormack scribbled:

    In article <1bdae92f-2bf1-4046-a450-3d7738675d46n@googlegroups.com>,
    O uz <oguzismailuysal@gmail.com> wrote:
    On Saturday, November 6, 2021 at 10:28:46 AM UTC+3,
    hongy...@gmail.com wrote:
    I've nginx installed on my Ubuntu based VPS with the domain name
    my.domain.xyz. A socks5 proxy listening on port 6001 of the VPS
    which can access the intranet website 10.8.10.220:2021. Now, I run
    socat as following on the VPS:

    What does this have to do with the shell? Why are you asking this
    here?

    The answer to both of your questions is explained in another recent
    post (on another "HY" thread).

    He considers this newsgroup to be his one-stop-shopping place for all
    his computer questions.

    Thank you, Kenny. It would appear that after all of these years,
    people still don't get it. Or that they are refusing to get it, because "getting it" would somehow be an obstruction to them. :-/


    --
    With respect,
    = Aragorn =

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)