Re: Обсуждение статьи mpd5 + сжатие и шифрование
Добавлено: 2009-04-04 12:02:40
Понятно, спасибо. Значит поднимаем MPD
Иногда, правильный удар в бубен, приводит в чувство целое племя...
https://forum.lissyara.su/
Код: Выделить всё
[f0s@router] /home/f0s/> uname -a
FreeBSD router.artpaint 6.3-RELEASE-p10 FreeBSD 6.3-RELEASE-p10 #0: Fri May 8 13:46:09 MSD 2009 f0s@router.artpaint:/usr/obj/usr/src/sys/router-2009-08-05 amd64
Код: Выделить всё
[f0s@router] //> cat /usr/src/sys/amd64/conf/router-2009-08-05 | grep NETG
options NETGRAPH
options NETGRAPH_ETHER
options NETGRAPH_SOCKET
options NETGRAPH_TEE
options NETGRAPH_MPPC_ENCRYPTION
options NETGRAPH_MPPC_COMPRESSION
options NETGRAPH_BPF
options NETGRAPH_IFACE
options NETGRAPH_KSOCKET
options NETGRAPH_PPP
options NETGRAPH_PPTPGRE
options NETGRAPH_TCPMSS
options NETGRAPH_VJC
options NETGRAPH_ONE2MANY
options NETGRAPH_RFC1490
options NETGRAPH_TEE
options NETGRAPH_TTY
options NETGRAPH_UI
Код: Выделить всё
May 8 14:09:57 router mpd: [L-1] Accepting PPTP connection
May 8 14:09:57 router mpd: [L-1] Link: OPEN event
May 8 14:09:57 router mpd: [L-1] LCP: Open event
May 8 14:09:57 router mpd: [L-1] LCP: state change Initial --> Starting
May 8 14:09:57 router mpd: [L-1] LCP: LayerStart
May 8 14:09:57 router mpd: [L-1] PPTP: attaching to peer's outgoing call
May 8 14:09:57 router mpd: [L-1] Link: UP event
May 8 14:09:57 router mpd: [L-1] LCP: Up event
May 8 14:09:57 router mpd: [L-1] LCP: state change Starting --> Req-Sent
May 8 14:09:57 router mpd: [L-1] LCP: SendConfigReq #1
May 8 14:09:57 router mpd: [L-1] ACFCOMP
May 8 14:09:57 router mpd: [L-1] PROTOCOMP
May 8 14:09:57 router mpd: [L-1] MRU 1500
May 8 14:09:57 router mpd: [L-1] MAGICNUM 28f40c10
May 8 14:09:57 router mpd: [L-1] AUTHPROTO CHAP MSOFTv2
May 8 14:09:57 router mpd: [L-1] MP MRRU 2048
May 8 14:09:57 router mpd: [L-1] MP SHORTSEQ
May 8 14:09:57 router mpd: [L-1] ENDPOINTDISC [802.1] 00 01 02 d1 14 8d
May 8 14:09:57 router mpd: [L-1] LCP: rec'd Configure Request #0 (Req-Sent)
May 8 14:09:57 router mpd: [L-1] MRU 1400
May 8 14:09:57 router mpd: [L-1] MAGICNUM 07cd7bcb
May 8 14:09:57 router mpd: [L-1] PROTOCOMP
May 8 14:09:57 router mpd: [L-1] ACFCOMP
May 8 14:09:57 router mpd: [L-1] CALLBACK 6
May 8 14:09:57 router mpd: [L-1] LCP: SendConfigRej #0
May 8 14:09:57 router mpd: [L-1] CALLBACK 6
May 8 14:09:57 router mpd: [L-1] LCP: rec'd Configure Reject #1 (Req-Sent)
May 8 14:09:57 router mpd: [L-1] MP MRRU 2048
May 8 14:09:57 router mpd: [L-1] MP SHORTSEQ
May 8 14:09:57 router mpd: [L-1] ENDPOINTDISC [802.1] 00 01 02 d1 14 8d
May 8 14:09:57 router mpd: [L-1] LCP: SendConfigReq #2
May 8 14:09:57 router mpd: [L-1] ACFCOMP
May 8 14:09:57 router mpd: [L-1] PROTOCOMP
May 8 14:09:57 router mpd: [L-1] MRU 1500
May 8 14:09:57 router mpd: [L-1] MAGICNUM 28f40c10
May 8 14:09:57 router mpd: [L-1] AUTHPROTO CHAP MSOFTv2
May 8 14:09:57 router mpd: [L-1] LCP: rec'd Configure Request #1 (Req-Sent)
May 8 14:09:57 router mpd: [L-1] MRU 1400
May 8 14:09:57 router mpd: [L-1] MAGICNUM 07cd7bcb
May 8 14:09:57 router mpd: [L-1] PROTOCOMP
May 8 14:09:57 router mpd: [L-1] ACFCOMP
May 8 14:09:57 router mpd: [L-1] LCP: SendConfigAck #1
May 8 14:09:57 router mpd: [L-1] MRU 1400
May 8 14:09:57 router mpd: [L-1] MAGICNUM 07cd7bcb
May 8 14:09:57 router mpd: [L-1] PROTOCOMP
May 8 14:09:57 router mpd: [L-1] ACFCOMP
May 8 14:09:57 router mpd: [L-1] LCP: state change Req-Sent --> Ack-Sent
May 8 14:09:57 router mpd: [L-1] LCP: rec'd Configure Ack #2 (Ack-Sent)
May 8 14:09:57 router mpd: [L-1] ACFCOMP
May 8 14:09:57 router mpd: [L-1] PROTOCOMP
May 8 14:09:57 router mpd: [L-1] MRU 1500
May 8 14:09:57 router mpd: [L-1] MAGICNUM 28f40c10
May 8 14:09:57 router mpd: [L-1] AUTHPROTO CHAP MSOFTv2
May 8 14:09:57 router mpd: [L-1] LCP: state change Ack-Sent --> Opened
May 8 14:09:57 router mpd: [L-1] LCP: auth: peer wants nothing, I want CHAP
May 8 14:09:57 router mpd: [L-1] CHAP: sending CHALLENGE #1 len: 21
May 8 14:09:57 router mpd: [L-1] LCP: LayerUp
May 8 14:09:57 router mpd: [L-1] LCP: rec'd Ident #2 (Opened)
May 8 14:09:57 router mpd: [L-1] MESG: MSRASV5.20
May 8 14:09:57 router mpd: [L-1] LCP: rec'd Ident #3 (Opened)
May 8 14:09:57 router mpd: [L-1] MESG: MSRAS-0-ROUTER
May 8 14:09:57 router mpd: [L-1] CHAP: rec'd RESPONSE #1 len: 57
May 8 14:09:57 router mpd: [L-1] Name: "f0s"
May 8 14:09:57 router mpd: [L-1] AUTH: Trying INTERNAL
May 8 14:09:57 router mpd: [L-1] AUTH: INTERNAL returned: undefined
May 8 14:09:57 router mpd: [L-1] CHAP: Auth return status: undefined
May 8 14:09:57 router mpd: [L-1] CHAP: Response is valid
May 8 14:09:57 router mpd: [L-1] CHAP: Reply message: S=9B712E9668BDF36CF65BBDDFC4316A7C5E9782FA
May 8 14:09:57 router mpd: [L-1] CHAP: sending SUCCESS #1 len: 46
May 8 14:09:57 router mpd: [L-1] LCP: authorization successful
May 8 14:09:57 router mpd: [L-1] Link: Matched action 'bundle "B" ""'
May 8 14:09:57 router mpd: [L-1] Creating new bundle using template "B".
May 8 14:09:57 router mpd: [B-1] Bundle: Interface ng0 created
May 8 14:09:57 router mpd: [L-1] Link: Join bundle "B-1"
May 8 14:09:57 router mpd: [B-1] Bundle: Status update: up 1 link, total bandwidth 64000 bps
May 8 14:09:57 router mpd: [B-1] IPCP: Open event
May 8 14:09:57 router mpd: [B-1] IPCP: state change Initial --> Starting
May 8 14:09:57 router mpd: [B-1] IPCP: LayerStart
May 8 14:09:57 router mpd: [B-1] CCP: Open event
May 8 14:09:57 router mpd: [B-1] CCP: state change Initial --> Starting
May 8 14:09:57 router mpd: [B-1] CCP: LayerStart
May 8 14:09:57 router mpd: [B-1] IPCP: Up event
May 8 14:09:57 router mpd: [B-1] IPCP: state change Starting --> Req-Sent
May 8 14:09:57 router mpd: [B-1] IPCP: SendConfigReq #1
May 8 14:09:57 router mpd: [B-1] IPADDR 192.168.10.7
May 8 14:09:57 router mpd: [B-1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
May 8 14:09:57 router mpd: [B-1] CCP: Up event
May 8 14:09:57 router mpd: [B-1] CCP: state change Starting --> Req-Sent
May 8 14:09:57 router mpd: [B-1] CCP: SendConfigReq #1
May 8 14:09:57 router mpd: [B-1] MPPC
May 8 14:09:57 router mpd: [B-1] 0x010000e1:MPPC, MPPE(40, 56, 128 bits), stateless
May 8 14:09:57 router mpd: [B-1] CCP: rec'd Configure Request #4 (Req-Sent)
May 8 14:09:57 router mpd: [B-1] MPPC
May 8 14:09:57 router mpd: [B-1] 0x010000e0:MPPE(40, 56, 128 bits), stateless
May 8 14:09:57 router mpd: [B-1] CCP: SendConfigNak #4
May 8 14:09:57 router mpd: [B-1] MPPC
May 8 14:09:57 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
May 8 14:09:57 router mpd: [B-1] IPCP: rec'd Configure Request #5 (Req-Sent)
May 8 14:09:57 router mpd: [B-1] IPADDR 0.0.0.0
May 8 14:09:57 router mpd: [B-1] NAKing with 192.168.10.200
May 8 14:09:57 router mpd: [B-1] PRIDNS 0.0.0.0
May 8 14:09:57 router mpd: [B-1] NAKing with 192.168.10.8
May 8 14:09:57 router mpd: [B-1] PRINBNS 0.0.0.0
May 8 14:09:57 router mpd: [B-1] NAKing with 192.168.10.8
May 8 14:09:57 router mpd: [B-1] SECDNS 0.0.0.0
May 8 14:09:57 router mpd: [B-1] SECNBNS 0.0.0.0
May 8 14:09:57 router mpd: [B-1] IPCP: SendConfigRej #5
May 8 14:09:57 router mpd: [B-1] SECDNS 0.0.0.0
May 8 14:09:57 router mpd: [B-1] SECNBNS 0.0.0.0
May 8 14:09:57 router mpd: [B-1] IPCP: rec'd Configure Reject #1 (Req-Sent)
May 8 14:09:57 router mpd: [B-1] COMPPROTO VJCOMP, 16 comp. channels, no comp-cid
May 8 14:09:57 router mpd: [B-1] IPCP: SendConfigReq #2
May 8 14:09:57 router mpd: [B-1] IPADDR 192.168.10.7
May 8 14:09:57 router mpd: [B-1] CCP: rec'd Configure Nak #1 (Req-Sent)
May 8 14:09:57 router mpd: [B-1] MPPC
May 8 14:09:57 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
May 8 14:09:57 router mpd: [B-1] CCP: SendConfigReq #2
May 8 14:09:57 router mpd: [B-1] MPPC
May 8 14:09:57 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
May 8 14:09:57 router mpd: [B-1] CCP: rec'd Configure Request #6 (Req-Sent)
May 8 14:09:57 router mpd: [B-1] MPPC
May 8 14:09:57 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
May 8 14:09:57 router mpd: [B-1] CCP: SendConfigAck #6
May 8 14:09:57 router mpd: [B-1] MPPC
May 8 14:09:57 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
May 8 14:09:57 router mpd: [B-1] CCP: state change Req-Sent --> Ack-Sent
May 8 14:09:57 router mpd: [B-1] IPCP: rec'd Configure Request #7 (Req-Sent)
May 8 14:09:57 router mpd: [B-1] IPADDR 0.0.0.0
May 8 14:09:57 router mpd: [B-1] NAKing with 192.168.10.200
May 8 14:09:57 router mpd: [B-1] PRIDNS 0.0.0.0
May 8 14:09:57 router mpd: [B-1] NAKing with 192.168.10.8
May 8 14:09:57 router mpd: [B-1] PRINBNS 0.0.0.0
May 8 14:09:57 router mpd: [B-1] NAKing with 192.168.10.8
May 8 14:09:57 router mpd: [B-1] IPCP: SendConfigNak #7
May 8 14:09:57 router mpd: [B-1] IPADDR 192.168.10.200
May 8 14:09:57 router mpd: [B-1] PRIDNS 192.168.10.8
May 8 14:09:57 router mpd: [B-1] PRINBNS 192.168.10.8
May 8 14:09:57 router mpd: [B-1] IPCP: rec'd Configure Ack #2 (Req-Sent)
May 8 14:09:57 router mpd: [B-1] IPADDR 192.168.10.7
May 8 14:09:57 router mpd: [B-1] IPCP: state change Req-Sent --> Ack-Rcvd
May 8 14:09:57 router mpd: [B-1] CCP: rec'd Configure Ack #2 (Ack-Sent)
May 8 14:09:57 router mpd: [B-1] MPPC
May 8 14:09:57 router mpd: [B-1] 0x01000040:MPPE(128 bits), stateless
May 8 14:09:57 router mpd: [B-1] CCP: state change Ack-Sent --> Opened
May 8 14:09:57 router mpd: [B-1] CCP: LayerUp
May 8 14:09:57 router mpd: [B-1] CCP: Compress using: mppc (MPPE(128 bits), stateless)
May 8 14:09:57 router mpd: [B-1] CCP: Decompress using: mppc (MPPE(128 bits), stateless)
May 8 14:09:57 router mpd: [B-1] IPCP: rec'd Configure Request #8 (Ack-Rcvd)
May 8 14:09:57 router mpd: [B-1] IPADDR 192.168.10.200
May 8 14:09:57 router mpd: [B-1] 192.168.10.200 is OK
May 8 14:09:57 router mpd: [B-1] PRIDNS 192.168.10.8
May 8 14:09:57 router mpd: [B-1] PRINBNS 192.168.10.8
May 8 14:09:57 router mpd: [B-1] IPCP: SendConfigAck #8
May 8 14:09:57 router mpd: [B-1] IPADDR 192.168.10.200
May 8 14:09:57 router mpd: [B-1] PRIDNS 192.168.10.8
May 8 14:09:57 router mpd: [B-1] PRINBNS 192.168.10.8
May 8 14:09:57 router mpd: [B-1] IPCP: state change Ack-Rcvd --> Opened
May 8 14:09:57 router mpd: [B-1] IPCP: LayerUp
May 8 14:09:57 router mpd: [B-1] 192.168.10.7 -> 192.168.10.200
May 8 14:09:57 router mpd: [B-1] IFACE: Up event
Код: Выделить всё
compression: (none)
компрессии нетMay 8 14:09:57 router mpd: [B-1] CCP: Compress using: mppc (MPPE(128 bits), stateless)
May 8 14:09:57 router mpd: [B-1] CCP: Decompress using: mppc (MPPE(128 bits), stateless)
Код: Выделить всё
[f0s@router] /usr/local/etc/mpd5/> cat mpd.conf
startup:
set user admin gjhjkm admin
set console self 127.0.0.1 5005
set console open
set web self 192.168.10.7 5006
set web open
default:
load pptp_server
pptp_server:
# Define dynamic IP address pool.
set ippool add poolsat 192.168.10.201 192.168.10.220
# Create clonable bundle template named B
create bundle template B
set iface enable proxy-arp
set iface idle 0
set iface enable tcpmssfix
set ipcp yes vjcomp
# Specify IP address pool for dynamic assigment.
set ipcp ranges 192.168.10.7/32 ippool poolsat
set ipcp dns 192.168.10.8
set ipcp nbns 192.168.10.8
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 link enable multilink
set link yes acfcomp protocomp
# Set bundle template to use
set link action bundle B
set link no pap chap
set link enable chap
set link enable chap-msv1
set link enable chap-msv2
set link mtu 1460
set link keep-alive 10 75
# Configure PPTP
set pptp self 84.55.62.20
# Allow to accept calls
set link enable incoming
патч вкомпилен, ядро пересобрал.. винда 2003paradox писал(а):в ядре патч вкомпилен?
винда какой версии?
Код: Выделить всё
vpn-snnlan:
set device host.local:1723/udp # PPP over UDP
set dial
set login
set authname "mainlogin"
set authkey "тут_наше_всё"
set ifaddr 0 0 255.255.255.0
disable deflate pred1
deny deflate pred1
enable MPPE # With encryption
accept MPPE
Код: Выделить всё
tun1: Command: default: ident user-ppp VERSION (built COMPILATIONDATE)
tun1: Command: default: set device /dev/cuad1
tun1: Command: default: set speed 115200
tun1: Command: default: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5
tun1: Command: default: set timeout 180
tun1: Command: default: enable dns
tun1: Command: vpn-snnlan: set device host.local:1723/udp
tun1: Command: vpn-snnlan: set dial
tun1: Command: vpn-snnlan: set login
tun1: Command: vpn-snnlan: set authname mainlogin
tun1: Command: vpn-snnlan: set authkey ********
tun1: Command: vpn-snnlan: set ifaddr 0 0 255.255.255.0
tun1: Command: vpn-snnlan: disable deflate pred1
tun1: Command: vpn-snnlan: deny deflate pred1
tun1: Command: vpn-snnlan: enable MPPE
tun1: Command: vpn-snnlan: accept MPPE
tun1: Phase: PPP Started (ddial mode).
tun1: Phase: bundle: Establish
tun1: Phase: deflink: Connecting to host.local:1723/udp
tun1: Warning: Async device setting ignored for ``udp'' device
tun1: Phase: deflink: Connected!
tun1: Phase: deflink: opening -> dial
tun1: Phase: deflink: dial -> carrier
tun1: Phase: deflink: carrier -> login
tun1: Phase: deflink: login -> lcp
tun1: LCP: FSM: Using "deflink" as a transport
tun1: LCP: deflink: State change Initial --> Closed
tun1: LCP: deflink: State change Closed --> Stopped
tun1: LCP: deflink: LayerStart
tun1: LCP: deflink: SendConfigReq(1) state = Stopped
tun1: LCP: MRU[4] 1500
tun1: LCP: MAGICNUM[6] 0x9e2f2a69
tun1: LCP: deflink: State change Stopped --> Req-Sent
tun1: Phase: deflink: read (0): Connection refused
tun1: LCP: deflink: State change Req-Sent --> Starting
tun1: LCP: deflink: LayerFinish
tun1: LCP: deflink: State change Starting --> Initial
tun1: Phase: deflink: Disconnected!
tun1: Phase: deflink: lcp -> logout
tun1: Phase: deflink: Disconnected!
tun1: Phase: deflink: logout -> hangup
tun1: Phase: deflink: Connect time: 2 secs: 0 octets in, 18 octets out
tun1: Phase: deflink: 0 packets in, 1 packets out
tun1: Phase: total 9 bytes/sec, peak 0 bytes/sec on Tue Aug 4 16:40:21 2009
tun1: Phase: deflink: hangup -> opening
tun1: Phase: deflink: Enter pause (3) for redialing.
tun1: Chat: deflink: Reconnect try 1 of 0
tun1: Chat: deflink: Redial timer expired.
собственно статью тоже почитайтеСобственно сделана ветка для обсуждение статьи http://www.lissyara.su/?id=1853
Да и в общем по установке и настройке VPN MPD
нет такого шифрованияя хочу 256-512 ,
о 256-521 бит такого нетMicrosoft Point-to-Point Encryption 40 56 128 bit
Код: Выделить всё
Sep 9 13:42:36 mpd5 mpd: [L-1] Accepting PPTP connection
Sep 9 13:42:36 mpd5 mpd: [L-1] Link: OPEN event
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: Open event
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: state change Initial --> Starting
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: LayerStart
Sep 9 13:42:36 mpd5 mpd: [L-1] PPTP: attaching to peer's outgoing call
Sep 9 13:42:36 mpd5 mpd: [L-1] Link: UP event
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: Up event
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: state change Starting --> Req-Sent
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: SendConfigReq #1
Sep 9 13:42:36 mpd5 mpd: [L-1] ACFCOMP
Sep 9 13:42:36 mpd5 mpd: [L-1] PROTOCOMP
Sep 9 13:42:36 mpd5 mpd: [L-1] MRU 1500
Sep 9 13:42:36 mpd5 mpd: [L-1] MAGICNUM b036daa2
Sep 9 13:42:36 mpd5 mpd: [L-1] AUTHPROTO CHAP MSOFTv2
Sep 9 13:42:36 mpd5 mpd: [L-1] MP MRRU 2048
Sep 9 13:42:36 mpd5 mpd: [L-1] MP SHORTSEQ
Sep 9 13:42:36 mpd5 mpd: [L-1] ENDPOINTDISC [802.1] 00 0c 29 a1 06 70
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: rec'd Configure Request #0 (Req-Sent)
Sep 9 13:42:36 mpd5 mpd: [L-1] MRU 1400
Sep 9 13:42:36 mpd5 mpd: [L-1] MAGICNUM 58f263fb
Sep 9 13:42:36 mpd5 mpd: [L-1] PROTOCOMP
1Help 2Save 3Mark 4Replac 5Copy 6Move 7Search 8Delete 9PullDn 10Quit
mpd.log [----] 22 L:[ 1+14 15/217] *(768 /12584b)= p 112 0x70
Sep 9 13:42:36 mpd5 mpd: [L-1] Accepting PPTP connection
Sep 9 13:42:36 mpd5 mpd: [L-1] Link: OPEN event
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: Open event
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: state change Initial --> Starting
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: LayerStart
Sep 9 13:42:36 mpd5 mpd: [L-1] PPTP: attaching to peer's outgoing call
Sep 9 13:42:36 mpd5 mpd: [L-1] Link: UP event
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: Up event
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: state change Starting --> Req-Sent
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: SendConfigReq #1
Sep 9 13:42:36 mpd5 mpd: [L-1] ACFCOMP
Sep 9 13:42:36 mpd5 mpd: [L-1] PROTOCOMP
Sep 9 13:42:36 mpd5 mpd: [L-1] MRU 1500
Sep 9 13:42:36 mpd5 mpd: [L-1] MAGICNUM b036daa2
Sep 9 13:42:36 mpd5 mpd: [L-1] AUTHPROTO CHAP MSOFTv2
Sep 9 13:42:36 mpd5 mpd: [L-1] MP MRRU 2048
Sep 9 13:42:36 mpd5 mpd: [L-1] MP SHORTSEQ
Sep 9 13:42:36 mpd5 mpd: [L-1] ENDPOINTDISC [802.1] 00 0c 29 a1 06 70
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: rec'd Configure Request #0 (Req-Sent)
Sep 9 13:42:36 mpd5 mpd: [L-1] MRU 1400
Sep 9 13:42:36 mpd5 mpd: [L-1] MAGICNUM 58f263fb
Sep 9 13:42:36 mpd5 mpd: [L-1] PROTOCOMP
Sep 9 13:42:36 mpd5 mpd: [L-1] ACFCOMP
Sep 9 13:42:36 mpd5 mpd: [L-1] CALLBACK 6
Sep 9 13:42:36 mpd5 mpd: [L-1] MP MRRU 1614
Sep 9 13:42:36 mpd5 mpd: [L-1] ENDPOINTDISC [LOCAL] c1 43 7f 76 59 36 41 2a 95 fb 97 36 b9 23 0f 15 00
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: SendConfigRej #0
Sep 9 13:42:36 mpd5 mpd: [L-1] CALLBACK 6
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: rec'd Configure Request #1 (Req-Sent)
Sep 9 13:42:36 mpd5 mpd: [L-1] MRU 1400
Sep 9 13:42:36 mpd5 mpd: [L-1] MAGICNUM 58f263fb
Sep 9 13:42:36 mpd5 mpd: [L-1] PROTOCOMP
Sep 9 13:42:36 mpd5 mpd: [L-1] ACFCOMP
Sep 9 13:42:36 mpd5 mpd: [L-1] MP MRRU 1614
Sep 9 13:42:36 mpd5 mpd: [L-1] ENDPOINTDISC [LOCAL] c1 43 7f 76 59 36 41 2a 95 fb 97 36 b9 23 0f 15 00
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: SendConfigAck #1
Sep 9 13:42:36 mpd5 mpd: [L-1] MRU 1400
Sep 9 13:42:36 mpd5 mpd: [L-1] MAGICNUM 58f263fb
Sep 9 13:42:36 mpd5 mpd: [L-1] PROTOCOMP
Sep 9 13:42:36 mpd5 mpd: [L-1] ACFCOMP
Sep 9 13:42:36 mpd5 mpd: [L-1] MP MRRU 1614
Sep 9 13:42:36 mpd5 mpd: [L-1] ENDPOINTDISC [LOCAL] c1 43 7f 76 59 36 41 2a 95 fb 97 36 b9 23 0f 15 00
Sep 9 13:42:36 mpd5 mpd: [L-1] LCP: state change Req-Sent --> Ack-Sent
Sep 9 13:42:38 mpd5 mpd: [L-1] LCP: SendConfigReq #2
Sep 9 13:42:38 mpd5 mpd: [L-1] ACFCOMP
Sep 9 13:42:38 mpd5 mpd: [L-1] PROTOCOMP
Sep 9 13:42:38 mpd5 mpd: [L-1] MRU 1500
Sep 9 13:42:38 mpd5 mpd: [L-1] MAGICNUM b036daa2
Sep 9 13:42:38 mpd5 mpd: [L-1] AUTHPROTO CHAP MSOFTv2
Sep 9 13:42:38 mpd5 mpd: [L-1] MP MRRU 2048
Sep 9 13:42:38 mpd5 mpd: [L-1] MP SHORTSEQ
Код: Выделить всё
startup:
<------># configure mpd users
<------># configure the console
<------>set console self 127.0.0.1 5005
<------>set console open
<------>#configure the web server
<------>set web self 192.168.2.251 5006
<------>set web open
default:
<------>load vpn
vpn:
<------>set ippool add pool1 192.168.0.10 192.168.0.250
<------>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.0.254/24 ippool pool1
<------>set ipcp dns 192.168.0.2 192.168.0.1
# Enable Microsoft Point-to-Point encryption (MPPE)
<------>set bundle enable compression
<------>set ccp yes mppc
<------>set mppc yes compress e40 e56 e128 stateless
<------>create link template L pptp
<------>set link enable multilink
<------>set link yes acfcomp protocomp
<------>set link action bundle B
<------>set link no pap chap
<------>set link enable chap
<------>set link enable chap-msv1
<------>set link enable chap-msv2
<------>set link keep-alive 10 75
<------>set link mtu 1460
# Configure PPTP and open link
<------>set pptp self 192.168.88.128
<------>set link enable incoming
Код: Выделить всё
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPDIVERT
options IPFIREWALL_FORWARD
options DUMMYNET
options IPFIREWALL_NAT
options LIBALIAS
options NETGRAPH
options NETGRAPH_ETHER
options NETGRAPH_SOCKET
options NETGRAPH_MPPC_ENCRYPTION
options NETGRAPH_TEE
options NETGRAPH_MPPC_COMPRESSION
options NETGRAPH_BPF
options NETGRAPH_IFACE
options NETGRAPH_KSOCKET
options NETGRAPH_PPP
options NETGRAPH_PPTPGRE
options NETGRAPH_TCPMSS
options NETGRAPH_VJC
options NETGRAPH_ONE2MANY
options NETGRAPH_RFC1490
options NETGRAPH_TTY
options NETGRAPH_UI