ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Olvin <olvin@rambler.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: [Comm] iptables и port masquerade
Date: Tue, 29 Nov 2005 17:49:03 +0200
Message-ID: <438C786F.90005@rambler.ru> (raw)

Хочу сделать, чтобы при обращении к любому хосту сети на tcp-порт 2525 
на самом деле происходило обращение на порт 25. Т.е. адрес получателя 
менять нельзя. Не получается. Посоветуйте что-нибудь. Вот, что я пробовал:

[olvin@enigma olvin]$ sudo iptables -t nat -A POSTROUTING -p tcp --dport 
2525 -j MASQUERADE --to-ports 25

[olvin@enigma olvin]$ sudo nmap -p 2525 localhost

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-11-29 17:37 EET
Interesting ports on localhost.localdomain (127.0.0.1):
PORT     STATE  SERVICE
2525/tcp closed unknown

Nmap finished: 1 IP address (1 host up) scanned in 0.435 seconds
[olvin@enigma olvin]$ sudo nmap -p 25 localhost

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-11-29 17:37 EET
Interesting ports on localhost.localdomain (127.0.0.1):
PORT   STATE SERVICE
25/tcp open  smtp

Nmap finished: 1 IP address (1 host up) scanned in 0.437 seconds
[olvin@enigma olvin]$


             reply	other threads:[~2005-11-29 15:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-29 15:49 Olvin [this message]
2005-11-29 17:56 ` Dmitry Marochko
2005-11-30  7:29   ` Olvin
2005-11-30 20:12     ` Dmitry Marochko
2005-12-01  7:59       ` Olvin
2005-12-06 12:39         ` Мерзляков Евгений Анатольевич
2005-12-18 13:34           ` Vladimir Karpinsky
2005-12-19  4:41             ` Мерзляков Евгений Анатольевич
2005-12-19  8:08             ` Peter Volkov
2005-12-19 11:23               ` Vladimir Karpinsky

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=438C786F.90005@rambler.ru \
    --to=olvin@rambler.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