Re: Non default VPN route patch
- From: Dan Williams <dcbw redhat com>
- To: Tomislav Vujec <tvujec redhat com>
- Cc: networkmanager-list gnome org
- Subject: Re: Non default VPN route patch
- Date: Mon, 16 May 2005 09:00:31 -0400 (EDT)
On Mon, 16 May 2005, Tomislav Vujec wrote:
> Hi all,
>
> I made some changes to the current CVS head, which allow setting up
> non-default routes for the VPN. In case your home connection is much
> better than through the office, you don't want your default route to go
> through the VPN.
>
> This only works for the RedHat back end now, but it should be easy to
> adjust for other distributions. You'll need an additional gconf key,
> called routes in your VPN set up. It should be a list of strings, each
> of them representing a single non default route, e.g. "172.16.0.0/16"
> which you want to pass through the VPN. If the list is empty, the
> behavior should stay the same.
Committed with one small change: in nm_system_vpn_device_set_from_ip4_config(),
I added checks to validate that the route is actually in the format of
"x.x.x.x/x", otherwise it could be a security risk when that string gets passed
to system().
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]