* Re: [Comm] VPN - замучился !!!
@ 2008-02-19 15:33 Александр В. Макаров
2008-02-19 15:45 ` Alexei V. Mezin
0 siblings, 1 reply; 2+ messages in thread
From: Александр В. Макаров @ 2008-02-19 15:33 UTC (permalink / raw)
To: community
Мои настройки
options
ONBOOT=yes
PPPTYPE=pptp
PPTP_SERVER=192.168.100.203
REQUIRES=eth0
pppoptions
name МОЕ ИМЯ
remotename PPTP
noipdefault
defaultroute
noauth
hide-password
persist
chap-secret
МОЕ ИМЯ PPTP ПАРОЛЬ
ip4route
192.168.100.203/32 via 192.168.хх.1
default via 192.168.хх.1
после настройки (до перезагрузки)
сеть работает
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.хх.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.хх.1 0.0.0.0 UG 0 0 0 eth0
после перезагрузки
ничего неработает
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.168.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 ppp22
192.168.хх.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp22
Вот данные из windows (может поможет).
Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.
>route print
===========================================================================
Список интерфейсов
0x1 ........................... MS TCP Loopback interface
0x2 ...00 19 21 20 f2 05 ...... VIA Compatable Fast Ethernet рфряЄхЁ - Kaspersky
Anti-Virus NDIS Miniport
0x20004 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Активные маршруты:
Сетевой адрес Маска сети Адрес шлюза Интерфейс Метрика
0.0.0.0 0.0.0.0 10.168.хх.95 10.168.хх.95 1
0.0.0.0 0.0.0.0 192.168.хх.1 192.168.хх.95 21
10.168.хх.95 255.255.255.255 127.0.0.1 127.0.0.1 50
10.255.255.255 255.255.255.255 10.168.хх.95 10.168.хх.95 50
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
169.254.0.0 255.255.0.0 192.168.хх.95 192.168.хх.95 30
192.168.0.0 255.255.0.0 192.168.хх.1 192.168.хх.95 1
192.168.хх.0 255.255.255.0 192.168.хх.95 192.168.хх.95 20
192.168.хх.95 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.хх.255 255.255.255.255 192.168.хх.95 192.168.хх.95 20
192.168.100.203 255.255.255.255 192.168.хх.1 192.168.хх.95 1
224.0.0.0 240.0.0.0 192.168.хх.95 192.168.хх.95 20
224.0.0.0 240.0.0.0 10.168.хх.95 10.168.хх.95 1
255.255.255.255 255.255.255.255 10.168.хх.95 10.168.хх.95 1
255.255.255.255 255.255.255.255 192.168.хх.95 192.168.хх.95 1
Основной шлюз: 10.168.хх.95
===========================================================================
Постоянные маршруты:
Сетевой адрес Маска Адрес шлюза Метрика
192.168.0.0 255.255.0.0 192.168.хх.1 1
Еще у меня есть вот такие данные по роутингу:
route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.ваш_шлюз eth0
route add IP_сервера_доступа gw 192.168.ваш_шлюз eth0
Как все-таки настроить VPN, чтобы работало!
ПОМОГИТЕ!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Comm] VPN - замучился !!!
2008-02-19 15:33 [Comm] VPN - замучился !!! Александр В. Макаров
@ 2008-02-19 15:45 ` Alexei V. Mezin
0 siblings, 0 replies; 2+ messages in thread
From: Alexei V. Mezin @ 2008-02-19 15:45 UTC (permalink / raw)
To: ALT Linux Community general discussions
Еще раз: VPN у вас работает (в смысле удачно соединяется, авторизуется).
Интернет не работает потому что не прописан статический маршрут к
VPN-серверу.
Я не знаю, что вы не так сделали в настройках, но аналог вот этой строки
> route add IP_сервера_доступа gw 192.168.ваш_шлюз eth0
у вас не исполняется.
Для организации статического маршрута достаточно записать одну строку в
ipv4route (в каталоге /etc/net/ifaces/eth0) как указано в инструкции, и,
уже неоднократно, приводилось в примерах в рассылке.
Для проверки статического маршрута нужно смотреть вывод команды route -n.
P.S. Не устали вместо нормальных цифр адреса писать Xx? Какой смысл в
такой шифровке?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-19 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-19 15:33 [Comm] VPN - замучился !!! Александр В. Макаров
2008-02-19 15:45 ` Alexei V. Mezin
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