ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Наумкин Сергей" <nss@maximagroup.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re[2]: [Comm] iptables
Date: Wed, 26 Oct 2005 15:24:48 +0400
Message-ID: <1704510864.20051026152448@maximagroup.ru> (raw)
In-Reply-To: <200510261409.44151.ashen@nsrz.ru>

Здравствуйте, Шенцев.

>Опишу задачу. Созданы правила для iptables с помощью guarddog (полученный файл
>во вложении). Кэтим правилам надо добавить возможность получения/отправки
>почты с помощью внешних серваков, например mail.ru. Кроме этого нужно сделать
>возможность хожления определённым пользователям мимо установленного прокси,
>напрямую в инет. От прочитанной документации в голове сейчас просто каша, вот
>и спрашиваю......... ;)
>
>--
>С уважением, Шенцев Алексей (AShen)
Во первых сразу скажу, ничем другим кроме текстового редактора  для
создания правил в iptables не пользуюсь.
Во вторых вы прислали уже транслированный набор правил, который
править достаточно затруднительно.
ниже приведу правила и условия, необходимые для  решения задачи
iptables -t nat -A POSTROUTING -o (внешний интерфейс) \
-s (ip машины которая ходит на прямую)\
-j SNAT --to-source (реальный ip машины)
Данное правило позволит выходить машине на прямую без прокси, для
каждой машины пишется отдельное правило.
ptables -t nat -A POSTROUTING -p TCP -o (внешний интерфейс) \
--dport 110 -s (ip машины которая ходит на прямую)\
-j SNAT --to-source (реальный ip машины)
ptables -t nat -A POSTROUTING -p TCP -o (внешний интерфейс) \
--dport 25 -s (ip машины которая ходит на прямую)\
-j SNAT --to-source (реальный ip машины)
Эти два правила позволят машине выходить напрямую в инет толко по 25 и
110 порту что необходимо для бщения с внешними почтовыми серверами.
-- 
С уважением,
 Наумкин Сергей




  reply	other threads:[~2005-10-26 11:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-25 13:18 Шенцев Алексей Владимирович
2005-10-25 13:37 ` Serge Polkovnikov
2005-10-25 13:38 ` ABATAPA
2005-10-25 13:39 ` Alexey Morsov
2005-10-25 13:50   ` Шенцев Алексей Владимирович
2005-10-25 14:07     ` Alexey Morsov
2005-10-25 14:06       ` Шенцев Алексей Владимирович
2005-10-25 14:19         ` Alexey Morsov
2005-10-26  6:11 ` Шенцев Алексей Владимирович
2005-10-26  6:48   ` Olvin
2005-10-26  6:35 ` Шенцев Алексей Владимирович
2005-10-26  6:56   ` Воронцов Виталий Иванович
2005-10-26 10:09 ` Шенцев Алексей Владимирович
2005-10-26 11:24   ` Наумкин Сергей [this message]
2005-10-26 12:11     ` Шенцев Алексей Владимирович

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=1704510864.20051026152448@maximagroup.ru \
    --to=nss@maximagroup.ru \
    --cc=community@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