Replies: 2 comments 3 replies
-
Between this code [...]
# Generates the custom client.ovpn
cp /etc/openvpn/client-template.txt "$homeDir/$CLIENT.ovpn"
{
echo "<ca>"
cat "/etc/openvpn/easy-rsa/pki/ca.crt"
echo "</ca>"
[...] Add this commands, where $CLIENT_IP and $vpn_mask must be defined manually. [...]
# Generates the custom client.ovpn
echo "ifconfig-push ${CLIENT_IP} ${vpn_mask}" > /etc/openvpn/ccd/${CLIENT} # ASSIGN USER STATIC IPv4
cp /etc/openvpn/client-template.txt "$homeDir/$CLIENT.ovpn"
{
echo "<ca>"
cat "/etc/openvpn/easy-rsa/pki/ca.crt"
echo "</ca>"
[...] I know that could be solved better, but this is the key command. Hope it helps :) |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hello,
I wanted to give a static ip to each clients, to set the permission on my home network.
I've read many articles about it, but i used the openvpn install script, and it creates the certs in different way as in the articles, so i'm unable to add static ip to the clients. Is there any tutorial how to do that ?
Beta Was this translation helpful? Give feedback.
All reactions