Tr:HOWTO: Setting up PPTP VPN connection in konsole
NASIL: Konsol'da PPTP VPN Bağlantısı Kurma
Setting up PPTP VPN connection in konsole:
pptpvpn dosyası oluşturunuz:
#!/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şunu yazan yer,
pty \"pptp VPN.SERVER.COM --nolaunchpppd\"
Betiğin özel bir uçbirim aygıtından daha çok iletişim için kullanılacağını gösterir. Bu durumda Noktadan-noktaya Tünel Protokolu (PPTP) uygulayan Sanal Özel Ağ (VPN)'in istemci tarafını kuran pptp istemcisini kullanacağız.
route add -host 63.xxx.xxx.xxx dev ppp0 - bu tünelin diğer tarafında hangi ana bilgisayarın olduğunu gösterir. (ana bilgisayar adı veya IP adresi)
Kapatın ve sayfayı kaydedin.
chmod +x pptpvpn
sudo ./pptpvpn username password
Eğer herşey doğru yapıldıysa hatta girebilmelisiniz ve ppp0 açık olmalı. Uzak sunucu IP adresi ve diğer yönledirme bilgisini atayacaktır
PPTP sunucunun vpn bağlantısını kapatma
Basitçe pppd servisini öldürün, uçbirime şunu girin:
killall pppd
Benim dağıtımımda çalıştı, bu sadece kurmak zorunda olacağınız pptp paketine bağlı..