Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2006, 09:46 PM
Kronos Kronos is offline
Member
 
Join Date: Jul 2006
Location: Russia
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default VPN(PPTP) on PCBSD
PLZ translate this to your lang.

Hi ppl! Today i explain how install vpn(pptp) in your os.

Use root mod.

Понеслась:

1 - Install PCBSD =)
2 - Download mpd-3.18_4.tbz and put it in folder /usr/ports/
3 - Open konsole and input su.
4 - In konsole input cd /usr/ports/
5 - In konsole input pkg_add mpd-3.18_4.tbz
6 - Go to folder /usr/local/etc/mpd/ and greate file mpd.conf :
Code:
default:
 load vpn

vpn:
new -i ng0 vpn vpn
 set iface disable on-demand
 set iface idle 0
 set iface up-script /usr/local/etc/mpd/io-up.sh
 set iface down-script /usr/local/etc/mpd/io-down.sh
 set iface route default
 set bundle disable multilink
 set bundle authname VPN_LOGIN
 set bundle password VPN_PASSWORD
 set link yes acfcomp protocomp 
 set link disable chap pap 
 set link accept chap pap 
 set link enable no-orig-auth 
 set link keep-alive 10 75 
 set link mtu 1492 
 set ipcp yes vjcomp 
 set ipcp ranges 0.0.0.0/0 0.0.0.0/0 
 set ccp yes mpp-stateless 

 open
7 - In folder /usr/local/etc/mpd create file mpd.links :
Code:
vpn: 
 set link type pptp 
 set pptp peer IP_адрес_вашего_VPN_сервера 
 set pptp enable originate outcall
8 - In folder /usr/local/etc/mpd create file io-up.sh :
Code:
#!/bin/sh 
 vpn_ip=IVPN_SERVER_IP
 ip_def_gw=GATE_IP 
 /sbin/route delete $vpn_ip 
 /sbin/route add $vpn_ip $ip_def_gw 
 /sbin/route delete default 
 /sbin/route add default -interface ng0
9 - In folder /usr/local/etc/mpd create file io-down.sh :
Code:
#!/bin/sh 
 vpn_ip=VPN_SERVER_IP
 ip_def_gw=GATE_IP 
 /sbin/route delete default 
 /sbin/route add default $ip_def_gw 
 /sbin/route delete $vpn_ip
10 - Open konsole and input cd /usr/local/etc/mpd/
11 - In konsole input chmod +x io-up.sh
12 - In konsole input chmod +x io-down.sh
13 - Reboot your PC.
14 - Open konsole and input mpd, this command start your VPN.

P.S. If you want auto connect VPN when you boot your PCBSD.
1 - Go to folder /etc/
2 - Find file rc.conf.
3 - Open file rc.conf and write this in the and:
Code:
# VPN for svao.net auto connect option
mpd_enable="YES"
4 - Save and reboot your PC.


All done =) .
Reply With Quote
  #2  
Old 08-14-2006, 09:50 PM
Kronos Kronos is offline
Member
 
Join Date: Jul 2006
Location: Russia
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default
RUSSIAN / РУССКИЙ

Доброго времени суток мои маленькие бздявые любители хардкорного секса. :twisted: Сегодня я расскажу вам как настроить VPN по протоколу PPTP. Для этого нам понадобится BSD версии 6.1(может можно и младшие версии, но там скорее всего прийдется пересобрать ядро), пара прямых рук растущих из плеч, пакет mpd-3.18_4.tbz, и безумное желание настроит VPN.
Лично я протрахался 5 дней пока сообразил.
Всё ниже приведеное должно быть выполнено с правами root.

Понеслась:

1 - Установить бсд(ну это вы уже сами)
2 - Скачиваем отсюда это файло mpd-3.18_4.tbz и кладем его в папку /usr/ports/
3 - Открываем консоль и переходим в режим администратора командой su.
4 - В консоле пишем cd /usr/ports/
5 - В консоле пишем pkg_add mpd-3.18_4.tbz
6 - Консоль не закрываем, она нам еще пригодится. Переходим в папку /usr/local/etc/mpd/ и там создаём файл mpd.conf с содержанием:
Code:
default:
 load vpn

vpn:
new -i ng0 vpn vpn
 set iface disable on-demand
 set iface idle 0
 set iface up-script /usr/local/etc/mpd/io-up.sh
 set iface down-script /usr/local/etc/mpd/io-down.sh
 set iface route default
 set bundle disable multilink
 set bundle authname Ваш_VPN_логин
 set bundle password Ваш_VPN_пароль
 set link yes acfcomp protocomp 
 set link disable chap pap 
 set link accept chap pap 
 set link enable no-orig-auth 
 set link keep-alive 10 75 
 set link mtu 1492 
 set ipcp yes vjcomp 
 set ipcp ranges 0.0.0.0/0 0.0.0.0/0 
 set ccp yes mpp-stateless 

 open
7 - В папке /usr/local/etc/mpd создаём файл с именем mpd.links с содержанием:
Code:
vpn: 
 set link type pptp 
 set pptp peer IP_адрес_вашего_VPN_сервера 
 set pptp enable originate outcall
