From: Alexander Vasiliev <vav@tascom.ru>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] и снова VPN :)
Date: Tue, 25 Oct 2005 11:35:48 +0400
Message-ID: <20051025073548.GB21504@dennis.td.tascom.ru> (raw)
In-Reply-To: <279042905.20051024223508@mail.ru>
On Mon, Oct 24, 2005 at 10:35:08PM +0400, Николай wrote:
> Адрес VPN-сервера для подключения 10.0.0.8, после поднятия интерфейса
> - P-t-P:1.1.1.1
> Маршрутизация в локальной сети,как я понял, идет через адрес 10.1.0.3: когда не
> пингуется какая-то из локальных машин - ответ приходит с этого IP.
>
> eth0 Link encap:Ethernet HWaddr 00:E0:4C:6F:3F:6B
> inet addr:10.1.0.105 Bcast:10.1.1.255 Mask:255.255.254.0
>
> #eth1 - это у меня локальная сетевуха, для соединения двух домашних компов:
> eth1 Link encap:Ethernet HWaddr 00:0D:61:45:A3:4D
> inet addr:172.1.1.7 Bcast:172.1.1.255 Mask:255.255.255.0
>
> ppp0 Link encap:Point-to-Point Protocol
> inet addr:172.20.1.227 P-t-P:1.1.1.1 Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1490 Metric:1
>
> результаты route -n:
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 1.1.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
> 172.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 10.1.0.0 0.0.0.0 255.255.254.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 10.1.0.3 0.0.0.0 UG 0 0 0 eth0
>
Нужно после поднятия ррр0 интерфейса править таблицу
маршрутизации. Для этого я использую скрипты /etc/ppp/ip-up.local
для поднятия маршрутов, и /etc/ppp/ip-down.local для
восстановления таблицы маршрутизации после окончания
ррр соединения.
Вам нужно прописать маршрут на ррр-сервер 10.0.0.8,
например
ip route add 10.0.0.8/32 via 10.1.0.3
А маршрут по умолчанию направить на ррр
ip route add default via 1.1.1.1
--
Александр Васильев
ЗАО "Таском"
vav@tascom.ru
next prev parent reply other threads:[~2005-10-25 7:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-24 18:35 Николай
2005-10-25 7:33 ` ABATAPA
2005-10-25 8:30 ` [sisyphus] " Michael Shigorin
2005-10-25 9:33 ` ABATAPA
2005-10-27 14:50 ` [sisyphus] " ABATAPA
2005-10-25 7:35 ` Alexander Vasiliev [this message]
2005-10-25 7:48 ` ABATAPA
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=20051025073548.GB21504@dennis.td.tascom.ru \
--to=vav@tascom.ru \
--cc=sisyphus@altlinux.ru \
--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