Pptpvpn

Allikas: Kuutõrvaja
Redaktsioon seisuga 22. oktoober 2006, kell 17:47 kasutajalt Jj (arutelu | kaastöö)

pptp vpn server mpd'ga

VPN sissehelistamis serveri loomiseks tuleb installida port mpd

cd /usr/ports/net/mpd && make install

seejärel

cd /usr/local/etc/mpd

alla failid

mpd.conf

default:
	load kasutaja 

kasutaja:
	new -i ng13 pptp13 pptp13
	set ipcp ranges 192.168.69.1/32 192.168.69.15/32
	load pptp

pptp:
	set iface disable on-demand
	set iface enable proxy-arp
	set bundle disable multilink
	set link yes acfcomp protocomp
	set link no pap chap
	set link enable chap
	set link keep-alive 60 180
	set ipcp yes vjcomp
	set ipcp dns 194.126.115.18
	set bundle enable compression
	set link mtu 1460
	set ccp yes mppc
	set ccp yes mpp-e40
	set ccp yes mpp-e128
	set ccp yes mpp-stateless
	set bundle yes crypt-reqd


mpd.links

pptp13:
set link type pptp
set pptp self sinu.v2limine.ip
set pptp enable incoming
set pptp disable originate 

mpd.secret

kasutaja "parool" 192.168.xx.xx(x ide asemel pane oma endpoint e ip
mis saad sissehelistamisel)

kõik tähelepanelik tasub olla tab'idega loomulikult nagu t väidab :)


selleks ,et enda XP'ga ühendada end pptp vpn serveri külge on netis olemas väga hea eestikeelne õpetus http://kriku.gameland.ee/vpn/

saab ka käsurealt luua ühenduse pptp serveriga pole küll ise seda töölesaanud kuid klientmasina mpd konf oleks masina jaoks selline

default:
load work

work:
new -i ng1 ms-pptp work
set log +pptp +pptp2 +pptp3 +lcp +auth
#set ipcp ranges 192.168.3.9/32 192.168.3.10/32
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
set ipcp yes vjcomp
set ipcp dns 194.126.115.18
set ipcp dns primar 194.126.101.34
set ipcp enable req-pri-dns req-sec-dns
set link disable chap pap
set link accept chap
set link yes acfcomp protocomp
set iface idle 0
set bundle enable multilink
set bundle yes crypt-reqd
set bundle enable compression
set link enable no-orig-auth
set link keep-alive 60 600
set ccp yes mppc
set ccp enable mpp-compress
set ccp yes mpp-e40
set ccp yes mpp-e56
set ccp yes mpp-e128
set ccp yes mpp-stateless
#set iface proxy-arp
set iface route 192.168.1.0/24
set bundle authname "kasutaja"
set bundle password "parool"
set iface disable on-demand
set link max-redial 9
set iface mtu 1452
#set ccp no mpp-compress
open iface