Linux Netfilter discussions
 help / color / mirror / Atom feed
* -j DNAT doesn't accept nonnumerical port
@ 2011-08-25 14:31 Marcin Mirosław
  2011-08-26  7:54 ` Jan Engelhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Marcin Mirosław @ 2011-08-25 14:31 UTC (permalink / raw)
  To: netfilter

Hello!
Iptables accept such line without problem:
iptables -t nat -A PREROUTING -p tcp  --dport pop3 -j DNAT 
--to-destination 1.2.3.4:25

Destination port is defined by word. So i wanted to use use the same 
trick in DNAT but i've got:
# iptables -t nat -A PREROUTING -p tcp  --dport pop3 -j DNAT 
--to-destination 1.2.3.4:smtp
iptables v1.4.12: Port `smtp' not valid

Is it intentional behavior of iptables? I can't see any info about it in 
man.

Regards,
Marcin

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

end of thread, other threads:[~2011-08-29  8:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-25 14:31 -j DNAT doesn't accept nonnumerical port Marcin Mirosław
2011-08-26  7:54 ` Jan Engelhardt
2011-08-29  8:49   ` Marcin Mirosław

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox