ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ivan Fedorov <ns@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] HELP! Проброс портов через файрволл с политикой DROP
Date: Fri, 03 Sep 2004 16:32:54 +0900
Message-ID: <41381E26.8050103@altlinux.ru> (raw)
In-Reply-To: <41381C6E.3030504@ricom.ru>

[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]

Alexey Morsov пишет:

>>> Я правильно понял - надо чтобы кто-то из интернета (внешней сети)
>>>  мог подключаться (т.е. инициировать соединение) к некой вашей машине
>>> в локальной сетке (т.е. в фейковом пространстве адресов)?
>>
>>
>>
>> Да, все так и есть.
> 
> Э... у меня нет уверенности что такое реализуемо (может я и не прав - но
> тогда это должно как-то решаться в nat)
iptables -t nat -A PREROUTING  -p tcp --destination-port 25 -j DNAT
--to-destination 192.168.0.1:25
>> :OUTPUT DROP [3:368]
> 
> А вот это не очень - зачем?
Это называется паранойя - профессиональное заболевание всех безопасников.

> А client куда будет посулать запросы то? на какой адрес? На ваш реальный
> ip? Если да - и если с этого ip ничего больше ходить не может (а еще
> лучше если у них какой-то свой порт) - то тогда точно в nat -
> анализировать порт и source ip и менять его dest ip с вашего реального
> на тот ваш fake ip который нужен - кажеться это в iptables doc
> называеться DNAT - см. opennet.ru - я таким извратом к счастью не
> занимался так что только теория (у меня слава богу никаких несуразных
> просьб ходить ко мне в локалку из инета не поступало).
Все просто...

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-09-03  7:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-03  2:14 Maxim.Savrilov
2004-09-03  6:17 ` Alexey Morsov
2004-09-03  6:49   ` Maxim.Savrilov
2004-09-03  7:25     ` Alexey Morsov
2004-09-03  7:32       ` Ivan Fedorov [this message]
2004-09-03 13:22     ` Dmitry Lebkov
2004-09-07  2:27       ` Maxim.Savrilov
2004-09-07  7:06         ` Serge Polkovnikov

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=41381E26.8050103@altlinux.ru \
    --to=ns@altlinux.ru \
    --cc=community@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