default route problem



Hi, all!

Home ISP often use the following network configuration scheme:

- Lan IP address is assigned using DHCP
- PPTP is used for internet connection

If pptp server is in your network, that should be ok to replace
default route with ppp one,
but when pptp server is routed via DHCP provided default route, you
can't simply do it,
you have first provide manually route for pptp server, then remove default.

Can we solve a problem this way:
- user should choose which networks he want to route using DHCP default route
- then add pptp server to this list
- build rules and change routing table
- then remove default route, or increase metrics
- launch pppd
- if failed restore previous settings


That should make pptp configuration less painful on linux desktop.
That should be useful for all other kinds of PPP as well.

I can provide some sample code in few days, using libnl.

Thanks,
vitja.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]