ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Lenya Khachaturov <lenyak@mail.ru>
To: Alexander Bokovoy <mandrake-russian@linuxteam.iplabs.ru>
Subject: Re[4]: [mdk-re] NAT???
Date: Tue Jan  9 16:29:01 2001
Message-ID: <1113473814.20010109162336@mail.ru> (raw)
In-Reply-To: <20010104150320.C2150@avilink.net>

Hello Alexander,

Thursday, January 04, 2001, 4:03:20 PM, you wrote:

AB> On Thu, Jan 04, 2001 at 03:14:32PM +0300, Lenya Khachaturov wrote:
>> Hello Igor,
>> 
>> Thursday, January 04, 2001, 5:51:55 AM, you wrote:
>> 
>> IS> Hi !
>> IS> On Wed, 3 Jan 2001 14:38:31 +0300 Lenya Khachaturov <lenyak@mail.ru> wrote:
>> 
>> LK>> Что-то у меня не получается настроить NAT... Магические строчки
>> 
>> IS> Вы пишете про NAT, а сами пытаетесь настроить фильтрацию пакетов.
>> IS> Это не имеет никакого отношения к трансляции адресов (NAT),
>> IS> хотя они и выполняют одну роль - межсетевого экрана.
>> 
>> Пытаюсь я настроить и то, и другое
>> 
>>  echo 1 > /proc/sys/net/ipv4/ip_forward
>>  ipchains -P forward DENY
>>  ipchains -A forward -s 192.168.0.2 -j MASQ
>> 
>>  ^^^^^^ - это ведь называется NAT, он же masquerading?
AB> Нет. Это называется маскарадинг, это только часть задач, выполняемых
AB> NAT. Для работы с NAT Вам нужно установить пакет iproute2 (и shapecfg в
AB> старой системе (7.0RE), из которого нужен только cbq.init, если хотите
AB> управлять полосой пропускания; в Сизифе shapecfg упразднен, а cbq.init
AB> находится в iproute2). и включить поддержку Advanced Routing в ядре.
AB> И читать, читать, читать про утилиты ip и tc.

Так-с... Advanced Routing включен, доки почитал, пробую следующее:
Поднимаю ppp0, получаю ip x.x.x.x, делаю
ip rule add from 192.168.0.2 nat x.x.x.x
ip route add nat x.x.x.x via 192.168.0.2

192.168.0.2 это адрес клиента
ip отвечает: RTNETLINK: No such device

Что это значит?

-- 
Best regards,
 Lenya                            mailto:lenyak@mail.ru





  parent reply	other threads:[~2001-01-09 16:29 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-03 14:46 Lenya Khachaturov
2001-01-03 14:59 ` AB
2001-01-04 15:48   ` Re[2]: " Lenya Khachaturov
2001-01-03 20:01 ` Igor Solovyov
2001-01-04 15:48   ` Re[2]: " Lenya Khachaturov
2001-01-04 16:02     ` Alexander Bokovoy
2001-01-04 16:32       ` Re[4]: " Lenya Khachaturov
2001-01-04 17:50         ` Re[5]: " Lenya Khachaturov
2001-01-04 18:05           ` Alexander Bokovoy
2001-01-04 19:35           ` Re[6]: " ujo
2001-01-04 19:44           ` ujo
2001-01-05 18:43             ` Re[7]: " Lenya Khachaturov
2001-01-05 19:00               ` AB
2001-01-05 21:01               ` Igor Solovyov
2001-01-07 23:16                 ` Re[9]: " äÙÍÙÞ
2001-01-08 12:18               ` Sergei Epiphanov
2001-01-09 16:29       ` Lenya Khachaturov [this message]
2001-01-09 17:18         ` Re[4]: " Alexander Bokovoy
2001-01-04 21:49     ` Re[3]: " äÙÍÙÞ

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=1113473814.20010109162336@mail.ru \
    --to=lenyak@mail.ru \
    --cc=mandrake-russian@linuxteam.iplabs.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