2. Install to terminal server. During installation tick too checks: 3. Run command line as administrator: 4. What should be entered is highlighted by red color: 5. Create configuration file "C:\Program Files (x86)\OpenVPN\config\wtware.ovpn" :
Code: Select all
dev tun
ca "C:/Program Files (x86)/OpenVPN/easy-rsa/keys/ca.crt"
cert "C:/Program Files (x86)/OpenVPN/easy-rsa/keys/server.crt"
key "C:/Program Files (x86)/OpenVPN/easy-rsa/keys/server.key"
dh "C:/Program Files (x86)/OpenVPN/easy-rsa/keys/dh1024.pem"
server 10.8.0.0 255.255.255.0
client-to-client
comp-lzo
6. Run command line as administrator, type: Red frame - the command to run.
Blue frame - this text is printed before terminal connects.
Green frame - this text is printed after terminal connects.
Items 1-6 you are to perform once, during server configuration. Then create keys for terminal. Make sure that terminal connects. Then restart server. Automatically during server boot openvpn service will start for every file with .ovpn extension from "C:\Program Files (x86)\OpenVPN\config\" directory.
You should create keys for every terminal connection. Every terminal has it's own personal keys. It's case sensitive! For example to create keys for terminal with 00.0C.29.DF.50.E3 MAC-address: Ready THREE keys files:
- ca.crt
- 00.0C.29.DF.50.E3.crt
- 00.0C.29.DF.50.E3.key