Closed ghost closed 6 years ago
VPR should be automatically reloaded if any of the supported interfaces go up. Watch for the line in log stating something like:
20:15:01 vpn-policy-routing [3446]: service monitoring interfaces: wan vpnc
It does indeed whenever an iface change happens but unfortunately not during or right after the boot sequence. To get started after a reboot it requires a manual PBR reload, either through the cli or LuCI.
It was reported by another user at the TO forum and reproduced this end.
I have the same issue like n8v8R with a Turris Omnia. I have to save&apply changes in the PBR settings menu after reboot, then it works.
OpenWrt omnia 15.05 r47055 Kernel Version | 4.4.131-a2dbf3bef3d0c1f725e0a5f0801935a1-2
Just speculating after reading https://forum.turris.cz/t/vpn-policy-based-routing-possible/7204/32
e.g. logread is not functional, they use syslog-ng which writes to /var/log/messages
Is VPBR (service monitoring interfaces) relying on logread and thus perhaps the root cause?
And would logging (Open)VPN to another/separate file other than the syslog (/var/log/messages
) , e.g. option log '/tmp/log/openvpn.log'
in “/etc/config/openvpn” impede VPBR's monitoring capability? If so could this be remedied with an option in VPBR to point such (Open)VPN log file?
Router Turri Omnia OpenWrt omnia 15.05 r47055 / LuCI cc8b99aacec15490bb725fe53abefa1156cb5fe3 branch (git-18.123.42193-cc8b99a) Kernel 4.4.131-a2dbf3bef3d0c1f725e0a5f0801935a1-2
PBR is starting prior the ovpn tun is up during router boot and thus fails to create a routing table for the tun