Awesome q2a theme

Can OpenVPN to change the metric in the routing table?

0 like 0 dislike
33 views
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?
by | 33 views

1 Answer

0 like 0 dislike
It is appropriate to ask the question - "why change it and what you do not like this route"? A VPN is used either to caroliana specific subnets through - and then, obviously, the routes to them must have a lower metric or caroliana everything except connect to the VPN server through herself and then again his routes should have a lower metric than the existing ones.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
asked May 12, 2019 by freezl
0 like 0 dislike
5 answers
0 like 0 dislike
2 answers
asked Mar 28, 2019 by juffinhalli
0 like 0 dislike
7 answers
110,608 questions
257,187 answers
0 comments
40,796 users