Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

...and scantily clad females, of course. Who cares if it's below zero outside. -- Linus Torvalds


devel / comp.lang.python / Access my workplace intranet with a wrapper/mirror website resides on my vps.

SubjectAuthor
o Access my workplace intranet with a wrapper/mirror website resides onhongy...@gmail.com

1
Access my workplace intranet with a wrapper/mirror website resides on my vps.

<2e9b1020-5ed2-45ad-a203-6320e8777ae3n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=20318&group=comp.lang.python#20318

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a05:6214:c81:: with SMTP id r1mr49480714qvr.31.1636025295917;
Thu, 04 Nov 2021 04:28:15 -0700 (PDT)
X-Received: by 2002:a05:6214:3004:: with SMTP id ke4mr26189986qvb.48.1636025295730;
Thu, 04 Nov 2021 04:28:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Thu, 4 Nov 2021 04:28:15 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=165.22.107.245; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 165.22.107.245
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2e9b1020-5ed2-45ad-a203-6320e8777ae3n@googlegroups.com>
Subject: Access my workplace intranet with a wrapper/mirror website resides on
my vps.
From: hongyi.zhao@gmail.com (hongy...@gmail.com)
Injection-Date: Thu, 04 Nov 2021 11:28:15 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: hongy...@gmail.com - Thu, 4 Nov 2021 11:28 UTC

I've a VPS bound to the domain my.domain.xyz. At the meanwhile, a socks5 proxy server runs on the VPS and listens on port 1080 which can access the website located on my office subnet, say, by starting chrome with the following command:

$ google-chrome --proxy-server="socks5://my.domain.xyz:1080"

Then I can access my workplace intranet by the following URL:

http://10.10.10.10:2021

This way works, but some cumbersome settings are required. I want to access my workplace intranet with a wrapper/mirror website resides on my VPS, say, http://my.domain.xyz:21080, which can access the intranet website via the socks5 proxy server mentioned above. I mean, when I open the URL http://my..domain.xyz:21080 from anywhere outside the workplace intranet, it will automatically be redirected to http://10.10.10.10:2021 via the socks5 proxy server "socks5://my.domain.xyz:1080".

Is there a feasible way to achieve this aim with the help of python?

Regards,
HZ


devel / comp.lang.python / Access my workplace intranet with a wrapper/mirror website resides on my vps.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor