ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: HB trying to survive under Linux <npecca@yahoo.com>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] kernel-2.2.19+NAT
Date: Tue Sep 11 15:38:11 2001
Message-ID: <20010911154125.B12394@hb.ant-on.net> (raw)
In-Reply-To: <3310837029.20010911131157@mail.ru>; from send2my@mail.ru on Tue, Sep 11, 2001 at 01:11:57PM +0400

On Tue, Sep 11, 2001 at 01:11:57PM +0400, send2my wrote:
> У меня банальная проблема, которую, к сожалению, я не смог решить в
> одиночку, и обращаюсь за помощью к Вам, аважаемые.
> Провайдер выделил один IP-adress (тоже банально). Соответственно нужно
> "поднять" NAT.
> eth0 - 192.168.1.0/27
> eth1 - x.x.x.1 (один реальный адрес, смотрит наружу)
> Как это сделать - ума не приложу, туго с окружением... :-(
> Помогите, люди добрые! Нужно срочно.
> Где почитать, куда смотреть? Сейчас пытаюсь разобраться с ipchains
> (forward).

Я прекрасно вас понимаю, т. к. сам 3 дня назад был в том же положении,
в к-ром вы сейчас :))
Раз вам нужно срочно, вот вам предельно краткая инструкция ('#' -- это,
естественно, приглашение bash у root, а не символ комментария):

# ipchains -P forward DENY
# ipchains -A forward -i eth1 -s 192.168.1.0/27 -j MASQ
# echo 1 > /proc/sys/net/ipv4/ip_forward

Это все! :-)
(ну, конечно, есть ряд оговорок, что, например, ядро должно
поддерживать Masquerading и т. д. и т. п., но если у вас
Mandrake RE Spring 2001 в дефолтной установе, то проблем быть не должно)
Разумеется, правильно настроены должны быть и клиентские машины, а не только
тот хост, к-рый непосредственно подключен к Сети.

Если интересно, спрашивайте, я вспомню и перечислю те источники, к-рые
помогли _мне_. Само собой разумеется, man pages во всех подобных
случаях непригодны. 

-- 
HB



      parent reply	other threads:[~2001-09-11 15:38 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-11 13:08 send2my
2001-09-11 13:19 ` Andrew Nazarkin
2001-09-11 13:19 ` Vlad Drakula
2001-09-11 15:42   ` HB trying to survive under Linux
2001-09-11 15:51     ` Vyt
2001-09-11 16:24       ` HB trying to survive under Linux
2001-09-12  3:17         ` Sergei
2001-09-12 11:22           ` HB trying to survive under Linux
2001-09-12 11:31             ` Sergei
2001-09-11 18:15       ` [mdk-re] mod_ssl Ilya Kovalev
2001-09-11 20:54         ` AT
2001-09-12  3:27         ` Sergei
2001-09-11 13:27 ` [mdk-re] kernel-2.2.19+NAT Maxim Ivanov
2001-09-11 13:29 ` Viacheslav Kaloshin
2001-09-11 15:49   ` HB trying to survive under Linux
2001-09-11 16:02     ` Viacheslav Kaloshin
2001-09-11 15:38 ` HB trying to survive under Linux [this message]

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=20010911154125.B12394@hb.ant-on.net \
    --to=npecca@yahoo.com \
    --cc=mandrake-russian@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