Last time, around one month ago, the OS was upgraded automatically, my customized vpn stopped working.
Comparing old and new configurations (thank to schnapps) I realized that the diffie-helman parameters path was changed. I calmed down and changed the configuration file accordingly and the world has been saved.
But this time (day or couple of ago) the OS upgrade broke my vpn again.
Now I’m unable to fix it anyhow.
This is my config that was perfectly working before the upgrade:
/etc/openvpn/my-vpn.conf
client-to-client
persist-key
persist-tun
ca /etc/ssl/ca/openvpn/ca.crt
cert /etc/ssl/ca/openvpn/01.crt
crl-verify /etc/ssl/ca/openvpn/ca.crl
dev tun_turris
dh /etc/ssl/ca/openvpn/dhparam.pem
ifconfig-pool-persist /tmp/ipp.txt
keepalive 10 120
key /etc/ssl/ca/openvpn/01.key
mute 20
port 1194
proto udp
push “route 192.168.1.0 255.255.255.0”
server 10.111.111.0 255.255.255.0
status /tmp/openvpn-status.log
verb 3
client-config-dir ccd
route 192.168.2.0 255.255.255.0
There are client custom data in short files in
/etc/openvpn/ccd/
/mnt/snapshot-@54/etc/config/openvpn
config openvpn ‘custom_config’
option enabled ‘1’
option config ‘/etc/openvpn/my-vpn.conf’
config openvpn ‘server_turris’
option enabled ‘0’
option port ‘1194’
option proto ‘udp’
option dev ‘tun_turris’
option ca ‘/etc/ssl/ca/openvpn/ca.crt’
option crl_verify ‘/etc/ssl/ca/openvpn/ca.crl’
option cert ‘/etc/ssl/ca/openvpn/01.crt’
option key ‘/etc/ssl/ca/openvpn/01.key’
option server ‘10.111.111.0 255.255.255.0’
option ifconfig_pool_persist ‘/tmp/ipp.txt’
option duplicate_cn ‘0’
option keepalive ‘10 120’
option persist_key ‘1’
option persist_tun ‘1’
option status ‘/tmp/openvpn-status.log’
option verb ‘3’
option mute ‘20’
option dh ‘/etc/ssl/ca/openvpn/dhparam.pem’
option enabled ‘1’
list push ‘route 192.168.1.0 255.255.255.0’
root@turris:~#
Yes, there was “a bug” with two contradicting "option enabled ‘0’ and ‘1’ and I didn’t know it, but it worked.
Now this doesn’t work with any of the values nor with both of them.
If the opevpn server enable switch in Reforis isn’t activated, the /var/etc/openvpn-server_turris.conf isn’t generated, but if it’s enabled, the custom options from /etc/openvpn/my-vpn.conf’ are ignored.
I am sad, angry and tired of it.
I don’t know what should I do to make it work again and make it working permanently.
Please do something about it!!!
There is no need you to analyze my vpn configuration, just improve the way the system behaves when custom configuration is needed.
(BTW: I still want to use the built in keys management, because it’s great)
Thank you