From: Mike Almateia <mike.almateia@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Q: Бессмертный pppd для pptp
Date: Thu, 9 Oct 2008 18:42:51 +0400
Message-ID: <200810091842.51230.mike.almateia@gmail.com> (raw)
In-Reply-To: <m3vdw2gvzp.fsf@blard.localdomain>
On Thursday 09 October 2008 09:47:54 Michael Pozhidaev wrote:
> Привет всем!
>
> Использую pppd для работы через VPN. Столкнулся с тем, что через некоторый
> промежуток времени (всегда разный) pppd мрёт, что очень неудобно. Как можно
> было бы это побороть, чтобы соединение было бы постоянным и держалось бы
> сколь угодно долго?
>
> peer файл имеет такой вид:
> ipparam "tomline"
> debug
> pty "pptp 213.183.96.254 --nolaunchpppd"
> connect /bin/true
>
> name zzz
>
> defaultroute
>
>
> Вот последние сообщения в логе:
>
> Oct 9 11:58:51 blard pptp[15675]: anon log[logecho:pptp_ctrl.c:678]: no
> more Echo Reply/Request packets will be reported.
> Oct 9 12:01:03 blard clock: Setting hardware clock (localtime): Thu Oct 9
> 12:01:01 NOVST 2008
> succeeded Oct 9 12:22:43 blard pppd[15663]: rcvd [IPCP TermReq id=0x2]
> Oct 9 12:22:43 blard pppd[15663]: IPCP terminated by peer
> Oct 9 12:22:43 blard pppd[15663]: Connect time 33.9 minutes.
> Oct 9 12:22:43 blard pppd[15663]: Sent 122 bytes, received 2042 bytes.
> Oct 9 12:22:43 blard pppd[15663]: restoring old default route to eth0
> [192.168.0.1] Oct 9 12:22:43 blard pppd[15663]: Script /etc/ppp/ip-down
> started (pid 17913) Oct 9 12:22:43 blard pppd[15663]: sent [IPCP TermAck
> id=0x2]
> Oct 9 12:22:43 blard pppd[15663]: rcvd [LCP TermReq id=0x3]
> Oct 9 12:22:43 blard pppd[15663]: LCP terminated by peer
> Oct 9 12:22:43 blard pppd[15663]: sent [LCP TermAck id=0x3]
Сервер разорвал соединение с вами.
Судя по логам выше, сервер проверяет вас на жизнь с помощью lcp-echo* пакетов,
и рвёт соединение если количество фейлов превысило пороговое значение.
Рвётся ли у вас соединение когда вы что-то скачиваете?
Появляются ли в логах сообщения от pptp содержащие что-то типа этого:
---------
pptp[1542]: anon log[decaps_gre:pptp_gre.c:411]: discarding packet 5031
(expecting 13, lost or reordered)
---------
перед разрывом?
Какой MTU/MRU используется на ppp линке и на eth интерфейсе через который он
ходит?
Ответе на эти вопросы, дальше будет понятнее в чём дело.
next prev parent reply other threads:[~2008-10-09 14:42 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-09 5:47 Michael Pozhidaev
2008-10-09 6:45 ` Michael A. Kangin
2008-10-09 6:49 ` Michael Pozhidaev
2008-10-09 6:59 ` Michael A. Kangin
2008-10-09 7:17 ` Michael Pozhidaev
2008-10-09 7:16 ` Mykola S. Grechukh
2008-10-09 7:40 ` Michael Pozhidaev
2008-10-09 9:45 ` Alexander Volkov
2008-10-09 10:24 ` Vitaly Ostanin
2008-10-09 11:09 ` Michael Pozhidaev
2008-10-09 11:57 ` Vitaly Ostanin
2008-10-19 14:28 ` Michael Shigorin
2008-10-09 10:34 ` Denis Klimov
2008-10-09 11:23 ` Alexander Volkov
2008-10-09 12:45 ` Ivan A. Melnikov
2008-10-09 15:02 ` Andrey Rahmatullin
2008-10-09 14:42 ` Mike Almateia [this message]
2008-10-09 17:26 ` Michael Pozhidaev
2008-10-10 5:14 ` Ildar Mulyukov
2008-10-10 19:13 ` Vitaly Ostanin
2008-10-13 15:06 ` Mike Almateia
2008-10-13 18:17 ` Michael Pozhidaev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200810091842.51230.mike.almateia@gmail.com \
--to=mike.almateia@gmail.com \
--cc=sisyphus@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git