Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Access between two VPN instance #73

Open
xky0007 opened this issue Jul 15, 2022 · 0 comments
Open

Access between two VPN instance #73

xky0007 opened this issue Jul 15, 2022 · 0 comments

Comments

@xky0007
Copy link

xky0007 commented Jul 15, 2022

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

#71 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant