среда, 27 апреля 2011 г.

PPTP - VPN (mpd5)

mpd.conf: ---------------------------------

startup:
# configure mpd users
#set user foo bar admin
#set user foo1 bar1
# configure the console
#set console self 127.0.0.1 5005
#set console open
# configure the web server
#set web self 172.16.1.1 5006
#set web open
set web ip 127.0.0.1
set web port 5006
set web user vpn vpn
set web open

default:
load pptp_server

pptp_server:
set ippool add pool1 192.168.1.21 192.168.1.30
# Create clonable bundle template named B
create bundle template B
#set iface up-script /usr/local/etc/mpd5/if-up.sh
#set iface down-script /usr/local/etc/mpd5/if-down.sh
set iface enable proxy-arp
set iface idle 1800
set iface enable tcpmssfix
set ipcp yes vjcomp
# Specify IP address pool for dynamic assigment.
set ipcp ranges 192.168.1.20/32 ippool pool1
set ipcp dns 192.168.1.1
# The five lines below enable Microsoft Point-to-Point encryption
# (MPPE) using the ng_mppc(8) netgraph node type.
set bundle enable compression
set bundle enable crypt-reqd
set ccp yes mppc
set mppc yes compress e40 e56 e128 stateless
# Create clonable link template named L
create link template L pptp
# Set bundle template to use
set link action bundle B
# Multilink adds some overhead, but gives full 1500 MTU.
set link enable multilink
set link yes acfcomp protocomp
set link disable pap chap eap
set link enable chap chap-msv1 chap-msv2 chap-md5
# We can use use RADIUS authentication/accounting by including
# another config section with label 'radius'.
# load radius
set link keep-alive 10 60
# We reducing link mtu to avoid GRE packet fragmentation.
set link mtu 1460
set link mru 1460
# Configure PPTP
set pptp self 62.216.3.50
# Allow to accept calls
set pptp disable windowing
set link enable incoming



mpd.secret: ---------------------------------

user "paSSword"

Комментариев нет:

Отправить комментарий