ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Serge Polkovnikov <serge@ukr-fin.com.ua>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Файрвол+роутинг
Date: Wed, 11 Apr 2007 11:53:29 +0300
Message-ID: <200704111153.30519.serge@ukr-fin.com.ua> (raw)
In-Reply-To: <e12fd2db0704110133j2703e15bx8f077c7408586a2b@mail.gmail.com>

Wednesday 11 April 2007 11:33:42 Eugene Ostapets написав:
> Помню что делалось это через несколько таблиц
> маршрутизации, но не могу найти внятную статью именно по
> решению данной проблемы

Руками делается примерно так:
echo "1	prov1" >> /etc/iproute2/rt_tables 
echo "2	prov2" >> /etc/iproute2/rt_tables


ip rule add from prov1_ip_pool table prov1
ip rule add from prov2_ip_pool table prov2

ip route add 0/0 via prov1_router table prov1
ip route add 0/0 via prov2_router table prov2

ip route flush cache

где 
provN_ip_pool - маска ip адресов которые вам выделил 
соответствующий провайдер,
provN_router - адрес маршрутизатора соответствующего 
провайдера

Как это сделать в етцнет я не знаю - не пробывал
-- 
С уважением,
Сергей Полковников


  reply	other threads:[~2007-04-11  8:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11  7:30 Eugene Ostapets
2007-04-11  8:28 ` Marat Khayrullin
2007-04-11  8:33   ` Eugene Ostapets
2007-04-11  8:53     ` Serge Polkovnikov [this message]
2007-04-11 10:05       ` Eugene Ostapets
2007-04-11 10:15         ` Dmitriy L. Kruglikov
2007-04-11 10:20           ` Alexander Volkov
2007-04-11 12:18           ` Евгений Терешков
2007-04-11  9:37     ` Marat Khayrullin
2007-04-11  9:42 ` Alexander Volkov
2007-04-11 10:07   ` Eugene Ostapets
2007-04-11 10:14     ` Alexander Volkov
2007-04-11 12:15       ` Marat Khayrullin

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=200704111153.30519.serge@ukr-fin.com.ua \
    --to=serge@ukr-fin.com.ua \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git