ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Маркелов Александр" <ml@13.net.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Re: iproute2 и локальные службы
Date: Thu, 31 Mar 2005 13:57:15 +0400
Message-ID: <424BC97B.9070801@13.net.ru> (raw)
In-Reply-To: <200503310935.33178.alt@zlt.ru>

max пишет:
> Что там в руководстве ещё не посмотрел, но точно знаю что вот так будет 
> работать:
> 
> 1. правила iptables для метки пакетов которые нужно отправить через highspeed. 
> В данном случае любые локальные запросы на 80 порт (что прокси и делает) 
> iptables -t mangle -A OUTPUT -p tcp --dport 80 -j MARK --set-mark 2
> 
> 2. правила ip для изменения маршрута для пакетов помеченных меткой "2".
> /sbin/ip rule add fwmark 2 table highspeed
Это мы все вкурили уже. Вопрос заключается в другом, как локальная 
служба выбирает с какого интерфейса ей идти во вне. В моем случаи, 
который описан выше, локальная служба, в принципе, может пойти по любому 
соединению, все зависит от того с какого интерфейса пойдет запрос.
Так вот и нужно понять(прочитать где это написано) как локальная служба 
выбирает с какого интерфейса ей стартовать, если ей это не указано явным 
образом.
Мне кажется, это зависит от таблицы маршрутизации. Но как это 
происходить если есть 2 default гейтвэя, вот в чем вопрос.

Так же остался открыт вопрос куда прописывать запуск /sbin/ip при старте 
системы ? Я пока прописал в rc.local, что, мне кажется, не совсем верно.

PS: Сейчас буду раскуривать HOWTO, может там найдется ответ на мой вопрос.


  reply	other threads:[~2005-03-31  9:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-30  7:55 [Comm] " Маркелов Александр
2005-03-30  8:18 ` Dmitry Vodennikov
2005-03-30  8:32   ` Маркелов Александр
2005-03-30 11:57     ` Grigory Fateyev
2005-03-31  3:35       ` [Comm] " max
2005-03-31  9:57         ` Маркелов Александр [this message]
2005-03-31 11:10           ` max
2005-03-31 11:16             ` Маркелов Александр

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=424BC97B.9070801@13.net.ru \
    --to=ml@13.net.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