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
#1 lore raw
In reply to a message not in the archive

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.