Talk:PPTP

Why would not one use PREDOWN instead of POSTDOWN in script? postdown{ if ${IFACE} = "ppp0" ; then route add default gw $DEFgateway dev $DEFdevice route del -host $VPN route del $VPN fi   return 0; }

The current instructions are the REALLY HARD way
In actuality, all you need for PPTP w/ MPPE "the Gentoo Way" is the following:

Enable in kernel config: CONFIG_PPP CONFIG_PPP_ASYNC CONFIG_PPP_MPPE

Create /etc/conf.d/net.ppp0 (this is the "Gentoo Way" part, and is all pretty clear in /usr/share/doc/openrc-*/net.example.bz2): link_ppp0='pty "pptp vpn.domain.com --nolaunchpppd"' # VPN server hostname or IP address works fine. username_ppp0="your_pptp_username" password_ppp0="your_pptp_password" routes_ppp0="10.0.0.0/8 dev ppp0" # No script needed for routes. This is how Gentoo does routes. pppd_ppp0="persist updetach lcp-echo-interval 15 lcp-echo-failure 2" # This line actually not even necessary, just my suggested options.

Create the initscript symlink and install the client software: # ln -s net.lo /etc/init.d/net.ppp0 # emerge pptpclient

That's it. Your PPTP tunnel is completely configured, and is already setup as a true "Gentoo network interface", as referred to in the current content (you can bring it up with "/etc/init.d/net.ppp0 start", add it to runlevels, etc.)

The above assumes MPPE, as the current page (rightfully) does. It addresses only PPTP, not other uses of the PPP protocol, some of which would require more kernel options I didn't mention here, but this page is only about PPTP.

I think this is a lot less daunting than the current content would seem to indicate, but I wan't sure what direction to go to get this info on the page. Alternative at the bottom? Suggested way at the top? Just gut the whole thing and replace it? I've completely overlooked something and this shouldn't be added at all? I thought I'd better seek feedback here in discussion first. :) And yes, of course I'd bother marking it up better for the real page.

Note: if you're like me, and don't like having your PPTP password in /etc/conf.d/net, which is world-readable by default, you can simply omit the password line there and instead put it in /etc/ppp/chap-secrets: your_pptp_username * "your_pptp_password" *