"man iptables" unter Linux mit Kernel 2.4.x und iptables:
Zitat:
DNAT
This target is only valid in the nat table, in the PREROUTING and OUTPUT chains, and user-defined
chains which are only called from those chains. It specifies that the destination address of the
packet should be modified (and all future packets in this connection will also be mangled), and rules
should cease being examined. It takes one option:
--to-destination <ipaddr>[-<ipaddr>][ ort-port]
which can specify a single new destination IP address, an inclusive range of IP addresses, and
optionally, a port range (which is only valid if the rule also specifies -p tcp or -p udp).
If no port range is specified, then the destination port will never be modified.
|
z.B.:
iptables -t nat -A PREROUTING -p tcp -s $ExterneIP -dport 6666 -j DNAT --to-destination $IPInternerServer:80