Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391175 - net-misc/openvpn - add metric to openresolv if possible
Summary: net-misc/openvpn - add metric to openresolv if possible
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Dirkjan Ochtman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-21 01:02 UTC by Alon Bar-Lev
Modified: 2013-02-09 20:34 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openvpn-up-metric.patch (openvpn-up-metric.patch,868 bytes, patch)
2011-11-21 01:02 UTC, Alon Bar-Lev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alon Bar-Lev 2011-11-21 01:02:45 UTC
Created attachment 293249 [details, diff]
openvpn-up-metric.patch

Hello,

Following bug#364907.

When an interface is added to resolv conf, best if it is added with a metric. The interface metric is important so that, for example, the DNS of the VPN will be search first.

An attack can be established if dns queries are redirected out side of VPN, so in VPN it is very important.

The attached patch is looking for the minimum metric of openvpn provided routes and set it as the metric for openresolv.

Please consider to apply.

Thanks,
Alon.
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-01-29 18:21:47 UTC
What are the downsides of this patch?
Comment 2 Alon Bar-Lev 2012-01-29 18:42:42 UTC
(In reply to comment #1)
> What are the downsides of this patch?

Should be none.
Worse case no metric.
Unless I've done something terribly wrong in sh, but it looks clean and simple.

What we try to accomplish is lower risk of attacking VPN client.

Thanks!
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2013-02-08 20:29:50 UTC
Can I help?
Comment 4 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-02-09 20:30:05 UTC
In the sense that, I left this around waiting for way too long: no, thanks for pinging me, I just committed it.

In the sense that, hey, I just noticed you're a dev (again, apparently): please join me as an openvpn maintainer!
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2013-02-09 20:34:30 UTC
(In reply to comment #4)
> In the sense that, I left this around waiting for way too long: no, thanks
> for pinging me, I just committed it.

Thanks!

> In the sense that, hey, I just noticed you're a dev (again, apparently):
> please join me as an openvpn maintainer!

No problem, just CC me if you need help.
I don't expect much change in openvpn since me rewrite the build system properly... the pace of this project is really slow.