|
From: Kevin Y. <ke...@yi...> - 2005-04-20 23:58:49
|
I've gotten pptp/pppd on-demand to work but not automatically. I've created my custom /etc/ppp/peers/tunnel and start up the pppd portion by using 'pppd call tunnel' where tunnel matches the configured tunnel name in /etc/ppp/peers. My problem is after starting up pppd, I can add the host route that I need to be able to initiate on-demand pptp connections. After pptp comes up, the original host route I added disappears and is replaced by a the host route to the remote side of the pptp tunnel. In this particular configuration, the remote side is on a different network than my desired host. So I have to manually re-add the host route, then traffic can progress as I would like it. I've also added an idle timeout and when the idle timeout kicks in and the tunnel comes back down, the host route that was re-added has disappeared once again and the host route back to the remote side is back again. Using pptp-linux-1.3.1, ppp-2.4.2-cvs-20030610, kernel-ppp-mppe-0.0.5-5dkms, and kernel rev 2.4.20-28.8smp w/ RedHat 8.0. I couldn't find any other existing topics on the mailing list that talked about demand pppd and additional static routes. If I don't use demand pppd, then it works fine by using the `pptp-command' to start the tunnel as it has facilities to configure static routes via comments in /etc/ppp/peers/tunnel. |