O
O
Oleg2020-02-11 09:43:38
VPN
Oleg, 2020-02-11 09:43:38

How to access services in Docker containers from another network via VPN?

There is a local network at home with a server and a router on Openwrt. There is an external vps server with a static IP. Installed and configured Softether VPN Server on VPS. I installed Softether VPN Bridge at home and combined it with a vpn server via Bridge Layer 3. That is, at home I have a subnet of 192.168.0.0/24, clients on vps have a subnet of 192.168.1.0/24. Vps clients access the Internet through an external vps interface (static ip), home LAN clients through an Internet provider (dynamic ip received via dhcp from the provider). Routes are forwarded, iptables is configured on vps, networks see and ping each other. Having connected, for example, from a phone, to a vpn server, I can go to smb-balls, web-muzzles of webmin'a, openmediavault'a, a router in my home network. It would seem that everything is fine, but... On the home server, I deployed services through docker containers (fashionable, yes :)), such as qbittorent, nextcloud, etc. and there is no access to them. Those. from devices on the local network, I can access them without problems via ip_server:
The only way we managed to connect was to forward the port on the router (in openwrt), then it turns out to go through the ip-router (192.168.0.1:port_service), which is not convenient, but at least it works.
Not strong in system administration and iptables, so it is not yet possible to organize NATting in such a way that vpn clients are full members of the local network.
In what direction should we move in this case?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question