ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Cc: sysadmins@lists.altlinux.org
Subject: [Comm] простой iptables NAT (was: настройка сервера - мой первый бой)
Date: Mon, 1 Dec 2008 13:39:41 +0200
Message-ID: <20081201113940.GI9564@osdn.org.ua> (raw)
In-Reply-To: <4933C575.9060707@gmail.com>

On Mon, Dec 01, 2008 at 01:07:33PM +0200, Nickolay Korotinsky wrote:
> >>  Как раздать инет внутрь сетки
> >Видимо, маскарадингом посредством iptables, если ничего
> >другого не придумали :)
> Слышал. Говорят страшная штука :)  А  она не съест мой мозг?

Не факт; самое простое включение подразумевает три строчки
(здесь подразумевается, что default route -- через eth0):

iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sysctl -w net.ipv4.ip_forward=1

http://www.opennet.ru/docs/HOWTO/Masquerading-Simple-HOWTO/summary.html

PS 2 community@: вообще по слову "iptables" тоже стоит сразу
подсказывать, что может быть осмысленно с [частичным] обсуждением
перебираться в sysadmins@ -- равно как и по словам squid, apache,
postfix, clamav... :)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


      reply	other threads:[~2008-12-01 11:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-29 12:37 [Comm] настройка сервера - мой первый бой Николай Коротинский
2008-11-29 12:49 ` Michael Shigorin
2008-11-29 17:48   ` Николай Коротинский
2008-11-29 18:59     ` Michael Shigorin
2008-11-30 15:25 ` Yuri Bushmelev
2008-12-01 11:07   ` Nickolay Korotinsky
2008-12-01 11:39     ` Michael Shigorin [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=20081201113940.GI9564@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=community@lists.altlinux.org \
    --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 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