LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-30-2005, 12:10 PM   #1
Undefined
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Sarge, Installed mirror, I need scripts for updating..... tyranus Debian 1 09-01-2005 11:28 PM
Startup scripts on Debian fanda Linux - Newbie 3 11-21-2004 06:01 AM
debian start up scripts? pgte3 Debian 7 08-25-2004 06:42 PM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 12:56 PM
Howto convert Gentoo wlan scripts to Debian? Naughtyus Debian 1 02-25-2004 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration