Guest User

mpd5 pptp freebsd9 error

a guest
Dec 20th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.89 KB | None | 0 0
  1. [root:~]# cat /usr/local/etc/mpd5/mpd.conf
  2. #################################################################
  3. #
  4. # MPD configuration file
  5. #
  6. # This file defines the configuration for mpd: what the
  7. # bundles are, what the links are in those bundles, how
  8. # the interface should be configured, various PPP parameters,
  9. # etc. It contains commands just as you would type them
  10. # in at the console. Lines without padding are labels. Lines
  11. # starting with a "#" are comments.
  12. #
  13. # $Id: mpd.conf.sample,v 1.46 2009/04/29 11:04:17 amotin Exp $
  14. #
  15. #################################################################
  16.  
  17. startup:
  18. # configure mpd users
  19. set user adm admin
  20. set user adm adm
  21. # configure the console
  22. set console self 127.0.0.1 5005
  23. set console open
  24. # configure the web server
  25. set web self 0.0.0.0 5006
  26. set web open
  27.  
  28. #
  29. # Default configuration is "dialup"
  30.  
  31. default:
  32. load pptp_server
  33.  
  34. pptp_server:
  35. #
  36. # Mpd as a PPTP server compatible with Microsoft Dial-Up Networking clients.
  37. #
  38. # Suppose you have a private Office LAN numbered 192.168.1.0/24 and the
  39. # machine running mpd is at 192.168.1.1, and also has an externally visible
  40. # IP address of 1.2.3.4.
  41. #
  42. # We want to allow a client to connect to 1.2.3.4 from out on the Internet
  43. # via PPTP. We will assign that client the address 192.168.1.50 and proxy-ARP
  44. # for that address, so the virtual PPP link will be numbered 192.168.1.1 local
  45. # and 192.168.1.50 remote. From the client machine's perspective, it will
  46. # appear as if it is actually on the 192.168.1.0/24 network, even though in
  47. # reality it is somewhere far away out on the Internet.
  48. #
  49. # Our DNS server is at 192.168.1.3 and our NBNS (WINS server) is at 192.168.1.4.
  50. # If you don't have an NBNS server, leave that line out.
  51. #
  52.  
  53. # Define dynamic IP address pool.
  54. set ippool add pool1 192.168.0.10 192.168.0.20
  55.  
  56. # Create clonable bundle template named B
  57. create bundle template B
  58. set iface enable proxy-arp
  59. set iface idle 1800
  60. set iface enable tcpmssfix
  61. set ipcp yes vjcomp
  62. # Specify IP address pool for dynamic assigment.
  63. set ipcp ranges 192.168.0.1/32 ippool pool1
  64. set ipcp dns 8.8.8.8
  65. # set ipcp nbns 192.168.1.4
  66. # The five lines below enable Microsoft Point-to-Point encryption
  67. # (MPPE) using the ng_mppc(8) netgraph node type.
  68. set bundle enable compression
  69. set ccp yes mppc
  70. set mppc yes e40
  71. set mppc yes e128
  72. set mppc yes stateless
  73.  
  74. # Create clonable link template named L
  75. create link template L pptp
  76. # Set bundle template to use
  77. set link action bundle B
  78. # Multilink adds some overhead, but gives full 1500 MTU.
  79. set link enable multilink
  80. set link yes acfcomp protocomp
  81. set link no pap chap eap
  82. set link enable chap
  83. # We can use use RADIUS authentication/accounting by including
  84. # another config section with label 'radius'.
  85. # load radius
  86. set link keep-alive 10 60
  87. # We reducing link mtu to avoid GRE packet fragmentation.
  88. set link mtu 1460
  89. # Configure PPTP
  90. set pptp self PUBLIC_IP
  91. # Allow to accept calls
  92. set link enable incoming
  93. set link fsm-timeout 5
  94. [root:~]# cat /etc/pf.conf
  95. #### VARIABLES
  96. eth_if = "re0"
  97. ...
  98. table <allowed_vpn> { 192.168.0.1/24 }
  99. set block-policy return
  100. nat on $eth_if from <allowed_vpn> to any -> ($eth_if)
  101. ...
  102. #### RULES
  103.  
  104. set skip on lo0
  105.  
  106. ...
  107.  
  108. [root:~]# cat /var/log/mpd5.log
  109.  
  110. Dec 20 14:46:21 ks389431 mpd: [L-1] Accepting PPTP connection
  111. Dec 20 14:46:21 ks389431 mpd: [L-1] Link: OPEN event
  112. Dec 20 14:46:21 ks389431 mpd: [L-1] LCP: Open event
  113. Dec 20 14:46:21 ks389431 mpd: [L-1] LCP: state change Initial --> Starting
  114. Dec 20 14:46:21 ks389431 mpd: [L-1] LCP: LayerStart
  115. Dec 20 14:46:21 ks389431 mpd: [L-1] PPTP: attaching to peer's outgoing call
  116. Dec 20 14:46:21 ks389431 mpd: [L-1] Link: UP event
  117. Dec 20 14:46:21 ks389431 mpd: [L-1] LCP: Up event
  118. Dec 20 14:46:21 ks389431 mpd: [L-1] LCP: state change Starting --> Req-Sent
  119. Dec 20 14:46:21 ks389431 mpd: [L-1] LCP: SendConfigReq #1
  120. Dec 20 14:46:21 ks389431 mpd: [L-1] ACFCOMP
  121. Dec 20 14:46:21 ks389431 mpd: [L-1] PROTOCOMP
  122. Dec 20 14:46:21 ks389431 mpd: [L-1] MRU 1500
  123. Dec 20 14:46:21 ks389431 mpd: [L-1] MAGICNUM 8d88eed4
  124. Dec 20 14:46:21 ks389431 mpd: [L-1] AUTHPROTO CHAP MSOFTv2
  125. Dec 20 14:46:21 ks389431 mpd: [L-1] MP MRRU 2048
  126. Dec 20 14:46:21 ks389431 mpd: [L-1] MP SHORTSEQ
  127. Dec 20 14:46:21 ks389431 mpd: [L-1] ENDPOINTDISC [802.1] 38 60 77 1a f2 ee
  128. Dec 20 14:46:21 ks389431 mpd: [L-1] LCP: rec'd Configure Request #1 (Req-Sent)
  129. Dec 20 14:46:21 ks389431 mpd: [L-1] ACCMAP 0x00000000
  130. Dec 20 14:46:21 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  131. Dec 20 14:46:21 ks389431 mpd: [L-1] PROTOCOMP
  132. Dec 20 14:46:21 ks389431 mpd: [L-1] ACFCOMP
  133. Dec 20 14:46:21 ks389431 mpd: [L-1] LCP: SendConfigAck #1
  134. Dec 20 14:46:21 ks389431 mpd: [L-1] ACCMAP 0x00000000
  135. Dec 20 14:46:21 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  136. Dec 20 14:46:21 ks389431 mpd: [L-1] PROTOCOMP
  137. Dec 20 14:46:21 ks389431 mpd: [L-1] ACFCOMP
  138. Dec 20 14:46:21 ks389431 mpd: [L-1] LCP: state change Req-Sent --> Ack-Sent
  139. Dec 20 14:46:24 ks389431 mpd: [L-1] LCP: rec'd Configure Request #1 (Ack-Sent)
  140. Dec 20 14:46:24 ks389431 mpd: [L-1] ACCMAP 0x00000000
  141. Dec 20 14:46:24 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  142. Dec 20 14:46:24 ks389431 mpd: [L-1] PROTOCOMP
  143. Dec 20 14:46:24 ks389431 mpd: [L-1] ACFCOMP
  144. Dec 20 14:46:24 ks389431 mpd: [L-1] LCP: SendConfigAck #1
  145. Dec 20 14:46:24 ks389431 mpd: [L-1] ACCMAP 0x00000000
  146. Dec 20 14:46:24 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  147. Dec 20 14:46:24 ks389431 mpd: [L-1] PROTOCOMP
  148. Dec 20 14:46:24 ks389431 mpd: [L-1] ACFCOMP
  149. Dec 20 14:46:26 ks389431 mpd: [L-1] LCP: SendConfigReq #2
  150. Dec 20 14:46:26 ks389431 mpd: [L-1] ACFCOMP
  151. Dec 20 14:46:26 ks389431 mpd: [L-1] PROTOCOMP
  152. Dec 20 14:46:26 ks389431 mpd: [L-1] MRU 1500
  153. Dec 20 14:46:26 ks389431 mpd: [L-1] MAGICNUM 8d88eed4
  154. Dec 20 14:46:26 ks389431 mpd: [L-1] AUTHPROTO CHAP MSOFTv2
  155. Dec 20 14:46:26 ks389431 mpd: [L-1] MP MRRU 2048
  156. Dec 20 14:46:26 ks389431 mpd: [L-1] MP SHORTSEQ
  157. Dec 20 14:46:26 ks389431 mpd: [L-1] ENDPOINTDISC [802.1] 38 60 77 1a f2 ee
  158. Dec 20 14:46:27 ks389431 mpd: [L-1] LCP: rec'd Configure Request #1 (Ack-Sent)
  159. Dec 20 14:46:27 ks389431 mpd: [L-1] ACCMAP 0x00000000
  160. Dec 20 14:46:27 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  161. Dec 20 14:46:27 ks389431 mpd: [L-1] PROTOCOMP
  162. Dec 20 14:46:27 ks389431 mpd: [L-1] ACFCOMP
  163. Dec 20 14:46:27 ks389431 mpd: [L-1] LCP: SendConfigAck #1
  164. Dec 20 14:46:27 ks389431 mpd: [L-1] ACCMAP 0x00000000
  165. Dec 20 14:46:27 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  166. Dec 20 14:46:27 ks389431 mpd: [L-1] PROTOCOMP
  167. Dec 20 14:46:27 ks389431 mpd: [L-1] ACFCOMP
  168. Dec 20 14:46:30 ks389431 mpd: [L-1] LCP: rec'd Configure Request #1 (Ack-Sent)
  169. Dec 20 14:46:30 ks389431 mpd: [L-1] ACCMAP 0x00000000
  170. Dec 20 14:46:30 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  171. Dec 20 14:46:30 ks389431 mpd: [L-1] PROTOCOMP
  172. Dec 20 14:46:30 ks389431 mpd: [L-1] ACFCOMP
  173. Dec 20 14:46:30 ks389431 mpd: [L-1] LCP: SendConfigAck #1
  174. Dec 20 14:46:30 ks389431 mpd: [L-1] ACCMAP 0x00000000
  175. Dec 20 14:46:30 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  176. Dec 20 14:46:30 ks389431 mpd: [L-1] PROTOCOMP
  177. Dec 20 14:46:30 ks389431 mpd: [L-1] ACFCOMP
  178. Dec 20 14:46:31 ks389431 mpd: [L-1] LCP: SendConfigReq #3
  179. Dec 20 14:46:31 ks389431 mpd: [L-1] ACFCOMP
  180. Dec 20 14:46:31 ks389431 mpd: [L-1] PROTOCOMP
  181. Dec 20 14:46:31 ks389431 mpd: [L-1] MRU 1500
  182. Dec 20 14:46:31 ks389431 mpd: [L-1] MAGICNUM 8d88eed4
  183. Dec 20 14:46:31 ks389431 mpd: [L-1] AUTHPROTO CHAP MSOFTv2
  184. Dec 20 14:46:31 ks389431 mpd: [L-1] MP MRRU 2048
  185. Dec 20 14:46:31 ks389431 mpd: [L-1] MP SHORTSEQ
  186. Dec 20 14:46:31 ks389431 mpd: [L-1] ENDPOINTDISC [802.1] 38 60 77 1a f2 ee
  187. Dec 20 14:46:33 ks389431 mpd: [L-1] LCP: rec'd Configure Request #1 (Ack-Sent)
  188. Dec 20 14:46:33 ks389431 mpd: [L-1] ACCMAP 0x00000000
  189. Dec 20 14:46:33 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  190. Dec 20 14:46:33 ks389431 mpd: [L-1] PROTOCOMP
  191. Dec 20 14:46:33 ks389431 mpd: [L-1] ACFCOMP
  192. Dec 20 14:46:33 ks389431 mpd: [L-1] LCP: SendConfigAck #1
  193. Dec 20 14:46:33 ks389431 mpd: [L-1] ACCMAP 0x00000000
  194. Dec 20 14:46:33 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  195. Dec 20 14:46:33 ks389431 mpd: [L-1] PROTOCOMP
  196. Dec 20 14:46:33 ks389431 mpd: [L-1] ACFCOMP
  197. Dec 20 14:46:36 ks389431 mpd: [L-1] LCP: SendConfigReq #4
  198. Dec 20 14:46:36 ks389431 mpd: [L-1] ACFCOMP
  199. Dec 20 14:46:36 ks389431 mpd: [L-1] PROTOCOMP
  200. Dec 20 14:46:36 ks389431 mpd: [L-1] MRU 1500
  201. Dec 20 14:46:36 ks389431 mpd: [L-1] MAGICNUM 8d88eed4
  202. Dec 20 14:46:36 ks389431 mpd: [L-1] AUTHPROTO CHAP MSOFTv2
  203. Dec 20 14:46:36 ks389431 mpd: [L-1] MP MRRU 2048
  204. Dec 20 14:46:36 ks389431 mpd: [L-1] MP SHORTSEQ
  205. Dec 20 14:46:36 ks389431 mpd: [L-1] ENDPOINTDISC [802.1] 38 60 77 1a f2 ee
  206. Dec 20 14:46:36 ks389431 mpd: [L-1] LCP: rec'd Configure Request #1 (Ack-Sent)
  207. Dec 20 14:46:36 ks389431 mpd: [L-1] ACCMAP 0x00000000
  208. Dec 20 14:46:36 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  209. Dec 20 14:46:36 ks389431 mpd: [L-1] PROTOCOMP
  210. Dec 20 14:46:36 ks389431 mpd: [L-1] ACFCOMP
  211. Dec 20 14:46:36 ks389431 mpd: [L-1] LCP: SendConfigAck #1
  212. Dec 20 14:46:36 ks389431 mpd: [L-1] ACCMAP 0x00000000
  213. Dec 20 14:46:36 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  214. Dec 20 14:46:36 ks389431 mpd: [L-1] PROTOCOMP
  215. Dec 20 14:46:36 ks389431 mpd: [L-1] ACFCOMP
  216. Dec 20 14:46:39 ks389431 mpd: [L-1] LCP: rec'd Configure Request #1 (Ack-Sent)
  217. Dec 20 14:46:39 ks389431 mpd: [L-1] ACCMAP 0x00000000
  218. Dec 20 14:46:39 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  219. Dec 20 14:46:39 ks389431 mpd: [L-1] PROTOCOMP
  220. Dec 20 14:46:39 ks389431 mpd: [L-1] ACFCOMP
  221. Dec 20 14:46:39 ks389431 mpd: [L-1] LCP: SendConfigAck #1
  222. Dec 20 14:46:39 ks389431 mpd: [L-1] ACCMAP 0x00000000
  223. Dec 20 14:46:39 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  224. Dec 20 14:46:39 ks389431 mpd: [L-1] PROTOCOMP
  225. Dec 20 14:46:39 ks389431 mpd: [L-1] ACFCOMP
  226. Dec 20 14:46:41 ks389431 mpd: [L-1] LCP: SendConfigReq #5
  227. Dec 20 14:46:41 ks389431 mpd: [L-1] ACFCOMP
  228. Dec 20 14:46:41 ks389431 mpd: [L-1] PROTOCOMP
  229. Dec 20 14:46:41 ks389431 mpd: [L-1] MRU 1500
  230. Dec 20 14:46:41 ks389431 mpd: [L-1] MAGICNUM 8d88eed4
  231. Dec 20 14:46:41 ks389431 mpd: [L-1] AUTHPROTO CHAP MSOFTv2
  232. Dec 20 14:46:41 ks389431 mpd: [L-1] MP MRRU 2048
  233. Dec 20 14:46:41 ks389431 mpd: [L-1] MP SHORTSEQ
  234. Dec 20 14:46:41 ks389431 mpd: [L-1] ENDPOINTDISC [802.1] 38 60 77 1a f2 ee
  235. Dec 20 14:46:42 ks389431 mpd: [L-1] LCP: rec'd Configure Request #1 (Ack-Sent)
  236. Dec 20 14:46:42 ks389431 mpd: [L-1] ACCMAP 0x00000000
  237. Dec 20 14:46:42 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  238. Dec 20 14:46:42 ks389431 mpd: [L-1] PROTOCOMP
  239. Dec 20 14:46:42 ks389431 mpd: [L-1] ACFCOMP
  240. Dec 20 14:46:42 ks389431 mpd: [L-1] LCP: SendConfigAck #1
  241. Dec 20 14:46:42 ks389431 mpd: [L-1] ACCMAP 0x00000000
  242. Dec 20 14:46:42 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  243. Dec 20 14:46:42 ks389431 mpd: [L-1] PROTOCOMP
  244. Dec 20 14:46:42 ks389431 mpd: [L-1] ACFCOMP
  245. Dec 20 14:46:45 ks389431 mpd: [L-1] LCP: rec'd Configure Request #1 (Ack-Sent)
  246. Dec 20 14:46:45 ks389431 mpd: [L-1] ACCMAP 0x00000000
  247. Dec 20 14:46:45 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  248. Dec 20 14:46:45 ks389431 mpd: [L-1] PROTOCOMP
  249. Dec 20 14:46:45 ks389431 mpd: [L-1] ACFCOMP
  250. Dec 20 14:46:45 ks389431 mpd: [L-1] LCP: SendConfigAck #1
  251. Dec 20 14:46:45 ks389431 mpd: [L-1] ACCMAP 0x00000000
  252. Dec 20 14:46:45 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  253. Dec 20 14:46:45 ks389431 mpd: [L-1] PROTOCOMP
  254. Dec 20 14:46:45 ks389431 mpd: [L-1] ACFCOMP
  255. Dec 20 14:46:46 ks389431 mpd: [L-1] LCP: SendConfigReq #6
  256. Dec 20 14:46:46 ks389431 mpd: [L-1] ACFCOMP
  257. Dec 20 14:46:46 ks389431 mpd: [L-1] PROTOCOMP
  258. Dec 20 14:46:46 ks389431 mpd: [L-1] MRU 1500
  259. Dec 20 14:46:46 ks389431 mpd: [L-1] MAGICNUM 8d88eed4
  260. Dec 20 14:46:46 ks389431 mpd: [L-1] AUTHPROTO CHAP MSOFTv2
  261. Dec 20 14:46:46 ks389431 mpd: [L-1] MP MRRU 2048
  262. Dec 20 14:46:46 ks389431 mpd: [L-1] MP SHORTSEQ
  263. Dec 20 14:46:46 ks389431 mpd: [L-1] ENDPOINTDISC [802.1] 38 60 77 1a f2 ee
  264. Dec 20 14:46:48 ks389431 mpd: [L-1] LCP: rec'd Configure Request #1 (Ack-Sent)
  265. Dec 20 14:46:48 ks389431 mpd: [L-1] ACCMAP 0x00000000
  266. Dec 20 14:46:48 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  267. Dec 20 14:46:48 ks389431 mpd: [L-1] PROTOCOMP
  268. Dec 20 14:46:48 ks389431 mpd: [L-1] ACFCOMP
  269. Dec 20 14:46:48 ks389431 mpd: [L-1] LCP: SendConfigAck #1
  270. Dec 20 14:46:48 ks389431 mpd: [L-1] ACCMAP 0x00000000
  271. Dec 20 14:46:48 ks389431 mpd: [L-1] MAGICNUM 1652bd1d
  272. Dec 20 14:46:48 ks389431 mpd: [L-1] PROTOCOMP
  273. Dec 20 14:46:48 ks389431 mpd: [L-1] ACFCOMP
  274. Dec 20 14:46:51 ks389431 mpd: [L-1] LCP: SendConfigReq #7
  275. Dec 20 14:46:51 ks389431 mpd: [L-1] ACFCOMP
  276. Dec 20 14:46:51 ks389431 mpd: [L-1] PROTOCOMP
  277. Dec 20 14:46:51 ks389431 mpd: [L-1] MRU 1500
  278. Dec 20 14:46:51 ks389431 mpd: [L-1] MAGICNUM 8d88eed4
  279. Dec 20 14:46:51 ks389431 mpd: [L-1] AUTHPROTO CHAP MSOFTv2
  280. Dec 20 14:46:51 ks389431 mpd: [L-1] MP MRRU 2048
  281. Dec 20 14:46:51 ks389431 mpd: [L-1] MP SHORTSEQ
  282. Dec 20 14:46:51 ks389431 mpd: [L-1] ENDPOINTDISC [802.1] 38 60 77 1a f2 ee
  283. Dec 20 14:46:51 ks389431 mpd: [L-1] PPTP call terminated
  284. Dec 20 14:46:51 ks389431 mpd: [L-1] Link: DOWN event
  285. Dec 20 14:46:51 ks389431 mpd: [L-1] LCP: Close event
  286. Dec 20 14:46:51 ks389431 mpd: [L-1] LCP: state change Ack-Sent --> Closing
  287. Dec 20 14:46:51 ks389431 mpd: [L-1] LCP: SendTerminateReq #8
  288. Dec 20 14:46:51 ks389431 mpd: [L-1] LCP: Down event
  289. Dec 20 14:46:51 ks389431 mpd: [L-1] LCP: LayerFinish
  290. Dec 20 14:46:51 ks389431 mpd: [L-1] LCP: state change Closing --> Initial
  291. Dec 20 14:46:51 ks389431 mpd: [L-1] Link: SHUTDOWN event
  292. Dec 20 14:46:51 ks389431 mpd: [L-1] Link: Shutdown
  293. [root:~]# ifconfig re0
  294. re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
  295. options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
  296. ether 38:60:77:1a:f2:ee
  297. inet PUBLIC_IP netmask 0xffffff00 broadcast 176.31.96.255
  298. inet6 fe80::3a60:77ff:fe1a:f2ee%re0 prefixlen 64 scopeid 0x1
  299. inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
  300. nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
  301. media: Ethernet autoselect (100baseTX <full-duplex>)
  302. status: active
Advertisement
Add Comment
Please, Sign In to add comment