Submit Your Article Forum Rules FAQ About Us
Search the forums:

Tech Support Team


Hello and Welcome to Tech Support Team! Before you can start posting and answering questions, you'll have to register. Registration is fast, simple and absolutely free! Feel free to browse through existing questions by choosing the forum you want to visit below.



Reply
  #1 (permalink)   Top
Old 26th November 2008, 05:50 PM
Mikorist's Avatar
TST Member
 
Join Date: Sep 2008, 70 posts.
Location: Belgrade, Serbia
Reputation: Mikorist is on a distinguished road
Lightbulb Setting up PPTP VPN connection in konsole.

Install PPTP Client from the Debian Project:
Code:
sudo apt-get install pptp-linux
make pptpvpn file:
Code:
#!/bin/bash
function routeadd {
   route add -host 61.xxx.xxx.xxx dev ppp0
   route add -host 62.xxx.xxx.xxx dev ppp0
   route add -host 63.xxx.xxx.xxx dev ppp0
}
function makepptp {
   echo pty \"pptp VPN.SERVER.COM --nolaunchpppd\" >> /etc/ppp/peers/pptpvpn;
   echo remotename PPTP >> /etc/ppp/peers/pptpvpn;
   echo require-mppe-128 >> /etc/ppp/peers/pptpvpn;
   echo file /etc/ppp/options.pptp >> /etc/ppp/peers/pptpvpn;
   echo ipparam pptpvpn >> /etc/ppp/peers/pptpvpn;
pppd call pptpvpn &
}
if [ -a /etc/ppp/chap-secrets ];
		then
		rm /etc/ppp/chap-secrets
	echo $1 PPTP $2 '*' >> /etc/ppp/chap-secrets;
else
	echo $1 PPTP $2 '*' >> /etc/ppp/chap-secrets;
fi

if [ -e /etc/ppp/peers/pptpvpn ];
	then
	rm /etc/ppp/peers/pptpvpn;
	echo name $1 >> /etc/ppp/peers/pptpvpn;
	makepptp;
	sleep 8;
	routeadd;
else
	echo name $1 >> /etc/ppp/peers/pptpvpn;	
	makepptp;
	sleep 8;
	routeadd;
fi
Where,
pty \"pptp VPN.SERVER.COM --nolaunchpppd\"
Specifies that the command script is to be used to communicate rather than a specific terminal device. In this case we are using pptp client to establishes the client side of a Virtual Private Network (VPN) using the Point-to-Point Tunneling Protocol (PPTP).
VPN.SERVER.COM is host name (or IP address) for the VPN server

route add -host 63.xxx.xxx.xxx dev ppp0 - this will tell which hosts are on the other side of tunnel. (host name or IP address)

Close and save the file.
Code:
chmod +x pptpvpn
Code:
sudo ./pptpvpn username password
If everything is went correctly you should be online and ppp0 should be up. Remote server will assign IP address and other routing information

Disconnect PPTP server vpn connection
Simply kill pppd service, enter:
Code:
killall pppd
it will work on any distribution, its just a matter of
pptp package you will have to install..

__________________
YouCanMail.Me
Reply With Quote
  #2 (permalink)   Top
Old 26th November 2008, 06:11 PM
Blackmirror's Avatar
TST Oracle
 
Join Date: Jul 2008, 8,169 posts.
Location: UK Norfolk .....
Reputation: Blackmirror is on a distinguished road
Thanks and nice to see you Mikorist
__________________
Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, chocolate in one hand, wine in the other, body thoroughly used up, totally worn out and screaming...
Damn, What a ride!!
Reply With Quote
  #3 (permalink)   Top
Old 26th November 2008, 06:49 PM
Albert Lionheart's Avatar
TST Oracle
 
Join Date: Dec 2007, 7,960 posts.
Location: Market Haemorrhoids, Middle England
Reputation: Albert Lionheart is on a distinguished road
I'll keep that until I start messing with the thing. Cheers!
__________________
Never take life seriously; nobody gets out alive anyway.
Reply With Quote
Reply

Only registered members can participate in forum threads. You must register or log in to contribute.


Tags
distribution, linux, pppd, vpn

Thread Tools

Forum Jump


All times are GMT. The time now is 03:49 PM.






Post A Question!
Useful Links
Main Menu
Home
Forum Rules
FAQ
About Us
Welcome Pack
Search the forums
TST Mobile
Contact Us
Send Message

These are the 18 most used thread tags
Tag Cloud
32-bit cat drivers geforce hardware intel gfxui mobile 4 chipset driers modem monitor network no ring response no signal nvidia soft modem software wifi win7 windows 7