DNAT "--to" versus "--to-destination"

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


On the web I see examples like:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT
--to-destination 10.1.1.1:8080

However in the documentation
(http://www.netfilter.org/documentation/HOWTO//NAT-HOWTO-6.html#ss6.2)
I see:

iptables -t nat -A PREROUTING -i eth0 -j DNAT --to 5.6.7.8


Looking at the source code for my iptables version (1.4.10 on OpenWrt
Linux distro) I only see the --to-destination as an option in
libipt_DNAT.c

Also the documentation calls it the --to-destination option, but none
of the examples use that.

Why is this or what does the difference mean?
--
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