You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to set static IP to a certain client.
As I searched,I shall add 2 lines to /etc/openvpn/server.conf ifconfig-pool-persist ipp.txt client-config-dir /etc/openvpn/ccd
And setup a file as /etc/openvpn/ccd/username ifconfig-push 10.8.0.5 10.8.0.6
I tried to modify /etc/openvpn/server.conf,but it restores every launch.
I also tried to add -e OVPN_EXTRA="ifconfig-pool-persist /etc/openvpn/ipp.txt\nclient-config-dir /etc/openvpn/ccd" \
It seems the escape character '\n' dosen't work properly.
The text was updated successfully, but these errors were encountered:
skret028
changed the title
How to set OVPN_EXTRA with multiple lanes?
How to set OVPN_EXTRA with multiple lines?
Mar 22, 2023
I want to set static IP to a certain client.
As I searched,I shall add 2 lines to /etc/openvpn/server.conf
ifconfig-pool-persist ipp.txt
client-config-dir /etc/openvpn/ccd
And setup a file as /etc/openvpn/ccd/username
ifconfig-push 10.8.0.5 10.8.0.6
I tried to modify /etc/openvpn/server.conf,but it restores every launch.
I also tried to add
-e OVPN_EXTRA="ifconfig-pool-persist /etc/openvpn/ipp.txt\nclient-config-dir /etc/openvpn/ccd" \
It seems the escape character '\n' dosen't work properly.
The text was updated successfully, but these errors were encountered: