ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Alexey Borovskoy <alexey.borovskoy@gmail.com>
To: "ALT Linux sysadmins' discussion" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Организация доступа в Интернет
Date: Sat, 6 Feb 2010 19:35:51 +1200
Message-ID: <201002061935.51946.alexey.borovskoy@gmail.com> (raw)
In-Reply-To: <4B6C2D4E.9060702@gmail.com>

* Суббота 06 февраля 2010 Patlasov YuriI

> 05.02.2010 15:57, Anatol B. Bazyukin пишет:
> > Здравствуйте, ALT.
> >
> > Необходимо   организовать  доступ  компьютеров  из 
> > локальной  сети  в интернет через NAT при условии
> > провайдер  выделяет  IP  адрес - роутеру  (может быть
> > реальным или из его внутренней сети) и IP адрес, который и
> > должен использовать NAT. Где можно посмотреть решение -
> > ежели кто встречал таковое?
> 
> iptables -t nat -A POSTROUTING -p tcp -o eth0 -j SNAT
>  --to-source 123.123.123.123
> 
> вместо 123.123.123.123 - любой IP
> Только как обратные пакеты будут назад приходить?*
> *
> 

man iptables. Смотреть про RELATED, ESTABLISHED

-- 
Алексей.
GPG key fingerprint
949B BC0E 2C44 7528 4F63  2753 E37A 9E3F 11F3 BDE1

      parent reply	other threads:[~2010-02-06  7:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-05 13:57 Anatol B. Bazyukin
2010-02-05 15:10 ` Алексей Карпов
2010-02-05 15:12 ` Anton Farygin
2010-02-06  9:37   ` Anatol B. Bazyukin
2010-02-06 19:54     ` Anton Farygin
2010-02-06  7:35   ` Alexey Borovskoy [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=201002061935.51946.alexey.borovskoy@gmail.com \
    --to=alexey.borovskoy@gmail.com \
    --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