l2tpvpn-docker-pi icon indicating copy to clipboard operation
l2tpvpn-docker-pi copied to clipboard

Add multiple accounts

Open sCHween opened this issue 6 years ago • 1 comments

Hi there how can i four different accounts?

Thanks

sCHween avatar Dec 12 '18 08:12 sCHween

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.

jamespayne avatar Nov 27 '21 03:11 jamespayne