mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 03:40:17 +00:00
Added section about setting static IP address
parent
691d8a5e09
commit
ab098257fc
1 changed files with 27 additions and 0 deletions
27
Home.md
27
Home.md
|
@ -23,6 +23,33 @@ where [osrelease] should be replaced with:
|
|||
|
||||
More information can be found here: <https://community.openvpn.net/openvpn/wiki/OpenvpnSoftwareRepos>
|
||||
|
||||
## Setting up static IP for clients
|
||||
|
||||
|
||||
1. Add this line `client-config-dir /etc/openvpn/ccd` in
|
||||
`/etc/openvpn/server.conf`
|
||||
|
||||
2. Create client config directory
|
||||
`sudo mkdir /etc/openvpn/ccd`
|
||||
|
||||
3. Fix permissions
|
||||
`sudo chown -R pi:nogroup /etc/openvpn/ccd`
|
||||
(Make sure to enter correct username, in this case it was pi)
|
||||
|
||||
4. Adding clients.
|
||||
`sudo nano /etc/openvpn/ccd/exampleuser`
|
||||
(Add clients with their common name, in this case `exampleuser.ovpn`)
|
||||
|
||||
5. Configuring static IP.
|
||||
Add this line `ifconfig-push 10.8.0.3 255.255.255.0` to `/etc/openvpn/ccd/exampleuser`
|
||||
|
||||
6. Restart openvpn
|
||||
`sudo service openvpn restart`
|
||||
|
||||
(Here 10.8.0.3 is going to be static IP for user `exampleuser`, if you want to configure additional users, repeat from step 4)
|
||||
|
||||
**Note: You have to assign static IP for all clients in order to avoid IP address conflict**
|
||||
|
||||
## DynDns
|
||||
|
||||
Refer to: https://help.dyn.com/ddclient/
|
||||
|
|
Loading…
Reference in a new issue