Skip to contentSkip to conversation

need assistence for PREROUTING

DISCUSSION Pascal Hambourg 1 participant 1 message Jul 11, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello,

Quoted 4 lines · Seferovic Edvin
Quoted 2 lines

$IPTABLES -t nat -A PREROUTING -i $ETH -p tcp --sport $UNPRIVPORTS --dport 4444 -d xxx.xxx.xxx.xxx -j DNAT --to-destination 192.168.178.32

You need port here !!! --to-destination 192.168.178.32:80

Also, 192.168.178.112 must be the gateway for the return packets so they are properly un-DNATed.