User Tools

Site Tools


wiki:adding_openvpn_users

Add VPN users

Create new user

adduser --no-create-home --shell /bin/false vpnuser

Assign vpn ip address

Inside of /etc/openvpn/ccd/ add new file with same name as user's name (“vpnuser” in this example) and next 2 ip adresse which are not used from this table

Example file content:

ifconfig-push 10.50.10.5 10.50.10.6

Check if there are other files in ccd directory.

Check that the ips are not blocked by firewall. First ip needs to be whitelisted.

Tested on

  • Debian 10.7
  • OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 20 2019 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10

References

wiki/adding_openvpn_users.txt · Last modified: 2021/07/09 09:33 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki