IPTables - DNAT, SNAT, port forwarding
Is it possible to port forward to LAN rather than a specific destination IP,
i.e. port forward -> 192.168.0.0/24
instead of port fwd -> 192.168.0.5
if so what are the command chains for this?
this is what i use for standard IP# specific port fwd:
$IPT -t nat -A POSTROUTING -p tcp --dport 80 -o $IEXT -j DNAT --to 192.168.0.2
(this works OK)
Any ideas?
|