ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Re: [Comm] Помогите настроить pptp
  @ 2002-09-16 14:56   ` Denis Kirienko
  2002-09-17  1:49     ` Sergei Dolmatov
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Kirienko @ 2002-09-16 14:56 UTC (permalink / raw)
  To: community

У-ф-ф, наконец-то рассылка ожила!

Продолжаю пытаться настроить pptp:

Sergei Dolmatov wrote:

> > Помогите, пожалуйста, настроить pptp-подключение к internet.
> > Сделал все, как указано в README.rus к pptp, пускаю
> > $ service pptptunnel start
> > а в ответ получаю [FAILED]
> # lsmod | grep gre
> что говорит?

Да, спасибо. Вписал в /etc/modules.conf строчку
options ip_gre

теперь pptptunnel нормально стартует, вроде бы устанавливает
соединение и сервер вроде бы опознает пользователя и пароль.

Но вот только Internet совсем не виден:
# ping mail.ru
ping: unknown host mail.ru
# ping 194.67.57.51
connect: Network is unreachable

При этом локальная сеть полностью доступна.

Что делать?

Ниже я привожу содержимое  /var/log/syslog/messages после
запуска pptptunnel

                                 Денис

=====================================
Sep 14 18:10:55 regent kernel: GRE over IPv4 tunneling driver
Sep 14 18:10:55 regent /etc/hotplug/net.agent: invoke ifup gre0
Sep 14 18:11:33 regent pptp[1662]:
log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:580]: Client connection
established.
Sep 14 18:11:34 regent pptp[1662]:
log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:707]: Outgoing call
established (call ID 0, peer's call ID 0).
Sep 14 18:11:34 regent kernel: CSLIP: code copyright 1989 Regents of
the University of California
Sep 14 18:11:34 regent kernel: PPP generic driver version 2.4.1
Sep 14 18:11:34 regent pppd[1666]: pppd 2.4.1 with CBCP (ALT Linux)
started by root, uid 0
Sep 14 18:11:34 regent pppd[1666]: Using interface ppp0
Sep 14 18:11:34 regent pppd[1666]: Connect: ppp0 <--> /dev/pts/0
Sep 14 18:11:34 regent /etc/hotplug/net.agent: assuming ppp0 is
already up
Sep 14 18:11:37 regent pppd[1666]: Remote message:
S=5B374465B77E3D55CC3ED595365D72A700388E11
Sep 14 18:11:37 regent kernel: PPP BSD Compression module registered
Sep 14 18:11:37 regent kernel: PPP Deflate Compression module
registered
Sep 14 18:11:38 regent kernel: PPP MPPE compression module registered
Sep 14 18:11:38 regent insmod: Warning: loading
/lib/modules/2.4.18-alt6master-up/kernel/drivers/net/ppp_mppe.o will
taint the kernel: no license
Sep 14 18:11:38 regent insmod:   See http://www.tux.org/lkml/#s1-18
for information about tainted modules
Sep 14 18:11:38 regent insmod: Module ppp_mppe loaded, with warnings
Sep 14 18:11:38 regent pppd[1666]: local  IP address 192.168.15.161
Sep 14 18:11:38 regent pppd[1666]: remote IP address 192.168.15.1
Sep 14 18:11:38 regent pppd[1666]: BSD-Compress (15) / MPPE 128 bit,
stateless compression enabled
Sep 14 18:11:38 regent pptptunnel:  succeeded




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Помогите настроить pptp
    @ 2002-09-16 15:44 ` Igor Tertishny
  1 sibling, 0 replies; 4+ messages in thread
From: Igor Tertishny @ 2002-09-16 15:44 UTC (permalink / raw)
  To: community

13 Сентябрь 2002 12:57, Denis Kirienko написал:
> Добрый день!
>
> Помогите, пожалуйста, настроить pptp-подключение к internet.
>
Я пользуюсь таким коннектом уже больше года. Сначала я написал такой скрипт, 
естественно сперва забив пароль и имя юзера в /etc/ppp/pap-secrets:

"<username>@I<ISP>" "10.0.0.138 RELAY_PPP1" "<your password>"

затем сам скрипт:

#!/bin/bash
ifconfig eth0 10.200.1.1 netmask 255.0.0.0 mtu 1500 
echo -n "Starting ADSL connection for Tirt: \r\n"
/bin/pptp 10.0.0.138 debug user dimslav@IActcom remotename "10.0.0.138 
RELAY_PPP1" defaultroute mtu 1452 mru 1452 noauth
adsl-masq2

Последняя строка - это файерволл, которым я и маскарадил коннект на локальную 
сеть, интернет работал без проблем, но несколько замедленно. причину понять 
не мог. Недавно снял свой скрипт из автостарта и возпользовался draknet для 
настройки adsl. И все заработало само по себе! Только дал шаринг на коннект. 
Попробуйте, должно сработать. И скорость повысилась раза в полтора.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Re: [Comm] Помогите настроить pptp
  2002-09-16 14:56   ` [Comm] Re: [Comm] Помогите настроить pptp Denis Kirienko
@ 2002-09-17  1:49     ` Sergei Dolmatov
  2002-09-17  5:32       ` [Comm] Re: [Comm] ðÏÍÏÇÉÔÅ ÎÁÓÔÒÏÉÔØ pptp fisk
  0 siblings, 1 reply; 4+ messages in thread
From: Sergei Dolmatov @ 2002-09-17  1:49 UTC (permalink / raw)
  To: community

On Mon, Sep 16, 2002 at 06:56:30PM +0400, Denis Kirienko wrote:
> У-ф-ф, наконец-то рассылка ожила!
> 
> Продолжаю пытаться настроить pptp:
> 
> Sergei Dolmatov wrote:
> 
> > > Помогите, пожалуйста, настроить pptp-подключение к internet.
> > > Сделал все, как указано в README.rus к pptp, пускаю
> > > $ service pptptunnel start
> > > а в ответ получаю [FAILED]
> > # lsmod | grep gre
> > что говорит?
> 
> Да, спасибо. Вписал в /etc/modules.conf строчку
> options ip_gre
> 
> Но вот только Internet совсем не виден:
> # ping mail.ru
> ping: unknown host mail.ru
> # ping 194.67.57.51
> connect: Network is unreachable
> 
> При этом локальная сеть полностью доступна.

Смотреть содержимое /etc/ppp/*, особенно /etc/ppp/options* на предмет
выставления ms-dns и прочих подобных вещей.
Также глянуть на таблицу маршрутизации и маскарада.
Ну и последнее, видимо, - убедиться, что этот маршрут назначен маршрутом по
умолчанию на клиенте.

--
Regards,
Sergei Dolmatov.
---
The next person to mention spaghetti stacks to me is going to have
his head knocked off.
		-- Bill Conrad


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Re: [Comm] ðÏÍÏÇÉÔÅ ÎÁÓÔÒÏÉÔØ pptp
  2002-09-17  1:49     ` Sergei Dolmatov
@ 2002-09-17  5:32       ` fisk
  0 siblings, 0 replies; 4+ messages in thread
From: fisk @ 2002-09-17  5:32 UTC (permalink / raw)
  To: community

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]

> > ðÒÏÄÏÌÖÁÀ ÐÙÔÁÔØÓÑ ÎÁÓÔÒÏÉÔØ pptp:

íÏÊ ÐÒÏ×ÁÊÄÅÒ ÎÁÐÉÓÁÌ ÍÅÔÏÄÉËÕ ÎÁÓÔÒÏÊËÉ. íÏÖÅÔ ÐÏÍÏÖÅÔ!

Login as root to your box.
õÓÔÁÎÏ×ÉÔÅ ×ÓÅ ÎÅÏÂÈÏÄÉÍÏÅ ÄÌÑ PPP.
õÓÔÁÎÏ×ÉÔÅ ÐÁËÅÔ pptp-linux-1.1.0-2mdk ÉÌÉ ÄÒÕÇÏÊ Ó PPTP client project .
ôÁÍ ÖÅ ÷Ù ÍÏÖÅÔÅ ÐÏÌÕÞÉÔØ ÄÏÐÏÌÎÉÔÅÌØÎÕÀ ÉÎÆÏÒÍÁÃÉÀ Ï PPTP.
óÏÚÄÁÊÔÅ /etc/ppp/options.pptp

------------
lock
+chap
noauth
defaultroute
nobsdcomp
updetach
nodeflate
persist
mtu 1000
mru 1000
------------

CÏÚÄÁÊÔÅ /etc/ppp/peers/tunnel ÉÌÉ (ÞÔÏ ÂÏÌÅÅ ÐÒÁ×ÉÌØÎÏ) ÓËÏÎÆÉÇÕÒÉÒÕÊÔÅ
ËÏÍÁÎÄÏÊ

--------
name USERNAME
remotename PPTP
file /etc/ppp/options.pptp
ipparam tunnel
--------

[root@localhost /]# pptp-command
1.) start
2.) stop
3.) setup
4.) quit
What task would you like to do?:

åÓÌÉ ÷Ù ÎÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÌÉ ËÏÍÁÎÄÏÊ pptp-command ÐÁÒÏÌÉ - ÓÏÚÄÁÊÔÅ
/etc/ppp/chap-secrets

------------
# Secrets for authentication using CHAP
# client server secret   IP addresses
USERNAME PPTP PASSWORD
------------

òÅËÏÍÅÎÄÕÅÍ ÚÁÍÅÎÉÔØ ÆÁÊÌ /usr/sbin/pptp-command (ÉÓÐÏÌØÚÕÅÔ ËÏÍÁÎÄÕ pkill).

----------
 `pkill pppd`;
# `killall -HUP pptp`;
----------

óÔÁÎÄÁÒÔÎÙÊ ÞÔÏ-ÔÏ ÐÌÏÈÏ ÚÁÐÕÓËÁÅÔ É ÒÏÎÑÅÔ PPP.
äÁÌÅÅ ÄÅÌÁÅÍ /etc/init.d/pptp start
Enjoy.
äÌÑ ÐÒÏ×ÅÒËÉ ÓÏÅÄÉÎÅÎÉÑ ÍÏÖÎÏ ÐÏÌÏÖÉÔØ × crontab ÜÔÏÔ ÓËÒÉÐÔ.

--------
#!/bin/sh
if test -z `/sbin/pidof pppd`; then
    exec /usr/sbin/pptp-command start
fi
--------

åÓÌÉ ×ÓÅ ÓÄÅÌÁÎÏ ÐÒÁ×ÉÌØÎÏ, ÔÏ ÐÏÓÌÅ ÕÓÔÁÎÏ×ÌÅÎÉÑ ÓÏÅÄÉÎÅÎÉÑ ÷ÁÛ ËÏÍÐØÀÔÅÒ
ÄÏÌÖÅÎ ÕÖÅ ÒÁÂÏÔÁÔØ ÞÅÒÅÚ PPP Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÁÕÔÅÎÔÉÆÉËÁÃÉÉ É
IP-ÔÕÎÎÅÌÉÒÏ×ÁÎÉÑ.

í.æÉÓËÏ×
fisk@kmk.enisey.ru
info@kmk.enisey.ru




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-17  5:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-16 14:56   ` [Comm] Re: [Comm] Помогите настроить pptp Denis Kirienko
2002-09-17  1:49     ` Sergei Dolmatov
2002-09-17  5:32       ` [Comm] Re: [Comm] ðÏÍÏÇÉÔÅ ÎÁÓÔÒÏÉÔØ pptp fisk
2002-09-16 15:44 ` [Comm] Помогите настроить pptp Igor Tertishny

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