ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] dnat и etcnet
@ 2008-01-18 15:39 Тимощенков Павел Васильевич
  2008-01-20 11:22 ` Alexey Borovskoy
  0 siblings, 1 reply; 2+ messages in thread
From: Тимощенков Павел Васильевич @ 2008-01-18 15:39 UTC (permalink / raw)
  To: sysadmins

Доброго времени суток.
Появилась необходимость проброса в плоской сетке 25-го порта.
Пишу в /etc/net/ifaces/default/fw/iptables/nat/prerouting нехитрое правило
if tcp from any to 192.168.1.253  and dport is 25 dnat-to 192.168.1.144:25
после чего попасть на 25-й порт 192.168.1.253 становится невозможно, 
пока не уберешь правило и проброс не работает.
Что я не так делаю?



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

* Re: [Sysadmins] dnat и etcnet
  2008-01-18 15:39 [Sysadmins] dnat и etcnet Тимощенков Павел Васильевич
@ 2008-01-20 11:22 ` Alexey Borovskoy
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Borovskoy @ 2008-01-20 11:22 UTC (permalink / raw)
  To: ALT Linux sysadmin discuss

* Суббота 19 января 2008 Тимощенков Павел Васильевич

> Доброго времени суток.
> Появилась необходимость проброса в плоской сетке 25-го порта.
> Пишу в /etc/net/ifaces/default/fw/iptables/nat/prerouting
> нехитрое правило if tcp from any to 192.168.1.253  and dport
> is 25 dnat-to 192.168.1.144:25 после чего попасть на 25-й порт
> 192.168.1.253 становится невозможно, пока не уберешь правило и
> проброс не работает.
> Что я не так делаю?

а snat есть?
dnat и snat -- они парные.

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

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

end of thread, other threads:[~2008-01-20 11:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-18 15:39 [Sysadmins] dnat и etcnet Тимощенков Павел Васильевич
2008-01-20 11:22 ` Alexey Borovskoy

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