ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Александр В. Макаров" <5234378@gmail.com>
To: community@lists.altlinux.org
Subject: Re: [Comm] VPN - замучился !!! (Alexei V. Mezin)
Date: Sat, 23 Feb 2008 22:02:51 +0300
Message-ID: <ffee06470802231102s5b1f9w93f09193d12ff42f@mail.gmail.com> (raw)

>  Согласно логам все работает. Выставьте параметр ONBOOT в значение no для
>  ppp20, перезагрузите компьютер, и покажите вывод команд ifconfig и route
>  -n, затем сделайте ifup ppp20 и снова покажите route -n.


ifconfig

eth0      Link encap:Ethernet  HWaddr 00:19:21:20:F2:05
          inet addr:192.168.33.95  Bcast:192.168.33.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:206 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19906 (19.4 KiB)  TX bytes:236 (236.0 b)
          Interrupt:177 Base address:0xee00

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3191 (3.1 KiB)  TX bytes:3191 (3.1 KiB)

route -n

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.203 192.168.33.1    255.255.255.255 UGH   0      0        0 eth0
192.168.33.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.33.1    0.0.0.0         UG    0      0        0 eth0

сеть работает

поднял ppp20

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 ppp20
192.168.100.203 192.168.33.1    255.255.255.255 UGH   0      0        0 eth0
192.168.33.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 ppp20

не работает



Sergey Vlasov пишет:

>  Попробуйте добавить в опции pppd (в файл pppoptions) параметр
>  nodeflate - возможно, сжатие обрабатывается некорректно.

Добавил

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 ppp20
192.168.100.203 192.168.33.1    255.255.255.255 UGH   0      0        0 eth0
192.168.33.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 ppp20

все работает

СПАСИБО!

В связи с этим вопрос, в сети рекомендуют добавить маршрутизацию,
чтобы лазить по локальной сети с включённым VPN и при этом не "жрался"
трафик VPN.

в windows это делается так
route add -p 192.168.0.0 mask 255.255.0.0 192.168.33.1 metric 1

в линукс нужно для этого еще что-то куда-то добавлять?


-- 
С Уважением, Александр Макаров!
5234378@gmail.com

             reply	other threads:[~2008-02-23 19:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-23 19:02 Александр В. Макаров [this message]
2008-02-23 19:32 ` Alexei V. Mezin
2008-02-23 20:22 ` [Comm] PPTP, nodeflate и маршруты Michael Shigorin
2008-02-23 20:34   ` Sergey Vlasov
2008-02-23 21:36     ` Michael Shigorin
2008-02-23 20:56 ` [Comm] VPN - замучился !!! (Alexei V. Mezin) Yurkovsky Andrey

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=ffee06470802231102s5b1f9w93f09193d12ff42f@mail.gmail.com \
    --to=5234378@gmail.com \
    --cc=community@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 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