After configure OpenVPN and commit it, everything works ok. But after reboot, if I'll do
show interfaces o
I'v got:
Configuration path: interfaces [o] is not valid
But
sudo cat /config/config.boot
... openvpn vtun1 { description VPN device-type tap mode client openvpn-option "--script-security 2" persistent-tunnel protocol udp remote-host ip remote-port port tls { ca-cert-file /config/auth/ca.crt cert-file /config/auth/MSklad.crt key-file /config/auth/MSklad.key tls-version-min 1.0 } use-lzo-compression } ...
And
ifconfig: vtun1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.255.95.7 netmask 255.255.0.0 broadcast 10.255.255.255 inet6 fe80::849a:b7ff:fe5d:d8d9 prefixlen 64 scopeid 0x20<link> ether 86:9a:b7:5d:d8:d9 txqueuelen 100 (Ethernet) RX packets 10717 bytes 872467 (852.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 11571 bytes 1679746 (1.6 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
If I'll change anything in config and do commit&save, i'll loose openvpn.
In logs i found this:
[ interfaces openvpn vtun1 ] Traceback (most recent call last): File "/usr/libexec/vyos/conf_mode/interfaces-openvpn.py", line 1028, in <module> apply(c) File "/usr/libexec/vyos/conf_mode/interfaces-openvpn.py", line 1018, in apply Interface(openvpn['intf']).set_state('up') File "/usr/lib/python3/dist-packages/vyos/ifconfig.py", line 110, in __init__ raise Exception('interface "{}" not found'.format(self.config['ifname'])) Exception: interface "vtun1" not found [[interfaces openvpn vtun1]] failed Commit failed
What's wrong with that?