On Sat, Dec 13, 2003 at 03:43:21PM +0200, Offer Kaye wrote:
> > gave me http://pptpclient.sourceforge.net/howto-fedora.phtml.
> >
>
> Ouch! Looks complicated... :-(
And irrelevant anyway. They're using PPTP as a VPN-to-the-office
solution.
> Ilya, do I have to use this? Can't I use the Netvision supplied binary?
Upgrading pptp is always a good idea.
And now, how to use PPTP on Fedora:
Replace 'netvision' with your ISP name.
... 'cable.netvision.net.il' with your ISP's pptp server.
... 'johndoe' with your username at the ISP.
... 'secret' with your password at the ISP.
1. Download pptp-linux RPM package for Fedora from:
http://pptp-client.sf.net/
(Yes, RedHat, the *user-friendly* distro doesn't carry a PPTP
package.)
2. Create file /etc/sysconfig/network-scripts/ifcfg-netvision,
containing:
------------------------>8-(cut here)->8--------------------------------
# Set this to 'yes' if you want to connect on system startup.
ONBOOT=yes
USERCTL=yes
TYPE=Modem
PEERDNS=yes
DEVICE=ppp0
PROVIDER=netvision
# Default route must not be set; read on for explanation.
DEFROUTE=no
------------------------>8-(cut here)->8--------------------------------
3. Create file /etc/ppp/peers/netvision, containing:
------------------------>8-(cut here)->8--------------------------------
user "johndoe"
remotename "cable.netvision.net.il"
persist
pty "pptp-routed cable.netvision.net.il --nolaunchpppd"
noauth
usepeerdns
nodefaultroute
------------------------>8-(cut here)->8--------------------------------
4. Add to your /etc/ppp/pap-secrets file:
johndoe cable.netvision.net.il secret
5. Create file /etc/ppp/ip-up.local, containing:
------------------------>8-(cut here)->8--------------------------------
#!/bin/sh
GATEWAY=$5
DEFRT=`ip route list | awk '/^default / { print $3 }'`
[ -n "${DEFRT}" ] && echo $DEFRT > /etc/default-route
logger Deleting current default route $DEFRT and adding $GATEWAY as default route.
route del default >/dev/null 2>&1
route add default $GATEWAY >/dev/null 2>&1
------------------------>8-(cut here)->8--------------------------------
Explanation: Since pppd no longer has the 'replacedefaultroute' option,
we need to "emulate" it. RedHat tries, but unfortunately it deletes the
previous default route too early, before we start the PPTP connection.
Thus, we set DEFROUTE=no (in ifcfg-netvision) and add a small script to
do it ourselves.
5. Run 'ifup netvision'
That's it. You should be connected. Run '/sbin/ifconfig' to verify you
have a ppp0 interface. Run 'ifdown netvision' to disconnect.
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]