The other day I noticed that on one server, changed the metric in the routing table.
[[email protected] /home]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default gateway 0.0.0.0 UG 100 0 0 ens33 10.8.50.0 10.8.50.2 255.255.255.0 UG 0 0 0 tun0 10.8.50.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
Interface ens33 had a different metric value.
It happened after installing the OpenVPN server.
Can OpenVPN to change the metric in the routing table? Or it's a coincidence and changing the routes, something else?
Since the metric 0 for the OpenVPN tunnel does not suit me, I added in the server.conf the line:
route-metric 100
After the restart, the value in the table has changed.
[[email protected]_50 rsync-scripts]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default gateway 0.0.0.0 UG 100 0 0 ens33 10.8.50.0 10.8.50.2 255.255.255.0 UG 100 0 0 tun0 10.8.50.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
But metrics have 10.8.50.2 has not changed. How to change it?