ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] iptables и port masquerade
@ 2005-11-29 15:49 Olvin
  2005-11-29 17:56 ` Dmitry Marochko
  0 siblings, 1 reply; 10+ messages in thread
From: Olvin @ 2005-11-29 15:49 UTC (permalink / raw)
  To: ALT Linux Community

Хочу сделать, чтобы при обращении к любому хосту сети на 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]$


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-12-19 11:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-29 15:49 [Comm] iptables и port masquerade Olvin
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

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