help setting OpenVPN Server
** it's Debain based script.
** I failed to set protocol as tcp in previous version. I'll check it soon.
- run set_server.bash with root privilege
- enter the server information(the questions are numbered.)
- just click enter when the default value is set (it's in [ ])
- when the question "Confirm request details" shown, enter "yes"
- the server is automatically set & started
- run add_client.bash with root privilege
- enter the client information
- just click enter when the default value is set (it's in [ ])
- when the question "Confirm request details" shown, enter "yes"
- the ovpn setting file is at /root/client-configs/files/
- run add_allowed_ip.bash with root privilege
- enter the client's public ip to allow
- done!
- I don't recommend this option since it can make your system vulunerable.
ufw status numbered
- find the index of "
deny [port]/[protocol]
" ufw delete [index]
- I don't recommend this option since it can make your system vulunerable.
- open the /etc/openvpn/server.conf
- uncomment "duplicate-cn"
- restart openvpn@server : "
systemctl restart openvpn@server
"