Re: preserving l2tp
Niv Wiser
Fri Dec 31 16:44:55 2010
On Fri, 31 Dec 2010 13:41:34 +0000, "Roy Marples" <roy@xxxxxxxxxxxx>
said:
> On Fri, 2010-12-31 at 15:04 +0200, Niv Wiser wrote:
> > I think I've solve the default route issue, please see below. however I
> > still seek two answers:
> > 1. ISP default route, when eth0 comes up I it to have access to the
> > internet even before l2tp was achieved. so I added this line to the
> > postup() in /etc/conf.d/net:
> > ip ro | grep -q default || ip ro add default via $WAN_GW
> > is this the right way? wont it be better to solve this in the dhcpcd
> > scripts, using the reason var?
>
> I think you're going about things the wrong way.
> I would assume that l2tp would give a default route if none present
> correct? And this would take precedence. dhcpcd will give *all* it's
> routes a metric, so when the l2tp default route comes up it will be used
> and when it's down the dhcpcd default route will work.
>
> Does this satisfy you?
sure then the l2tp would get a higher metric.
However according to the testing I ran , xl2tp make a ppp device after
establishing a connection.
when this happens , if a default gateway is present , it gives the "not
replacing existing default route to eth0" message, and doesnt add a
default route to the l2tp server. on the other hand ipsec needs a
default route to the internet when starting. this is the reason I am
changing the routing so much.
>
> > 2. ISP DNS servers, before l2tp is established I want to use the ISP dns
> > servers, yet I use "-C resolv.conf" to prevent it overwriting the l2tp
> > dns servers info.
>
> I also make a package called openresolv (resolvconf clone) which manages
> DNS information from multiple sources. dhcpcd supports resolvconf out of
> the box. Install that and integrate l2tp with resolvconf.
I am currently using dnsmasq as my home router supplies dns to the lan.
I will see your openresolv
>
> Thanks
>
> Roy
>
Archive administrator: postmaster@marples.name