Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

One picture is worth 128K words.


devel / comp.unix.shell / Port restore problem of reverse proxy after login.

SubjectAuthor
* Port restore problem of reverse proxy after login.hongy...@gmail.com
`* Re: Port restore problem of reverse proxy after login.Oğuz
 `* Re: Port restore problem of reverse proxy after login.Kenny McCormack
  `- Re: Port restore problem of reverse proxy after login.Aragorn

1
Port restore problem of reverse proxy after login.

<d77afa9e-ace5-48fb-b545-fd3e6fc9ea77n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4590&group=comp.unix.shell#4590

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:620a:d96:: with SMTP id q22mr51708265qkl.219.1636183724258;
Sat, 06 Nov 2021 00:28:44 -0700 (PDT)
X-Received: by 2002:a05:622a:104b:: with SMTP id f11mr47885833qte.197.1636183724136;
Sat, 06 Nov 2021 00:28:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sat, 6 Nov 2021 00:28:43 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=103.149.249.36; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 103.149.249.36
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d77afa9e-ace5-48fb-b545-fd3e6fc9ea77n@googlegroups.com>
Subject: Port restore problem of reverse proxy after login.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Sat, 06 Nov 2021 07:28:44 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 34
 by: hongy...@gmail.com - Sat, 6 Nov 2021 07:28 UTC

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

Re: Port restore problem of reverse proxy after login.

<1bdae92f-2bf1-4046-a450-3d7738675d46n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4591&group=comp.unix.shell#4591

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:620a:24d5:: with SMTP id m21mr37160861qkn.509.1636185402349;
Sat, 06 Nov 2021 00:56:42 -0700 (PDT)
X-Received: by 2002:a0c:9d05:: with SMTP id m5mr3977624qvf.30.1636185402035;
Sat, 06 Nov 2021 00:56:42 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Sat, 6 Nov 2021 00:56:41 -0700 (PDT)
In-Reply-To: <d77afa9e-ace5-48fb-b545-fd3e6fc9ea77n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=88.233.228.9; posting-account=RbOzpwoAAACSDI6OO1wVarfPakNstxUl
NNTP-Posting-Host: 88.233.228.9
References: <d77afa9e-ace5-48fb-b545-fd3e6fc9ea77n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1bdae92f-2bf1-4046-a450-3d7738675d46n@googlegroups.com>
Subject: Re: Port restore problem of reverse proxy after login.
From: oguzisma...@gmail.com (Oğuz)
Injection-Date: Sat, 06 Nov 2021 07:56:42 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 6
 by: Oğuz - Sat, 6 Nov 2021 07:56 UTC

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?

Re: Port restore problem of reverse proxy after login.

<sm5jc7$8top$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4592&group=comp.unix.shell#4592

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.unix.shell
Subject: Re: Port restore problem of reverse proxy after login.
Date: Sat, 6 Nov 2021 09:54:15 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <sm5jc7$8top$1@news.xmission.com>
References: <d77afa9e-ace5-48fb-b545-fd3e6fc9ea77n@googlegroups.com> <1bdae92f-2bf1-4046-a450-3d7738675d46n@googlegroups.com>
Injection-Date: Sat, 6 Nov 2021 09:54:15 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="292633"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Sat, 6 Nov 2021 09:54 UTC

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

Re: Port restore problem of reverse proxy after login.

<20211106190219.31c62c7e@nx-74205>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4594&group=comp.unix.shell#4594

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: thoron...@telenet.be (Aragorn)
Newsgroups: comp.unix.shell
Subject: Re: Port restore problem of reverse proxy after login.
Date: Sat, 6 Nov 2021 19:02:19 +0100
Organization: A noiseless patient Strider
Lines: 29
Message-ID: <20211106190219.31c62c7e@nx-74205>
References: <d77afa9e-ace5-48fb-b545-fd3e6fc9ea77n@googlegroups.com>
<1bdae92f-2bf1-4046-a450-3d7738675d46n@googlegroups.com>
<sm5jc7$8top$1@news.xmission.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e8b4deca84737dfe515540ebc626ba74";
logging-data="10495"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jHaRs3pM6tNsBeglK91Fz"
Cancel-Lock: sha1:kPlTQk7VkoiAGRoPlO1Plq0GiCI=
X-Newsreader: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu)
 by: Aragorn - Sat, 6 Nov 2021 18:02 UTC

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 =

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor