R
R
Romi2022-04-14 12:01:27
VPN
Romi, 2022-04-14 12:01:27

I have projects locally on Laradock (docker compose) and I access the Internet via VPN - how do I configure sites to be seen from the IP of the VPN server?

I have a remote host with an OpenVPN server, on the network my client IP is visible, respectively, as its IP.

Locally projects run on Laradock (docker compose) - i.e. on 127.0.0.1 (I configure in hosts and nginx).

Can I somehow reconfigure this farm so that my local projects are visible from my remote host's IP? For example, you type in the address bar of the browser the IP of my host, say, 12.11.34.54 - and it somehow shows what I have locally at 127.0.0.1 at the moment?

At least so, without DNS. Better, of course, with DNS (I can take the domains and make the corresponding A-records on my host, if necessary).

In general, I want my locally raised projects to be visible from the network via VPN, how can I do this?

Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Drno, 2022-04-14
@romicohen

You need to do port forwarding, for example, using iptables
so that it forwards an incoming request to 80 \ 443 ports to the IP of your VPN client
. Next, we accept this request on the client ... if the docker is available from any IP, then nothing further needs to be done
VPS 80 \ 443> iptables >ip client VPN + port on which the project hangs in the
docker

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question