| |||||||||||||||||||||||||||||||
|
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