docker-openvpn-client icon indicating copy to clipboard operation
docker-openvpn-client copied to clipboard

Access between two VPN instance

Open xky0007 opened this issue 3 years ago • 0 comments

Since the last issue was closed, I created this issue.

Basically, I have two openVPN instances running. One instance is running on the Windows and its IP is 10.16.0.2. The other was created in a cloud server with docker-compose and openVPN IP is 10.16.0.1. How can I access the nginx default page via 10.16.0.1:8001.

Thanks.:D

version: '3'
services:
  openvpn-client:
    image: ghcr.io/wfg/openvpn-client
    container_name: openvpn-client
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun
    volumes:
      - /home/ubuntu/open-vpn docker/config:/data/vpn 
    restart: unless-stopped
    ports:
    - "8001:80"
    environment:
    - KILL_SWITCH=off


  nginx:
    image: nginx
    container_name: nginx_test
    network_mode: service:openvpn-client

image

https://github.com/wfg/docker-openvpn-client/issues/71#issuecomment-1175818532

xky0007 avatar Jul 15 '22 02:07 xky0007