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

Add multiple accounts #14

Open
sCHween opened this issue Dec 12, 2018 · 1 comment
Open

Add multiple accounts #14

sCHween opened this issue Dec 12, 2018 · 1 comment

Comments

@sCHween
Copy link

sCHween commented Dec 12, 2018

Hi there
how can i four different accounts?

Thanks

@jamespayne
Copy link

jamespayne commented Nov 27, 2021

Here is how I did it:

(do not include < or > in the parts that you need to change; that indicates a placeholder for where you need to add your information)

  1. Get the docker container ID by running:
    docker ps
  2. Start a shell connection with the docker container by running:
    docker exec -it <insert container id here> /bin/bash
  3. Open the /etc/ppp/chap-secrets file for editing:
    vim /etc/ppp/chap-secrets
  4. Add the user with the following format:
    <insert username here> * <insert password here> *
  5. Save the file and exit vim
  6. Restart the VPN server by running:
    service ipsec restart
  7. Disconnect from the docker image:
    exit

This assumes that all users are using the same shared secret that you used when setting up the VPN which is probably not the best idea but I haven't had the time to figure out how to do that.

Ideally somebody could add a bash script that handles all this and add it to the repository. I "may" do this if I have the time.

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