ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Oleg Lukashin <phd@rega.ru>
To: community@altlinux.ru
Subject: Re: [Comm] VPN
Date: Sun, 22 Dec 2002 20:28:34 +0300
Message-ID: <20021222172834.GC23402@router.rega.ru> (raw)
In-Reply-To: <10624736441.20021219153312@ecolas.ru>

* Алексей (aleksey@ecolas.ru) wrote:
> Hello community,
> 
>   Соорудил ВПН. Машины из локалки 192.168.1.0 удачно пингуют
>   192.168.2.0 и обратно. Но вот шлюзы этого делать не хотят, т.е. если
>   со шлюза который смотрит в локаль 192.168.1.0 пытаюсь пинговать
>   машины в локале 192.168.1.0 ничего не выходит, тоже самое и с
>   другого шлюза из подсети 192.168.2.0. Куда смотреть, где ковырять
>   подскажите отцы.

В доке (/usr/share/doc/FreeSwan-%version) есть пример "от наших
пользователей). Там, в частности, есть решение этой проблемы:
/sbin/iproute replace 192.168.1.0/24 via 220.220.220.2 dev ipsec0
src 192.168.2.1,
где 192.168.1.0/24 - "та" сеть
    220.220.220.2  - ваш публичный ip.
    192.168.2.1 - ваш внутренний ip (с которого сейчас не
    проходят пинги.

зеркально делаете с другой стороны.

Не знаю почему, мне это решение понравилось больше, чем
организация еще одного туннеля.

Далее, я просто вставил эти строки в /etc/rc.d/init.d/ipsec
после запуска ipsec'а, через две секунды.
Это не очень красиво, но другого способа я не знаю.
Теперь остается только отслеживать обновления freeswan'а и
подправлять /etc/rc.d/init.d/ipsec.

BTW - доки рулез форева.

--
Best regards,
Oleg Lukashin
mailto:phd@rega.ru


  parent reply	other threads:[~2002-12-22 17:28 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-19 12:33 Алексей
2002-12-19 12:41 ` Andrew Nazarkin
2002-12-19 12:53 ` andy Tatarinov
2002-12-19 13:33   ` Re[2]: " Алексей
2002-12-19 12:57 ` Dmytro O. Redchuk
2002-12-19 13:34   ` Re[2]: " Алексей
2002-12-19 13:42     ` Dmytro O. Redchuk
2002-12-19 13:44       ` Re[2]: " Алексей
2002-12-20  7:10         ` Sergey V. Golovin
2002-12-20  9:40           ` Re[2]: " Алексей
2002-12-20  9:51             ` Dmytro O. Redchuk
2002-12-20 11:29               ` Re[2]: " Алексей
2002-12-20 11:49                 ` Dmytro O. Redchuk
2002-12-20 12:22                   ` Re[2]: " Алексей
2002-12-20 12:30                     ` Dmytro O. Redchuk
2002-12-20 12:16                 ` Sergey V. Golovin
2002-12-20 12:36                   ` Re[2]: " Алексей
2002-12-20 12:51                     ` Sergey V. Golovin
2002-12-20 13:09                       ` Re[2]: " Алексей
2002-12-20 14:07                         ` Sergey V. Golovin
2002-12-20 14:43                           ` Re[2]: " Алексей
2002-12-20 21:14                             ` Sergey V. Golovin
2002-12-21 14:40                             ` Re[2]: " Pyatnitskich Evgeniy
2002-12-23  5:55                               ` Re[4]: " Алексей
2002-12-22 17:28 ` Oleg Lukashin [this message]
2002-12-22 18:22   ` Dmitriy Gnidchenko

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=20021222172834.GC23402@router.rega.ru \
    --to=phd@rega.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