All pastes #490244 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-15 22:24 UTC
rendered paste body
# Assumes you have a rule for "-m state ESTABLISHED,RELATED"
$IPTABLES="/sbin/iptables"
$IPTABLES -t nat    -A PREROUTING -i eth0 -p tcp --dport 8080 --to-destination 192.168.0.44:8080 -j DNAT
$IPTABLES -t filter -A FORWARD            -p tcp --dport 8080 -m state --state NEW -d 192.168.0.44 -j ACCEPT