8 - В папке /usr/local/etc/mpd создать файл io-up.sh с содержанием:
Code:
#!/bin/sh 
 vpn_ip=IP_адрес_вашего_VPN_сервера
 ip_def_gw=IP_вашего_шлюза 
 /sbin/route delete $vpn_ip 
 /sbin/route add $vpn_ip $ip_def_gw 
 /sbin/route delete default 
 /sbin/route add default -interface ng0
9 - В папке /usr/local/etc/mpd создать файл io-down.sh с содержанием:
Code:
#!/bin/sh 
 vpn_ip=IP_адрес_вашего_VPN_сервера 
 ip_def_gw=IP_вашего_шлюза 
 /sbin/route delete default 
 /sbin/route add default $ip_def_gw 
 /sbin/route delete $vpn_ip
10 - Переходим в консоль с правами рута и пишем cd /usr/local/etc/mpd/
11 - В косоле пишем chmod +x io-up.sh
12 - В косоле пишем chmod +x io-down.sh
13 - Перезапускаем комп.
14 - Переходим в консоль и пишем mpd, тем самым врубая VPN.

P.S. Если хотите, чтобы VPN автоматически соединялся с сервером при запуске компа, то делаем так. Переходим в папку /etc/ и находим там файл rc.conf. Открываем файл rc.conf в любом редакторе и в самом низу дописываем:
Code:
# VPN for svao.net auto connect option
mpd_enable="YES"
Сохраняем и перезапускаем комп.
Reply With Quote
  #3  
Old 08-15-2006, 07:47 PM
Apatewna Apatewna is offline
Senior Member
 
Join Date: May 2006
Location: Greece
Posts: 1,142
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Apatewna Send a message via MSN to Apatewna Send a message via Yahoo to Apatewna
Default
Please correct me if I am wrong, I have only setup VPN on Cisco routers using the Cisco SDM interface.
I see the configuration you posted but I don't see any encryption of traffic or any form of secure authentication (eg preshared key with encryption).
I claim to be no expert on VPNs but encyption of traffic and authentication are the first things I try to spot.
Maybe there is some (advanced) step you skipped in the config?
__________________
RTFM and STFW before anything bad happens

Please read and UNDERSTAND these pages before posting:
http://www.catb.org/~esr/faqs/smart-questions.html
http://en.wikipedia.org/wiki/Netiquette
Reply With Quote
  #4  
Old 08-15-2006, 07:55 PM
Kronos Kronos is offline
Member
 
Join Date: Jul 2006
Location: Russia
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default
I forget. I made this config for my network. In my network there is no encripting.
This config woked, if you need it, you can add into mpd.conf.
Reply With Quote
  #5  
Old 08-15-2006, 08:08 PM
Apatewna Apatewna is offline
Senior Member
 
Join Date: May 2006
Location: Greece
Posts: 1,142
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Apatewna Send a message via MSN to Apatewna Send a message via Yahoo to Apatewna
Default
...and you know what they say, "if it works don't touch it"
__________________
RTFM and STFW before anything bad happens

Please read and UNDERSTAND these pages before posting:
http://www.catb.org/~esr/faqs/smart-questions.html
http://en.wikipedia.org/wiki/Netiquette
Reply With Quote
  #6  
Old 09-13-2006, 09:48 AM
Skywalker Skywalker is offline
Junior Member
 
Join Date: Sep 2006
Location: Russia
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
And a couple of advices:

- Be careful with gaps in config files!
- Check 7 times routings config! In my network standart change of default routing after connection setup wasn't work, so i had to discover the right way myself..


P.S. Sorry for my poor english

------
FreeBSD fan
Reply With Quote
  #7  
Old 09-13-2006, 04:05 PM
heinrich heinrich is offline
Senior Member
 
Join Date: Jul 2006
Location: Russia, Perm
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to heinrich
Default Re: VPN(PPTP) on PCBSD
Originally Posted by Kronos
PLZ translate this to your lang.

Hi ppl! Today i explain how install vpn(pptp) in your os.

Use root mod.
Спасибо дружище :-)
Reply With Quote
  #8  
Old 10-22-2006, 11:26 AM
Kronos Kronos is offline
Member
 
Join Date: Jul 2006
Location: Russia
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: VPN(PPTP) on PCBSD
Originally Posted by heinrich
Originally Posted by Kronos
PLZ translate this to your lang.

Hi ppl! Today i explain how install vpn(pptp) in your os.

Use root mod.
Спасибо дружище :-)
Всегда Welcome! =)))
Reply With Quote
  #9  
Old 11-24-2006, 12:53 PM
dev dev is offline
Junior Member
 
Join Date: Nov 2006
Location: Zimbabwe
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default
а PPPoE кто может осилить ?
Reply With Quote
  #10  
Old 02-17-2007, 12:48 PM
heinrich heinrich is offline
Senior Member
 
Join Date: Jul 2006
Location: Russia, Perm
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to heinrich
Default
Originally Posted by dev
а PPPoE кто может осилить ?
Plz.
http://www.freebsd.org/doc/ru_RU.KOI...ook/pppoe.html
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTP client in PC-BSD ltwally General Questions 3 05-07-2009 01:43 PM
mppe support (Microsoft pptp support)? tlpintpe FreeBSD Help 0 09-20-2005 05:36 AM
Use of pptp/mppe in pcbsd tlpintpe General Questions 0 09-19-2005 03:01 AM


All times are GMT. The time now is 11:36 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.