ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Varamashvili <GodsForge@inbox.ru>
To: Community@altlinux.ru
Subject: [Comm] iproute2 и NAT
Date: Sun, 12 Dec 2004 14:36:10 +0300
Message-ID: <1149676690.20041212143610@inbox.ru> (raw)

Hу здpаcте Community,

 Есть довольно стандартная ситуация: быстрый но дорогой LAN и медленный но
 дешевый диалап. Хочется по запуску скрипта переключать одну или несколько машин
 с LAN на диалап и наоборот.

 Сеть сделанна так:

 машины_за_натом (10.33.20.0/24)-->роутер (real ip)-->пров.

 Для этого решил попробовать iproute2. Делал так:

 echo 100 user >> /etc/iproute2/rt_tables
 ip rule add from 10.33.20.10 table user

 и после подключения по мопеду

 ip route add default via 81.20.96.104 dev ppp0 table гser

 проблемма в том, что роутинг работает как-то криво (через раз), и с
 маскарадингом проблеммы... Где грабли?
 
-----------••••··· [ www.magicssoft.ru | www.kaskadterra.ru | www.sakura.magicssoft.ru ]
С уважением, GiniuS.       mailto:GodsForge@inbox.ru
np: b-z-z-z-z-z
Tearline: Чтo бы узнать пределы вoзмoжнoгo, надo выйти за негo, в невoзмoжнoе




             reply	other threads:[~2004-12-12 11:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-12 11:36 Michael Varamashvili [this message]
2004-12-12 13:42 ` max
2004-12-12 13:48 ` max
2004-12-14 10:51   ` Re[2]: " Michael Varamashvili
2004-12-15  5:41     ` max
2004-12-12 14:43 ` [Comm] " Michael Shigorin
2004-12-12 15:11   ` Michael Varamashvili

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=1149676690.20041212143610@inbox.ru \
    --to=godsforge@inbox.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