From: max <max@zlt.ru>
To: community@altlinux.ru
Subject: Re: [Comm] проблемы с pptp
Date: Mon, 11 Oct 2004 12:33:49 +0600
Message-ID: <416A294D.5060802@zlt.ru> (raw)
In-Reply-To: <395709490.20041010175120@krasno.ru>
kod пишет:
> Доброго дня всем.
>
> Возникли проблемы с правильной настройкой pptp клиента.
> Поставил по how-to все пакеты,
> потом еще доставил dkms-2.0.0-1 и kernel_ppp_mppe-0.0.4-2dkms.
>
> С помощью pptpconfig поставил все настройки, но, когда запускаю
> тунель, в логе пишет такую вещь:
> Connect: ppp0 <--> /dev/pts/3
> rcvd [CHAP Challenge id=0xe9 <2c9eee0194dcea60ff3e8e66c1364c65>, name = "vpn"]
> sent [CHAP Response id=0xe9
> <1bf3f027f84c3925246a3771908900290000000000000000426cb474295a14dfc2c0a5a59de2181739811fb4111bc6a100>,
> name = "PetrovD"]
> rcvd [CHAP Success id=0xe9 "S=224E5B56171F7261EA3CB8BDD90BE198902AF23E M=Access
> granted"]
> Couldn't set pass-filter in kernel: Invalid argument
>
> и потом еще:
> local IP address 172.19.10.215
> remote IP address 192.168.248.1
> primary DNS address 213.137.227.20
> secondary DNS address 80.252.132.6
> # route -n (after pppd exit)
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.248.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 172.19.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 172.19.0.1 0.0.0.0 UG 0 0 0 eth0
> pptpconfig: pppd process exit status 0 (started)
> ip route add 172.19.0.1 dev eth0 src 172.19.10.215
> pptpconfig: routes added to remote networks
> ip route replace default dev 'ppp0'
> RTNETLINK answers: No such device
Похоже что ВПН отваливается и РРР0 просто пропадает.
Дело в настройках pptp.
Вот мои настройки pptp и у меня всё работает:
в /etc/ppp/peers/ создаёш файл inet (или как душе угодно)
В нем:
defaultroute
name XXX
, где ХХХ - логин на впн
В /etc/ppp/chap-secrets заносишь логин-пароль на впн с таким
синтаксисом: login * passwd *
В /etc/ppp/options:
noipdefault
cleardefaultroute
В /etc/resolv.conf заносишь ip адреса днс прова.
Под рутом запускаешь pptp ip-сервера call inet
Всё должно работать.
Это для начала, а дальше крути конфиги как тебе нужно.
--
С наилучшими пожеланиями, Баукин Максим max@zlt.ru
prev parent reply other threads:[~2004-10-11 6:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-10 13:51 kod
2004-10-11 6:33 ` max [this message]
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=416A294D.5060802@zlt.ru \
--to=max@zlt.ru \
--cc=community@altlinux.ru \
/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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git