-j DNAT doesn't accept nonnumerical port

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

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

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
iptables v1.4.12: Port `smtp' not valid

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

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

[Linux Netfilter Development]     [Linux Kernel Networking Development]     [Linux Networking Development]     [Linux Kernel Development]     [Linux Resources]     [LARTC]     [Bugtraq]     [Consulting]     [Free Internet Dating]     [Yosemite Forum]     [Photo]

Add to Google Powered by Linux