-j DNAT doesn't accept nonnumerical port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux