Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating user configs hardcodes the server host to 127.0.0.1 #249

Closed
burnerlee opened this issue Oct 26, 2023 · 3 comments
Closed

Creating user configs hardcodes the server host to 127.0.0.1 #249

burnerlee opened this issue Oct 26, 2023 · 3 comments

Comments

@burnerlee
Copy link

burnerlee commented Oct 26, 2023

I have hosted the server using the following docker-compose file:

version: '3'

services:
  openvpn:
    image: flant/ovpn-admin:openvpn-latest
    command: /etc/openvpn/setup/configure.sh
    environment:
      OVPN_SERVER_NET: "192.168.100.0"
      OVPN_SERVER_MASK: "255.255.255.0"
      OVPN_PASSWD_AUTH: "true"
    cap_add:
      - NET_ADMIN
    ports:
      - 7777:1194 # for openvpn
      - 8080:8080 # for ovpn-admin because of network_mode
    volumes:
      - ./easyrsa_master:/etc/openvpn/easyrsa
      - ./ccd_master:/etc/openvpn/ccd
  ovpn-admin:
    build:
      context: .
    image: flant/ovpn-admin
    command: /app/ovpn-admin
    environment:
      OVPN_DEBUG: "true"
      OVPN_VERBOSE: "true"
      OVPN_NETWORK: "192.168.100.0/24"
      OVPN_CCD: "true"
      OVPN_CCD_PATH: "/mnt/ccd"
      EASYRSA_PATH: "/mnt/easyrsa"
      OVPN_SERVER: "18.139.111.78:7777:tcp"
      OVPN_INDEX_PATH: "/mnt/easyrsa/pki/index.txt"
      OVPN_AUTH: "true"
      OVPN_AUTH_DB_PATH: "/mnt/easyrsa/pki/users.db"
      LOG_LEVEL: "debug"
    network_mode: service:openvpn
    volumes:
      - ./easyrsa_master:/mnt/easyrsa
      - ./ccd_master:/mnt/ccd

Where 18.139.111.78:7777:tcp is public ip of my server. When I create a user's config from the dashboard, the server port in that is locked to 127.0.0.1. This should point to the public ip of my vpn server the users can connect to. How can i configure it?

@pashcovich
Copy link
Contributor

I tried to test using the docker-compose file you provided, and everything is fine

which version did you use?

@burnerlee
Copy link
Author

oh got it. There was some issue with file I was importing

@burnerlee
Copy link
Author

thanks btw :), sorry for the trouble

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

No branches or pull requests

2 participants