7 msgSomething changed with nice?
91 msgOT im more just curious
6 msgdr.dk
15 msgIntel High Definition Audio and its problems
8 msgMasked packages
6 msgmore on the mysterious console blanking
1 msgconsole blanks permanantly--addendum
3 msgconsole blanks permanantly

Setting up routes for pppd with /etc/conf.d/net
\ Sascha Hlusiak (12 Apr 2007)
. \ Sascha Hlusiak (12 Apr 2007)
. . \ Walter Dnes (13 Apr 2007)
. . . \ Sascha Hlusiak (13 Apr 2007)

5 msg{OT} Generating an online graph/chart
1 msgamarok, last.fm and recent updates
7 msgeclipse
11 msg2.6.19-r5 kernel disaster
7 msgfloppy flops: mtools vs file managers
8 msgFwd: problem :eht0 not getting detected
9 msglaptop sometimes needs double keystrokes
6 msgWhy is apache 2.2 hard masked?
2 msgmod_auth_ldap vs USE=ldap for apache2
2 msgHelp With Cron
3 msgafter major upgrade questions remain
Subject:Setting up routes for pppd with /etc/conf.d/net
Group:Gentoo-user
From:Sascha Hlusiak
Date:12 Apr 2007


 

Hi group,

I connect to a wireless network, using dhcpcd, which gives me an IP address
and a default gateway. Now I need to establish a ppp connection to access the
Internet, but the remote server is reachable only through the default
gateway.

pppd complains: ppp not replacing existing default route...
(Isn't is possible to have multiple default routes with different metric
values? Why not with pppd? How can I make pppd add another default route or
replacing the current one?)

So the solution is by hand:
route -n # to see the $oldgw
route del default
route add -host $vpnserver gw $oldgw

Or with the /etc/conf.d/net:
dhcpcd_wlan0=("-G")
routes_wlan0=("$vpnserver via $guessedgw")

Since I get IP addresses from different ranges, I get different gateways
assigned and I'd need to guess them. And if I pass the -G option to dhcpcd, I
have to guess the gateway. Are there "dynamic" values possible in the
conf.d/net file?

Is there a way with /etc/conf.d/net to have a route set to one host, using the
gateway assigned by dhcpcd? Is there a gentoo way to do this, or do I need to
write scripts for this myself? It's possible though with the ip-up scripts,
but I don't like to add scripts all over the system. :-/ I thought, this
setup is quite common for vpn environments, that the vpn server is behind a
router.
What does the normal user do?


Thanks,
Sascha



© 2004-2008 readlist.com