################################################################# # # MPD configuration file # # This file defines the configuration for mpd: what the # bundles are, what the links are in those bundles, how # the interface should be configured, various PPP parameters, # etc. It contains commands just as you would type them # in at the console. Lines without padding are labels. Lines # starting with a "#" are comments. # # $Id: mpd.conf.sample,v 1.46 2009/04/29 11:04:17 amotin Exp $ # ################################################################# startup: # Задаем пароль для доступа в web-intarface # т.е меняем password на свой пароль # set user usrname password just-pass # set user password cancer # configure the console # set console self 127.0.0.1 5005 # set console open # configure the web server # set web self 0.0.0.0 5006 # set web open default: load pptp_server pptp_server: # Видно, что имеем всего 3 одновременных подключения set ippool add poolsat 192.168.36.80 192.168.36.83 create bundle template B set iface enable proxy-arp set iface idle 0 set iface enable tcpmssfix set ipcp yes vjcomp set ipcp ranges 192.168.36.254/32 ippool poolsat #DNS нам не нужен # set ipcp dns 192.168.0.254 #Wins можно оставить, если он действительно запущен set ipcp nbns 192.168.36.237 # Enable Microsoft Point-to-Point encryption (MPPE) # set bundle enable compression # 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 no pap chap eap set link enable chap set link enable chap-msv1 set link enable chap-msv2 # We reducing link mtu to avoid GRE packet fragmentation. set link mtu 1460 set link keep-alive 10 60 # Configure PPTP and open link # IFFACE PPTPD set pptp self 26.31.130.242 # Allow to accept calls set link enable incoming