Необходимо пробросить pptp-соединение до удалённого сервера.
Исходные данные: Slackware 13.1
Конфиг:
cat /etc/ppp/peers/production
pty «pptp 193.***.***.** --nolaunchpppd --nobuffer»
remotename pptp
user ****
password «******»
unit 0
lock
usepeerdns
nodeflate
nobsdcomp
noauth
nopcomp
noaccomp
logfile /usr/local/var/log/pptp
Запускаю:
sudo pppd call production debug nodetach
Лог:
cat /usr/local/var/log/pptp
using channel 4
Using interface ppp0
Connect: ppp0 <--> /dev/pts/6
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xcdae2a47>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0xd036c073> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xcdae2a47>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth chap MS-v2> <magic 0xd036c073>]
sent [LCP ConfAck id=0x2 <asyncmap 0x0> <auth chap MS-v2> <magic 0xd036c073>]
rcvd [LCP EchoReq id=0x0 magic=0xd036c073]
sent [LCP EchoRep id=0x0 magic=0xcdae2a47]
rcvd [CHAP Challenge id=0x45 <************>, name = «pptpd»]
sent [CHAP Response id=0x45 <***************>, name = «****»]
rcvd [CHAP Success id=0x45 «S=************ M=Access granted»]
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
rcvd [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
sent [CCP ConfReq id=0x1]
sent [CCP ConfRej id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [IPCP TermAck id=0x1]
rcvd [LCP TermReq id=0x3 «MPPE required but peer refused»]
LCP terminated by peer (MPPE required but peer refused)
sent [LCP TermAck id=0x3]
rcvd [CCP ConfAck id=0x1]
Discarded non-LCP packet when LCP not open
Script pptp 193.***.***.** --nolaunchpppd --nobuffer finished (pid 12741), status = 0x0
Modem hangup
Connection terminated.
Лично мне очень не нравится эта строка:
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]