VPN: Debian Scripts -> Mandriva 2006 Scripts
Greetings!
I want to set my VPN work under my Mandriva 2006.
I've got what I need to do under Debian:
1) Add those strings to /etc/network/interfaces :
auto eth0
iface eth0 inet dhcp
2)Create file /etc/dhclient-exit-hooks with:
LOCAL_ROUTES="10.0.0.0/8 172.16.0.0/12"
METRIC="metric 32"
IP=/bin/ip
case "$reason" in
"BOUND" | "REBIND" | "RENEW" | "REBOOT" )
X1=""
for X in $new_routers ; do
$IP ro del default dev "$interface" via "$X" 2> /dev/null
if [ -z "$X1" ] ; then X1="$X" ; fi
done
[ -z "$X1" ] || X1="via $X1"
for R in $LOCAL_ROUTES 0/0 ; do
$IP ro replace $R dev "$interface" $X1 $METRIC
done
$IP ro flush cache
;;
esac
3)File /etc/ppp/peers/inet :
persist
pty "/usr/sbin/pptp <VPNServerIP> --nolaunchpppd"
name atest # <MyLogin>
ipparam inet
file /etc/ppp/options.pptp
4)File /etc/ppp/options.pptp :
lock
noauth
noproxyarp
nodefaultroute
nobsdcomp
nodeflate
nopredictor1
mru 1500
mtu 1400
maxfail 1024
5)/etc/ppp/chap-secrets:
atest * <MyPassword> *
6)/etc/ppp/ip-up.d/00-route-inet:
#!/bin/sh
IP=/sbin/ip
METRIC="metric 12"
if [ ".$PPP_IPPARAM" = ".inet" ] ; then
$IP ro add default dev "$PPP_IFACE" $METRIC
fi
7)# chmod a+x /etc/ppp/ip-up.d/00-route-inet
8)# pppd call inet
So, how to make it work on Mandriva?
//Regards
|