sighupio / furyagent

Apache License 2.0
9 stars 2 forks source link

ovpn client configuration. Server port hardcoded #20

Closed angelbarrera92 closed 3 years ago

angelbarrera92 commented 3 years ago

Ciao team!

While creating a ovpn profile for a client using the command:

$ furyagent configure openvpn-client --client-name angel --config furyagent.yml

furyagent.yml example file:

storage:
  provider: s3
  bucketName: ${bucketName}
  aws_access_key: ${aws_access_key}
  aws_secret_key: ${aws_secret_key}
  region: ${region}
clusterComponent:
  openvpn:
    certDir: /etc/openvpn/pki
    servers:
      - my.server.ip.address

It will create an ovpn file with the port 1194 hardcoded. As it could be customized, we have to find a way to make it variable.

Maybe we can figure out it like:

What do you think?

lnovara commented 3 years ago

You're right and I like the proposed solution. If you have time to work on this issue, go for it! :shipit: